Skip to content

Commit fc361c3

Browse files
test: ignore url after deleting account (freeCodeCamp#64750)
1 parent 229e539 commit fc361c3

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

e2e/delete-modal.spec.ts

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ import { promisify } from 'util';
44
import { test, expect } from '@playwright/test';
55

66
import translations from '../client/i18n/locales/english/translations.json';
7-
import { alertToBeVisible } from './utils/alerts';
8-
import { allowTrailingSlash } from './utils/url';
97

108
const execP = promisify(exec);
119

@@ -116,7 +114,7 @@ test.describe('Delete Modal component', () => {
116114
).toBeDisabled();
117115
});
118116

119-
test('should close the modal and redirect to /learn after the user fills the verify input text and clicks delete', async ({
117+
test('should close the modal and sign the user out after they fill in the verify input text and click delete', async ({
120118
page
121119
}) => {
122120
await page
@@ -146,8 +144,9 @@ test.describe('Delete Modal component', () => {
146144
})
147145
).not.toBeVisible();
148146

149-
await expect(page).toHaveURL(allowTrailingSlash('/learn'));
150-
await alertToBeVisible(page, translations.flash['account-deleted']);
147+
// TODO: Reinstate these checks when flakiness is resolved:
148+
// await expect(page).toHaveURL(allowTrailingSlash('/learn'));
149+
// await alertToBeVisible(page, translations.flash['account-deleted']);
151150
// The user is signed out after their account is deleted. Don't check the
152151
// number of occurrences of the 'Sign in' link as it may vary depending on AB
153152
// tests and Gatsby develop mode flakiness.

0 commit comments

Comments
 (0)