mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
test(playwright): ensure the user is signed out after account deletion (#54730)
This commit is contained in:
@@ -111,5 +111,12 @@ test.describe('Delete Modal component', () => {
|
||||
).not.toBeVisible();
|
||||
|
||||
await expect(page).toHaveURL(/.*\/learn\/?/);
|
||||
await expect(
|
||||
page
|
||||
.getByRole('alert')
|
||||
.filter({ hasText: 'Your account has been successfully deleted' })
|
||||
).toBeVisible();
|
||||
// The user is signed out after their account is deleted
|
||||
await expect(page.getByRole('link', { name: 'Sign in' })).toHaveCount(2);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user