Unverified Commit 9b512a85 authored by Joe Haddad's avatar Joe Haddad Committed by GitHub

Stabilize New Dev Test (#10188)

parent c75146f7
...@@ -64,6 +64,7 @@ const showsError = async ( ...@@ -64,6 +64,7 @@ const showsError = async (
const noError = async (pathname, click = false) => { const noError = async (pathname, click = false) => {
const browser = await webdriver(appPort, '/') const browser = await webdriver(appPort, '/')
await waitFor(2000)
await browser.eval(`(function() { await browser.eval(`(function() {
window.caughtErrors = [] window.caughtErrors = []
window.addEventListener('error', function (error) { window.addEventListener('error', function (error) {
...@@ -74,7 +75,8 @@ const noError = async (pathname, click = false) => { ...@@ -74,7 +75,8 @@ const noError = async (pathname, click = false) => {
}) })
window.next.router.replace('${pathname}') window.next.router.replace('${pathname}')
})()`) })()`)
await waitFor(250) // wait for page to be built and navigated to
await waitFor(3000)
if (click) { if (click) {
await browser.elementByCss('a').click() await browser.elementByCss('a').click()
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment