Skip to content

Commit

Permalink
E2E Tests: Use waitForTimeout instead of waitFor (#4781)
Browse files Browse the repository at this point in the history
`waitFor` is deprecated and will be removed in a future release.

See puppeteer/puppeteer/issues/6214
  • Loading branch information
swissspidy committed Oct 2, 2020
1 parent ff9cc88 commit 6f4050d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/e2e/utils/previewStory.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ async function previewStory(editorPage) {
throw new Error('There was an error previewing the story');
}
/* eslint-disable no-await-in-loop */
await editorPage.waitFor(1);
await editorPage.waitForTimeout(1);
openTabs = await browser.pages();
/* eslint-enable no-await-in-loop */
}
Expand Down

0 comments on commit 6f4050d

Please sign in to comment.