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( ...@@ -275,19 +275,19 @@ createNextDescribe(
await browser await browser
.elementByCss('#to-basic') .elementByCss('#to-basic')
.click() .click()
.waitForElementByCss('#basic', 2000) .waitForElementByCss('#basic')
await checkMetaNameContentPair( await checkMetaNameContentPair(
browser, browser,
'referrer', 'referrer',
'origin-when-crossorigin' 'origin-when-crossorigin'
) )
await browser.back().waitForElementByCss('#index', 2000) await browser.back().waitForElementByCss('#index')
expect(await getTitle(browser)).toBe('index page') expect(await getTitle(browser)).toBe('index page')
await browser await browser
.elementByCss('#to-title') .elementByCss('#to-title')
.click() .click()
.waitForElementByCss('#title', 2000) .waitForElementByCss('#title')
expect(await getTitle(browser)).toBe('this is the page 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