Skip to content

Commit 5c356a6

Browse files
committed
Replace deprecated waitFor for waitForTimeout
See puppeteer/puppeteer#6214
1 parent 4eb727c commit 5c356a6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

tests/e2e/specs/admin/analytics-options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ describe( 'AMP analytics options', () => {
2727
await expect( page ).toClick( '.amp-settings-nav button[type="submit"]' );
2828

2929
// Wait for the success notice. Note: This might not be reliable and should be removed if it causes problems.
30-
await page.waitFor( 2000 );
30+
await page.waitForTimeout( 2000 );
3131
await expect( page ).toMatchElement( '.amp .amp-save-success-notice.amp-notice' );
3232

3333
// Delete entries.

tests/e2e/utils/delete-theme.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ export async function deleteTheme( slug, newThemeSlug, newThemeSearchTerm ) {
3838

3939
// Wait for the theme to be removed from the page.
4040
// eslint-disable-next-line no-restricted-syntax
41-
await page.waitFor(
41+
await page.waitForTimeout(
4242
( themeSlug ) =>
4343
! document.querySelector( `[data-slug="${ themeSlug }"]` ),
4444
slug,

tests/e2e/utils/onboarding-wizard-utils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ export async function moveToDoneScreen( { technical = true, mode, readerTheme =
104104
}
105105

106106
await clickNextButton();
107-
await page.waitFor( 1000 );
107+
await page.waitForTimeout( 1000 );
108108
await page.waitForSelector( '.done__preview-container' );
109109
}
110110

0 commit comments

Comments
 (0)