Commit ec69ebda authored by Zack Tanner's avatar Zack Tanner

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

parent 8f6155f4
...@@ -739,17 +739,22 @@ describe('app-dir action handling', () => { ...@@ -739,17 +739,22 @@ 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')
await browser.waitForIdleNetwork()
await retry(async () => {
const newRandom = await browser.elementById('random-number').text() const newRandom = await browser.elementById('random-number').text()
expect(newRandom).not.toBe(initialRandom) 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
it.skip('should reset the form state when the action redirects to itself', async () => { it.skip('should reset the form state when the action redirects to itself', async () => {
......
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