Commit ec69ebda authored by Zack Tanner's avatar Zack Tanner

[tests]: de-flake app-action deploy test

parent 8f6155f4
...@@ -739,16 +739,21 @@ describe('app-dir action handling', () => { ...@@ -739,16 +739,21 @@ describe('app-dir action handling', () => {
await submit.click() await submit.click()
await retry(async () => { await retry(async () => {
expect(await browser.hasElementByCssSelector('#error')).toBe(false) expect(await browser.url()).toContain('/redirect/other')
}) })
await browser.waitForIdleNetwork()
// go back to the page that was revalidated // go back to the page that was revalidated
await browser.elementByCss('[href="/redirect"]').click() await browser.elementByCss('[href="/redirect"]').click()
await browser.waitForElementByCss('#main-page') await browser.waitForElementByCss('#main-page')
const newRandom = await browser.elementById('random-number').text() await browser.waitForIdleNetwork()
expect(newRandom).not.toBe(initialRandom)
await retry(async () => {
const newRandom = await browser.elementById('random-number').text()
expect(newRandom).not.toBe(initialRandom)
})
}) })
// TODO(client-segment-cache): re-enable when this optimization is added back // TODO(client-segment-cache): re-enable when this optimization is added back
......
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