Skip to content

Commit

Permalink
test(e2e,playwright): link in staging-warning-modal (freeCodeCamp#52385)
Browse files Browse the repository at this point in the history
  • Loading branch information
weilirs authored Dec 27, 2023
1 parent 0121fa9 commit 741ca93
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions e2e/staging-warning-modal.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 741ca93

Please sign in to comment.