mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
test(e2e,playwright): link in staging-warning-modal (#52385)
This commit is contained in:
@@ -28,6 +28,15 @@ test.describe('Staging Warning Modal E2E Test Suite', () => {
|
|||||||
name: translations['staging-warning'].certain
|
name: translations['staging-warning'].certain
|
||||||
})
|
})
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
|
|
||||||
|
const link = page.getByRole('link', { name: 'following this link' });
|
||||||
|
await expect(link).toHaveAttribute(
|
||||||
|
'href',
|
||||||
|
'https://contribute.freecodecamp.org/#/devops?id=known-limitations'
|
||||||
|
);
|
||||||
|
await expect(link).toHaveAttribute('target', '_blank');
|
||||||
|
await expect(link).toHaveAttribute('rel', 'noopener noreferrer nofollow');
|
||||||
|
|
||||||
await expect(
|
await expect(
|
||||||
page.getByRole('button', { name: translations.buttons.close })
|
page.getByRole('button', { name: translations.buttons.close })
|
||||||
).toBeVisible();
|
).toBeVisible();
|
||||||
|
|||||||
Reference in New Issue
Block a user