test(playwright): ensure the user is signed out after account deletion (#54730)

This commit is contained in:
Huyen Nguyen
2024-05-21 05:01:39 -07:00
committed by GitHub
parent a38ee2052e
commit 9d7880bea0
+7
View File
@@ -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);
});
});