mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 18:18:27 -05:00
test(e2e): stop checking no. of sign-in buttons (#64648)
This commit is contained in:
committed by
GitHub
parent
50a85f6683
commit
1cf69d61da
@@ -148,7 +148,9 @@ test.describe('Delete Modal component', () => {
|
||||
|
||||
await expect(page).toHaveURL(allowTrailingSlash('/learn'));
|
||||
await alertToBeVisible(page, translations.flash['account-deleted']);
|
||||
// The user is signed out after their account is deleted
|
||||
await expect(page.getByRole('link', { name: 'Sign in' })).toHaveCount(2);
|
||||
// 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();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user