This commit is contained in:
Albert (AJ) St. Aubin
2021-05-20 20:14:54 -04:00
parent b9448d917a
commit 059525c729
2 changed files with 8 additions and 3 deletions

View File

@@ -686,7 +686,7 @@ describe('Outline Tab', () => {
],
});
await fetchAndRender();
await screen.findByText('We are working on generating course certificates.');
await screen.findByText('Your grade and certificate will be ready soon!');
});
});

View File

@@ -115,9 +115,14 @@ describe('Course Exit Pages', () => {
});
it('Displays certificate is earned but unavailable message', async () => {
setMetadata({ certificate_data: { cert_status: 'earned_but_not_available' } });
setMetadata({
certificate_data: {
cert_status: 'earned_but_not_available',
certificate_available_date: '2021-05-21T12:00:00Z'
}
});
await fetchAndRender(<CourseCelebration />);
expect(screen.getByText('Your certificate will be available soon!')).toBeInTheDocument();
expect(screen.getByText('Your grade and certificate will be ready soon!')).toBeInTheDocument();
});
it('Displays request certificate link', async () => {