Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ijjk committed Nov 15, 2022
1 parent 076418d commit 0ef762f
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions test/e2e/middleware-general/test/index.test.ts
Expand Up @@ -279,7 +279,7 @@ describe('Middleware Runtime', () => {
})

it('should have correct dynamic route params for middleware rewrite to dynamic route', async () => {
const browser = await webdriver(next.url, '/')
const browser = await webdriver(next.url, '/404')
await check(
() => browser.eval('next.router.isReady ? "yes" : "no"'),
'yes'
Expand All @@ -306,7 +306,7 @@ describe('Middleware Runtime', () => {
})

it('should have correct route params for chained rewrite from middleware to config rewrite', async () => {
const browser = await webdriver(next.url, '/')
const browser = await webdriver(next.url, '/404')
await check(
() => browser.eval('next.router.isReady ? "yes" : "no"'),
'yes'
Expand Down Expand Up @@ -336,7 +336,7 @@ describe('Middleware Runtime', () => {
})

it('should have correct route params for rewrite from config dynamic route', async () => {
const browser = await webdriver(next.url, '/')
const browser = await webdriver(next.url, '/404')
await browser.eval('window.beforeNav = 1')
await browser.eval('window.next.router.push("/rewrite-3")')
await browser.waitForElementByCss('#blog')
Expand Down
6 changes: 3 additions & 3 deletions test/e2e/middleware-trailing-slash/test/index.test.ts
Expand Up @@ -175,7 +175,7 @@ describe('Middleware Runtime trailing slash', () => {
})

it('should have correct dynamic route params for middleware rewrite to dynamic route', async () => {
const browser = await webdriver(next.url, '/')
const browser = await webdriver(next.url, '/404')
await check(
() => browser.eval('next.router.isReady ? "yes" : "no"'),
'yes'
Expand All @@ -202,7 +202,7 @@ describe('Middleware Runtime trailing slash', () => {
})

it('should have correct route params for chained rewrite from middleware to config rewrite', async () => {
const browser = await webdriver(next.url, '/')
const browser = await webdriver(next.url, '/404')
await check(
() => browser.eval('next.router.isReady ? "yes" : "no"'),
'yes'
Expand Down Expand Up @@ -232,7 +232,7 @@ describe('Middleware Runtime trailing slash', () => {
})

it('should have correct route params for rewrite from config dynamic route', async () => {
const browser = await webdriver(next.url, '/')
const browser = await webdriver(next.url, '/404')
await check(
() => browser.eval('next.router.isReady ? "yes" : "no"'),
'yes'
Expand Down

0 comments on commit 0ef762f

Please sign in to comment.