mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2025-12-19 10:07:46 -05:00
test: ignore url after deleting account (#64750)
This commit is contained in:
committed by
GitHub
parent
229e539c1b
commit
fc361c3dfe
@@ -4,8 +4,6 @@ import { promisify } from 'util';
|
|||||||
import { test, expect } from '@playwright/test';
|
import { test, expect } from '@playwright/test';
|
||||||
|
|
||||||
import translations from '../client/i18n/locales/english/translations.json';
|
import translations from '../client/i18n/locales/english/translations.json';
|
||||||
import { alertToBeVisible } from './utils/alerts';
|
|
||||||
import { allowTrailingSlash } from './utils/url';
|
|
||||||
|
|
||||||
const execP = promisify(exec);
|
const execP = promisify(exec);
|
||||||
|
|
||||||
@@ -116,7 +114,7 @@ test.describe('Delete Modal component', () => {
|
|||||||
).toBeDisabled();
|
).toBeDisabled();
|
||||||
});
|
});
|
||||||
|
|
||||||
test('should close the modal and redirect to /learn after the user fills the verify input text and clicks delete', async ({
|
test('should close the modal and sign the user out after they fill in the verify input text and click delete', async ({
|
||||||
page
|
page
|
||||||
}) => {
|
}) => {
|
||||||
await page
|
await page
|
||||||
@@ -146,8 +144,9 @@ test.describe('Delete Modal component', () => {
|
|||||||
})
|
})
|
||||||
).not.toBeVisible();
|
).not.toBeVisible();
|
||||||
|
|
||||||
await expect(page).toHaveURL(allowTrailingSlash('/learn'));
|
// TODO: Reinstate these checks when flakiness is resolved:
|
||||||
await alertToBeVisible(page, translations.flash['account-deleted']);
|
// await expect(page).toHaveURL(allowTrailingSlash('/learn'));
|
||||||
|
// await alertToBeVisible(page, translations.flash['account-deleted']);
|
||||||
// The user is signed out after their account is deleted. Don't check the
|
// 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
|
// number of occurrences of the 'Sign in' link as it may vary depending on AB
|
||||||
// tests and Gatsby develop mode flakiness.
|
// tests and Gatsby develop mode flakiness.
|
||||||
|
|||||||
Reference in New Issue
Block a user