File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -4,8 +4,6 @@ import { promisify } from 'util';
44import { test , expect } from '@playwright/test' ;
55
66import translations from '../client/i18n/locales/english/translations.json' ;
7- import { alertToBeVisible } from './utils/alerts' ;
8- import { allowTrailingSlash } from './utils/url' ;
97
108const 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.
You can’t perform that action at this time.
0 commit comments