mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
test: more robust signed out detection (#64654)
This commit is contained in:
committed by
GitHub
parent
5b9bdc0e93
commit
970bed7aea
@@ -151,6 +151,8 @@ test.describe('Delete Modal component', () => {
|
||||
// The user is signed out after their account is deleted. Don't check the
|
||||
// number of occurrences of the 'Sign in' link as it may vary depending on AB
|
||||
// tests and Gatsby develop mode flakiness.
|
||||
await expect(page.getByRole('link', { name: 'Sign in' })).toBeVisible();
|
||||
await expect(
|
||||
page.getByRole('link', { name: 'Sign in' }).first()
|
||||
).toBeVisible();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user