Skip to content

Commit

Permalink
update test setTimeouts
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Dec 13, 2022
1 parent f5b8291 commit db91d01
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/e2e/middleware-shallow-link/index.test.ts
Expand Up @@ -24,15 +24,15 @@ describe('browser-shallow-navigation', () => {

/// do shallow push
await browser.elementByCss('[data-next-shallow-push]').click()
await new Promise((resolve) => setTimeout(resolve, 500))
await browser.waitForElementByCss('[data-next-page]')

// go to another page
await browser.elementByCss('[data-next-page]').click()
await new Promise((resolve) => setTimeout(resolve, 500))
await browser.waitForElementByCss('[data-next-shallow-replace]')

// do shadow replace
await browser.elementByCss('[data-next-shallow-replace]').click()
await new Promise((resolve) => setTimeout(resolve, 500))
await browser.waitForElementByCss('[data-go-back]')

// go back using history api
await browser.elementByCss('[data-go-back]').click()
Expand Down

0 comments on commit db91d01

Please sign in to comment.