Skip to content

Commit 55f2ac5

Browse files
committed
test: include base path in more page router tests
1 parent 51da495 commit 55f2ac5

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/e2e/page-router.test.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1384,7 +1384,9 @@ test.describe('Page Router with basePath and i18n', () => {
13841384
page,
13851385
pageRouterBasePathI18n,
13861386
}) => {
1387-
const response = await page.goto(new URL('non-existing', pageRouterBasePathI18n.url).href)
1387+
const response = await page.goto(
1388+
new URL('base/path/non-existing', pageRouterBasePathI18n.url).href,
1389+
)
13881390
const headers = response?.headers() || {}
13891391
expect(response?.status()).toBe(404)
13901392

@@ -1407,7 +1409,9 @@ test.describe('Page Router with basePath and i18n', () => {
14071409
page,
14081410
pageRouterBasePathI18n,
14091411
}) => {
1410-
const response = await page.goto(new URL('static/not-found', pageRouterBasePathI18n.url).href)
1412+
const response = await page.goto(
1413+
new URL('base/path/static/not-found', pageRouterBasePathI18n.url).href,
1414+
)
14111415
const headers = response?.headers() || {}
14121416
expect(response?.status()).toBe(404)
14131417

0 commit comments

Comments
 (0)