mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-03-01 08:05:25 -05: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
|
||||
})
|
||||
).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(
|
||||
page.getByRole('button', { name: translations.buttons.close })
|
||||
).toBeVisible();
|
||||
|
||||
Reference in New Issue
Block a user