You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
it('renders non-FBE when there is a verified mode but no FBE',async()=>{
51
51
buildAndRender();
52
52
expect(screen.getByRole('heading',{name: 'Pursue a verified certificate'})).toBeInTheDocument();
53
-
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate of completion to showcase on your resumé');
53
+
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate (learn more in a new tab) of completion to showcase on your resumé');
54
54
expect(screen.getByText(/Supportour.*?atedX/s).textContent).toMatch('Support our mission at edX');
55
55
expect(screen.getByRole('link',{name: 'Upgrade for $149'})).toBeInTheDocument();
expect(screen.getByRole('heading',{name: 'Pursue a verified certificate'})).toBeInTheDocument();
67
-
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate of completion to showcase on your resumé');
67
+
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate (learn more in a new tab) of completion to showcase on your resumé');
68
68
expect(screen.getByText(/Supportour.*?atedX/s).textContent).toMatch('Support our mission at edX');
69
69
expect(screen.getByRole('link',{name: 'Upgrade for $149'})).toBeInTheDocument();
expect(screen.getByRole('heading',{name: 'Pursue a verified certificate'})).toBeInTheDocument();
78
-
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate of completion to showcase on your resumé');
78
+
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate (learn more in a new tab) of completion to showcase on your resumé');
79
79
expect(screen.getByText(/Supportour.*?atedX/s).textContent).toMatch('Support our mission at edX');
80
80
expect(screen.getByRole('link',{name: 'Upgrade for $149'})).toBeInTheDocument();
expect(screen.getByRole('heading',{name: 'Pursue a verified certificate'})).toBeInTheDocument();
97
-
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate of completion to showcase on your resumé');
97
+
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate (learn more in a new tab) of completion to showcase on your resumé');
98
98
expect(screen.getByText(/Supportour.*?atedX/s).textContent).toMatch('Support our mission at edX');
expect(screen.getByText('Less than 1 hour left')).toBeInTheDocument();
114
114
expect(screen.getByText(/Youwillloseallaccesstothiscourse.*?on/s).textContent).toMatch('You will lose all access to this course, including any progress, on April 13.');
115
-
expect(screen.getByText(/Upgradingyourcourseenablesyou/s).textContent).toMatch('Upgrading your course enables you to pursue a verified certificate and unlocks numerous features. Learn more about the benefits of upgrading.');
115
+
expect(screen.getByText(/Upgradingyourcourseenablesyou/s).textContent).toMatch('Upgrading your course enables you to pursue a verified certificate and unlocks numerous features. Learn more about the benefits of upgrading in a new tab.');
116
116
expect(screen.getByRole('link',{name: 'Upgrade for $149'})).toBeInTheDocument();
expect(screen.getByText(/Youwillloseallaccesstothiscourse.*?on/s)).toHaveTextContent('You will lose all access to this course, including any progress, on April 13.');
131
-
expect(screen.getByText(/Upgradingyourcourseenablesyou/s).textContent).toMatch('Upgrading your course enables you to pursue a verified certificate and unlocks numerous features. Learn more about the benefits of upgrading.');
131
+
expect(screen.getByText(/Upgradingyourcourseenablesyou/s).textContent).toMatch('Upgrading your course enables you to pursue a verified certificate and unlocks numerous features. Learn more about the benefits of upgrading in a new tab.');
132
132
expect(screen.getByRole('link',{name: 'Upgrade for $149'})).toBeInTheDocument();
expect(screen.getByText('6 days left')).toBeInTheDocument();// setting the time to 12 will mean that it's slightly less than 12
146
146
expect(screen.getByText(/Youwillloseallaccesstothiscourse.*?on/s).textContent).toMatch('You will lose all access to this course, including any progress, on April 19.');
147
-
expect(screen.getByText(/Upgradingyourcourseenablesyou/s).textContent).toMatch('Upgrading your course enables you to pursue a verified certificate and unlocks numerous features. Learn more about the benefits of upgrading.');
147
+
expect(screen.getByText(/Upgradingyourcourseenablesyou/s).textContent).toMatch('Upgrading your course enables you to pursue a verified certificate and unlocks numerous features. Learn more about the benefits of upgrading in a new tab.');
148
148
expect(screen.getByRole('link',{name: 'Upgrade for $149'})).toBeInTheDocument();
expect(screen.getByRole('heading',{name: 'Upgrade your course today'})).toBeInTheDocument();
161
161
expect(screen.getByText(/Courseaccesswillexpire/s).textContent).toMatch('Course access will expire April 27');
162
-
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate of completion to showcase on your resumé');
162
+
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate (learn more in a new tab) of completion to showcase on your resumé');
163
163
expect(screen.getByText(/Unlockyouraccess/s).textContent).toMatch('Unlock your access to all course activities, including graded assignments');
164
164
expect(screen.getByText(/tocoursecontentandmaterials/s).textContent).toMatch('Full access to course content and materials, even after the course ends');
165
165
expect(screen.getByText(/Supportour.*?atedX/s).textContent).toMatch('Support our mission at edX');
expect(screen.getByText('Less than 1 hour left')).toBeInTheDocument();
190
-
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate of completion to showcase on your resumé');
190
+
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate (learn more in a new tab) of completion to showcase on your resumé');
191
191
expect(screen.getByText(/Unlockyouraccess/s).textContent).toMatch('Unlock your access to all course activities, including graded assignments');
192
192
expect(screen.getByText(/tocoursecontentandmaterials/s).textContent).toMatch('Full access to course content and materials, even after the course ends');
193
193
expect(screen.getByText(/Supportour.*?atedX/s).textContent).toMatch('Support our mission at edX');
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate of completion to showcase on your resumé');
219
+
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate (learn more in a new tab) of completion to showcase on your resumé');
220
220
expect(screen.getByText(/Unlockyouraccess/s).textContent).toMatch('Unlock your access to all course activities, including graded assignments');
221
221
expect(screen.getByText(/tocoursecontentandmaterials/s).textContent).toMatch('Full access to course content and materials, even after the course ends');
222
222
expect(screen.getByText(/Supportour.*?atedX/s).textContent).toMatch('Support our mission at edX');
expect(screen.getByText(/daysleft/s).textContent).toMatch('6 days left');
248
-
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate of completion to showcase on your resumé');
248
+
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate (learn more in a new tab) of completion to showcase on your resumé');
249
249
expect(screen.getByText(/Unlockyouraccess/s).textContent).toMatch('Unlock your access to all course activities, including graded assignments');
250
250
expect(screen.getByText(/tocoursecontentandmaterials/s).textContent).toMatch('Full access to course content and materials, even after the course ends');
251
251
expect(screen.getByText(/Supportour.*?atedX/s).textContent).toMatch('Support our mission at edX');
expect(screen.getByText('5 days left')).toBeInTheDocument();// setting the time to 12 will mean that it's slightly less than 12
277
277
expect(screen.getByText(/Youwillloseallaccesstothiscourse.*?on/s).textContent).toMatch('You will lose all access to this course, including any progress, on April 18.');
278
-
expect(screen.getByText(/Upgradingyourcourseenablesyou/s).textContent).toMatch('Upgrading your course enables you to pursue a verified certificate and unlocks numerous features. Learn more about the benefits of upgrading.');
278
+
expect(screen.getByText(/Upgradingyourcourseenablesyou/s).textContent).toMatch('Upgrading your course enables you to pursue a verified certificate and unlocks numerous features. Learn more about the benefits of upgrading in a new tab.');
it('upsell bullet text properly rendered',async()=>{
29
29
render(bullets);
30
-
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate of completion to showcase on your resumé');
30
+
expect(screen.getByText(/Earna.*?ofcompletiontoshowcaseonyourresumé/s).textContent).toMatch('Earn a verified certificate (learn more in a new tab) of completion to showcase on your resumé');
31
31
expect(screen.getByText(/Unlockyouraccess/s).textContent).toMatch('Unlock your access to all course activities, including graded assignments');
32
32
expect(screen.getByText(/tocoursecontentandmaterials/s).textContent).toMatch('Full access to course content and materials, even after the course ends');
33
33
expect(screen.getByText(/Supportour.*?atedX/s).textContent).toMatch('Support our mission at edX');
0 commit comments