@@ -1280,7 +1280,7 @@ describe("ProgramSummary", () => {
12801280 expect ( priceRow ) . not . toHaveTextContent ( "Earn a certificate" )
12811281 } )
12821282
1283- test ( "Shows paid price with certificate type and no cert box when all enrollment modes are paid" , ( ) => {
1283+ test ( "Shows paid price with no cert box when all enrollment modes are paid" , ( ) => {
12841284 const product = factories . courses . product ( { price : "1499.00" } )
12851285 const program = factories . programs . program ( {
12861286 enrollment_modes : [ paidMode ( ) ] ,
@@ -1292,24 +1292,28 @@ describe("ProgramSummary", () => {
12921292 expect ( priceRow ) . toHaveTextContent (
12931293 formatPrice ( product . price , { avoidCents : true } ) ,
12941294 )
1295- expect ( priceRow ) . toHaveTextContent ( program . certificate_type )
1295+ expect ( priceRow ) . toHaveTextContent ( "/ full program" )
12961296 expect ( priceRow ) . not . toHaveTextContent ( "Free to Learn" )
12971297 expect ( priceRow ) . not . toHaveTextContent ( "Earn a certificate" )
1298+ expect ( priceRow ) . not . toHaveTextContent ( "Start for free" )
12981299 } )
12991300
1300- test ( "Shows 'Free to Learn' and cert box when enrollment modes include both free and paid" , ( ) => {
1301+ test ( "Shows paid price and 'Start for free' callout when enrollment modes include both free and paid" , ( ) => {
13011302 const program = factories . programs . program ( {
13021303 enrollment_modes : bothModes ( ) ,
13031304 } )
13041305 invariant ( program . products [ 0 ] )
13051306 renderWithProviders ( < ProgramSummary program = { program } /> )
13061307
13071308 const priceRow = screen . getByTestId ( TestIds . PriceRow )
1308- expect ( priceRow ) . toHaveTextContent ( "Free to Learn" )
1309- expect ( priceRow ) . toHaveTextContent ( "Earn a certificate" )
1309+ expect ( priceRow ) . toHaveTextContent ( "Start for free" )
1310+ expect ( priceRow ) . toHaveTextContent ( "or upgrade to" )
1311+ expect ( priceRow ) . toHaveTextContent ( "certificate" )
13101312 expect ( priceRow ) . toHaveTextContent (
13111313 formatPrice ( program . products [ 0 ] . price , { avoidCents : true } ) ,
13121314 )
1315+ expect ( priceRow ) . not . toHaveTextContent ( "Free to Learn" )
1316+ expect ( priceRow ) . not . toHaveTextContent ( "Earn a certificate" )
13131317 } )
13141318
13151319 test . each ( [
0 commit comments