Skip to content

Commit 51da495

Browse files
committed
test: update request path to include base path
1 parent 1f1eef0 commit 51da495

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/e2e/page-router.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1433,7 +1433,7 @@ test.describe('Page Router with basePath and i18n', () => {
14331433
expect(staticAsset).toBeDefined()
14341434

14351435
const response = await page.goto(
1436-
`${pageRouterBasePathI18n.url}/_next/static/chunks/${staticAsset}`,
1436+
`${pageRouterBasePathI18n.url}/base/path/_next/static/chunks/${staticAsset}`,
14371437
)
14381438

14391439
expect(response?.status()).toBe(200)
@@ -1445,7 +1445,7 @@ test.describe('Page Router with basePath and i18n', () => {
14451445
pageRouterBasePathI18n,
14461446
}) => {
14471447
const response = await page.goto(
1448-
`${pageRouterBasePathI18n.url}/_next/static/stale123abcdef.js`,
1448+
`${pageRouterBasePathI18n.url}/base/path/_next/static/stale123abcdef.js`,
14491449
)
14501450

14511451
expect(response?.status()).toBe(404)

0 commit comments

Comments
 (0)