diff --git a/test/e2e/middleware-custom-matchers-i18n/test/index.test.ts b/test/e2e/middleware-custom-matchers-i18n/test/index.test.ts index 11ac57d2f9ada..9f7fd6d9d31a7 100644 --- a/test/e2e/middleware-custom-matchers-i18n/test/index.test.ts +++ b/test/e2e/middleware-custom-matchers-i18n/test/index.test.ts @@ -22,16 +22,17 @@ describe('Middleware custom matchers i18n', () => { afterAll(() => next.destroy()) it.each(['/hello', '/en/hello', '/nl-NL/hello', '/nl-NL/about'])( - 'should match', + 'should match %s', async (path) => { const res = await fetchViaHTTP(next.url, path) + console.log(res.status) expect(res.status).toBe(200) expect(res.headers.get('x-from-middleware')).toBeDefined() } ) it.each(['/invalid/hello', '/hello/invalid', '/about', '/en/about'])( - 'should not match', + 'should not match %s', async (path) => { const res = await fetchViaHTTP(next.url, path) expect(res.status).toBe(404) @@ -41,7 +42,7 @@ describe('Middleware custom matchers i18n', () => { // FIXME: // See https://linear.app/vercel/issue/EC-160/header-value-set-on-middleware-is-not-propagated-on-client-request-of itif(!isModeDeploy).each(['hello', 'en_hello', 'nl-NL_hello', 'nl-NL_about'])( - 'should match has query on client routing', + 'should match has query on client routing %s', async (id) => { const browser = await webdriver(next.url, '/routes') await browser.eval('window.__TEST_NO_RELOAD = true') diff --git a/test/rspack-build-tests-manifest.json b/test/rspack-build-tests-manifest.json index 3063f9458c8c7..dc3feb293a086 100644 --- a/test/rspack-build-tests-manifest.json +++ b/test/rspack-build-tests-manifest.json @@ -6691,8 +6691,20 @@ }, "test/e2e/middleware-custom-matchers-i18n/test/index.test.ts": { "passed": [ - "Middleware custom matchers i18n should match", - "Middleware custom matchers i18n should match has query on client routing", + "Middleware custom matchers i18n should not match", + "Middleware custom matchers with root should not match", + "Middleware custom matchers i18n should match /hello", + "Middleware custom matchers i18n should match /en/hello", + "Middleware custom matchers i18n should match /nl-NL/hello", + "Middleware custom matchers i18n should match /nl-NL/about", + "Middleware custom matchers i18n should not match /invalid/hello", + "Middleware custom matchers i18n should not match /hello/invalid", + "Middleware custom matchers i18n should not match /about", + "Middleware custom matchers i18n should not match /en/about", + "Middleware custom matchers i18n should match has query on client routing hello", + "Middleware custom matchers i18n should match has query on client routing en_hello", + "Middleware custom matchers i18n should match has query on client routing nl-NL_hello", + "Middleware custom matchers i18n should match has query on client routing nl-NL_about", "Middleware custom matchers i18n should not match", "Middleware custom matchers with root should not match" ], diff --git a/test/rspack-dev-tests-manifest.json b/test/rspack-dev-tests-manifest.json index e41dd5a1aa748..d62747765c389 100644 --- a/test/rspack-dev-tests-manifest.json +++ b/test/rspack-dev-tests-manifest.json @@ -9939,8 +9939,20 @@ }, "test/e2e/middleware-custom-matchers-i18n/test/index.test.ts": { "passed": [ - "Middleware custom matchers i18n should match", - "Middleware custom matchers i18n should match has query on client routing", + "Middleware custom matchers i18n should not match", + "Middleware custom matchers with root should not match", + "Middleware custom matchers i18n should match /hello", + "Middleware custom matchers i18n should match /en/hello", + "Middleware custom matchers i18n should match /nl-NL/hello", + "Middleware custom matchers i18n should match /nl-NL/about", + "Middleware custom matchers i18n should not match /invalid/hello", + "Middleware custom matchers i18n should not match /hello/invalid", + "Middleware custom matchers i18n should not match /about", + "Middleware custom matchers i18n should not match /en/about", + "Middleware custom matchers i18n should match has query on client routing hello", + "Middleware custom matchers i18n should match has query on client routing en_hello", + "Middleware custom matchers i18n should match has query on client routing nl-NL_hello", + "Middleware custom matchers i18n should match has query on client routing nl-NL_about", "Middleware custom matchers i18n should not match", "Middleware custom matchers with root should not match" ], diff --git a/test/turbopack-build-tests-manifest.json b/test/turbopack-build-tests-manifest.json index 6e8d108296112..04401b7671678 100644 --- a/test/turbopack-build-tests-manifest.json +++ b/test/turbopack-build-tests-manifest.json @@ -6617,11 +6617,21 @@ "test/e2e/middleware-custom-matchers-i18n/test/index.test.ts": { "passed": [ "Middleware custom matchers i18n should not match", - "Middleware custom matchers with root should not match" + "Middleware custom matchers with root should not match", + "Middleware custom matchers i18n should match /hello", + "Middleware custom matchers i18n should match /en/hello", + "Middleware custom matchers i18n should match /nl-NL/hello", + "Middleware custom matchers i18n should not match /invalid/hello", + "Middleware custom matchers i18n should not match /hello/invalid", + "Middleware custom matchers i18n should not match /about", + "Middleware custom matchers i18n should not match /en/about", + "Middleware custom matchers i18n should match has query on client routing hello", + "Middleware custom matchers i18n should match has query on client routing en_hello", + "Middleware custom matchers i18n should match has query on client routing nl-NL_hello" ], "failed": [ - "Middleware custom matchers i18n should match", - "Middleware custom matchers i18n should match has query on client routing" + "Middleware custom matchers i18n should match /nl-NL/about", + "Middleware custom matchers i18n should match has query on client routing nl-NL_about" ], "pending": [], "flakey": [], diff --git a/test/turbopack-dev-tests-manifest.json b/test/turbopack-dev-tests-manifest.json index 5dabbc534ef6b..981046e49c428 100644 --- a/test/turbopack-dev-tests-manifest.json +++ b/test/turbopack-dev-tests-manifest.json @@ -9810,8 +9810,20 @@ }, "test/e2e/middleware-custom-matchers-i18n/test/index.test.ts": { "passed": [ - "Middleware custom matchers i18n should match", - "Middleware custom matchers i18n should match has query on client routing", + "Middleware custom matchers i18n should not match", + "Middleware custom matchers with root should not match", + "Middleware custom matchers i18n should match /hello", + "Middleware custom matchers i18n should match /en/hello", + "Middleware custom matchers i18n should match /nl-NL/hello", + "Middleware custom matchers i18n should match /nl-NL/about", + "Middleware custom matchers i18n should not match /invalid/hello", + "Middleware custom matchers i18n should not match /hello/invalid", + "Middleware custom matchers i18n should not match /about", + "Middleware custom matchers i18n should not match /en/about", + "Middleware custom matchers i18n should match has query on client routing hello", + "Middleware custom matchers i18n should match has query on client routing en_hello", + "Middleware custom matchers i18n should match has query on client routing nl-NL_hello", + "Middleware custom matchers i18n should match has query on client routing nl-NL_about", "Middleware custom matchers i18n should not match", "Middleware custom matchers with root should not match" ],