Skip to content

Commit

Permalink
Stabilize New Dev Test (#10188)
Browse files Browse the repository at this point in the history
  • Loading branch information
Timer committed Jan 21, 2020
1 parent c75146f commit 9b512a8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/integration/invalid-href/test/index.test.js
Expand Up @@ -64,6 +64,7 @@ const showsError = async (

const noError = async (pathname, click = false) => {
const browser = await webdriver(appPort, '/')
await waitFor(2000)
await browser.eval(`(function() {
window.caughtErrors = []
window.addEventListener('error', function (error) {
Expand All @@ -74,7 +75,8 @@ const noError = async (pathname, click = false) => {
})
window.next.router.replace('${pathname}')
})()`)
await waitFor(250)
// wait for page to be built and navigated to
await waitFor(3000)
if (click) {
await browser.elementByCss('a').click()
}
Expand Down

0 comments on commit 9b512a8

Please sign in to comment.