Unverified Commit c7deecfd authored by JJ Kasper's avatar JJ Kasper Committed by GitHub

Fix flakey app metadata test (#45391)

We shouldn't use an arbitrary timeout here.

x-ref:
https://github.com/vercel/next.js/actions/runs/4038320521/jobs/6942258801
parent b0d951bc
......@@ -275,19 +275,19 @@ createNextDescribe(
await browser
.elementByCss('#to-basic')
.click()
.waitForElementByCss('#basic', 2000)
.waitForElementByCss('#basic')
await checkMetaNameContentPair(
browser,
'referrer',
'origin-when-crossorigin'
)
await browser.back().waitForElementByCss('#index', 2000)
await browser.back().waitForElementByCss('#index')
expect(await getTitle(browser)).toBe('index page')
await browser
.elementByCss('#to-title')
.click()
.waitForElementByCss('#title', 2000)
.waitForElementByCss('#title')
expect(await getTitle(browser)).toBe('this is the page title')
})
})
......
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