MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / testInvalidCertification

Function testInvalidCertification

e2e/certification.spec.ts:142–148  ·  view source on GitHub ↗
({ page }: { page: Page })

Source from the content-addressed store, hash-verified

140
141test.describe('Invalid certification page', () => {
142 const testInvalidCertification = async ({ page }: { page: Page }) => {
143 {
144 await page.goto('/certification/certifieduser/invalid-certification');
145 await expect(page).toHaveURL('/');
146 await alertToBeVisible(page, translations.flash['certificate-missing']);
147 }
148 };
149 test.describe('for authenticated user', () => {
150 test(
151 'it should redirect to / and display an error message',

Callers

nothing calls this directly

Calls 1

alertToBeVisibleFunction · 0.90

Tested by

no test coverage detected