Commit b2363f82 authored by Janka Uryga's avatar Janka Uryga

update test that exceeds new default timeout

parent e69c9c6a
......@@ -893,7 +893,7 @@ describe('app dir - navigation', () => {
.elementByCss("[href='/metadata-await-promise/nested']")
.click()
await waitFor(resolveMetadataDuration)
await waitFor(resolveMetadataDuration + 500)
expect(await browser.elementById('page-content').text()).toBe('Content')
expect(await browser.elementByCss('title').text()).toBe('Async Title')
......@@ -912,9 +912,11 @@ describe('app dir - navigation', () => {
.click()
if (!isNextDev) {
expect(await browser.elementByCss('title').text()).toBe('Async Title')
await waitFor(resolveMetadataDuration + 500)
expect(
await browser
.waitForElementByCss('title', resolveMetadataDuration + 500)
.text()
).toBe('Async Title')
}
expect(await browser.elementById('page-content').text()).toBe('Content')
......
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