Unverified Commit ffe56640 authored by Zack Tanner's avatar Zack Tanner Committed by GitHub

de-flake searchparams test (#76947)

Seems the navigation from app -> pages can timeout from the retry in
development. This extends the timeout.
parent 23681508
...@@ -137,22 +137,32 @@ describe('searchparams-reuse-loading', () => { ...@@ -137,22 +137,32 @@ describe('searchparams-reuse-loading', () => {
const browser = await next.browser('/mpa-navs') const browser = await next.browser('/mpa-navs')
await browser.elementByCss("[href='/pages-dir?param=1']").click() await browser.elementByCss("[href='/pages-dir?param=1']").click()
await retry(async () => { await retry(
async () => {
expect(await browser.elementByCss('body').text()).toContain( expect(await browser.elementByCss('body').text()).toContain(
'Hello from pages dir! 1' 'Hello from pages dir! 1'
) )
expect(await browser.url()).toContain('/pages-dir?param=1') expect(await browser.url()).toContain('/pages-dir?param=1')
}) },
10000,
1000,
'Waiting for pages-dir?param=1 to load'
)
await browser.loadPage(`${next.url}/mpa-navs`) await browser.loadPage(`${next.url}/mpa-navs`)
await browser.elementByCss("[href='/pages-dir?param=2']").click() await browser.elementByCss("[href='/pages-dir?param=2']").click()
await retry(async () => {
await retry(
async () => {
expect(await browser.elementByCss('body').text()).toContain( expect(await browser.elementByCss('body').text()).toContain(
'Hello from pages dir! 2' 'Hello from pages dir! 2'
) )
expect(await browser.url()).toContain('/pages-dir?param=2') expect(await browser.url()).toContain('/pages-dir?param=2')
}) },
10000,
1000,
'Waiting for pages-dir?param=2 to load'
)
}) })
}) })
......
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