fix(create-pages): pass request url for createApi handler with search #631
Annotations
10 errors, 1 warning, and 1 notice
Run pnpm exec playwright test --shard=2/4:
e2e/create-pages.spec.ts#L152
2) [firefox] › e2e/create-pages.spec.ts:149:5 › create-pages: PRD › api hi with search params ────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "hello world! https://localhost:46551/api/hi?foo=bar"
Received: "hello world!"
150 | const res = await fetch(`http://localhost:${port}/api/hi?foo=bar`);
151 | expect(res.status).toBe(200);
> 152 | expect(await res.text()).toBe(
| ^
153 | `hello world! https://localhost:${port}/api/hi?foo=bar`,
154 | );
155 | });
at /home/runner/work/waku/waku/e2e/create-pages.spec.ts:152:32
|
Run pnpm exec playwright test --shard=2/4:
e2e/create-pages.spec.ts#L152
2) [firefox] › e2e/create-pages.spec.ts:149:5 › create-pages: PRD › api hi with search params ────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "hello world! https://localhost:36721/api/hi?foo=bar"
Received: "hello world!"
150 | const res = await fetch(`http://localhost:${port}/api/hi?foo=bar`);
151 | expect(res.status).toBe(200);
> 152 | expect(await res.text()).toBe(
| ^
153 | `hello world! https://localhost:${port}/api/hi?foo=bar`,
154 | );
155 | });
at /home/runner/work/waku/waku/e2e/create-pages.spec.ts:152:32
|
Run pnpm exec playwright test --shard=2/4:
e2e/create-pages.spec.ts#L152
2) [firefox] › e2e/create-pages.spec.ts:149:5 › create-pages: PRD › api hi with search params ────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "hello world! https://localhost:37135/api/hi?foo=bar"
Received: "hello world!"
150 | const res = await fetch(`http://localhost:${port}/api/hi?foo=bar`);
151 | expect(res.status).toBe(200);
> 152 | expect(await res.text()).toBe(
| ^
153 | `hello world! https://localhost:${port}/api/hi?foo=bar`,
154 | );
155 | });
at /home/runner/work/waku/waku/e2e/create-pages.spec.ts:152:32
|
Run pnpm exec playwright test --shard=2/4:
e2e/create-pages.spec.ts#L152
2) [firefox] › e2e/create-pages.spec.ts:149:5 › create-pages: PRD › api hi with search params ────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "hello world! https://localhost:44673/api/hi?foo=bar"
Received: "hello world!"
150 | const res = await fetch(`http://localhost:${port}/api/hi?foo=bar`);
151 | expect(res.status).toBe(200);
> 152 | expect(await res.text()).toBe(
| ^
153 | `hello world! https://localhost:${port}/api/hi?foo=bar`,
154 | );
155 | });
at /home/runner/work/waku/waku/e2e/create-pages.spec.ts:152:32
|
Run pnpm exec playwright test --shard=2/4:
e2e/create-pages.spec.ts#L152
1) [firefox] › e2e/create-pages.spec.ts:149:5 › create-pages: DEV › api hi with search params ────
Retry #3 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "hello world! https://localhost:41949/api/hi?foo=bar"
Received: "hello world!"
150 | const res = await fetch(`http://localhost:${port}/api/hi?foo=bar`);
151 | expect(res.status).toBe(200);
> 152 | expect(await res.text()).toBe(
| ^
153 | `hello world! https://localhost:${port}/api/hi?foo=bar`,
154 | );
155 | });
at /home/runner/work/waku/waku/e2e/create-pages.spec.ts:152:32
|
Run pnpm exec playwright test --shard=2/4:
e2e/create-pages.spec.ts#L152
1) [firefox] › e2e/create-pages.spec.ts:149:5 › create-pages: DEV › api hi with search params ────
Retry #2 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "hello world! https://localhost:36831/api/hi?foo=bar"
Received: "hello world!"
150 | const res = await fetch(`http://localhost:${port}/api/hi?foo=bar`);
151 | expect(res.status).toBe(200);
> 152 | expect(await res.text()).toBe(
| ^
153 | `hello world! https://localhost:${port}/api/hi?foo=bar`,
154 | );
155 | });
at /home/runner/work/waku/waku/e2e/create-pages.spec.ts:152:32
|
Run pnpm exec playwright test --shard=2/4:
e2e/create-pages.spec.ts#L152
1) [firefox] › e2e/create-pages.spec.ts:149:5 › create-pages: DEV › api hi with search params ────
Retry #1 ───────────────────────────────────────────────────────────────────────────────────────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "hello world! https://localhost:42957/api/hi?foo=bar"
Received: "hello world!"
150 | const res = await fetch(`http://localhost:${port}/api/hi?foo=bar`);
151 | expect(res.status).toBe(200);
> 152 | expect(await res.text()).toBe(
| ^
153 | `hello world! https://localhost:${port}/api/hi?foo=bar`,
154 | );
155 | });
at /home/runner/work/waku/waku/e2e/create-pages.spec.ts:152:32
|
Run pnpm exec playwright test --shard=2/4:
e2e/create-pages.spec.ts#L152
1) [firefox] › e2e/create-pages.spec.ts:149:5 › create-pages: DEV › api hi with search params ────
Error: expect(received).toBe(expected) // Object.is equality
Expected: "hello world! https://localhost:41691/api/hi?foo=bar"
Received: "hello world!"
150 | const res = await fetch(`http://localhost:${port}/api/hi?foo=bar`);
151 | expect(res.status).toBe(200);
> 152 | expect(await res.text()).toBe(
| ^
153 | `hello world! https://localhost:${port}/api/hi?foo=bar`,
154 | );
155 | });
at /home/runner/work/waku/waku/e2e/create-pages.spec.ts:152:32
|
Run pnpm exec playwright test --shard=2/4:
e2e/utils.ts#L0
stderr: Error: Not Found
at SyncPage (file:///home/runner/work/_temp/broken-links8tgjKx/src/pages/dynamic-not-found/sync.tsx:6:46)
at resolveErrorDev (/home/runner/work/_temp/broken-links8tgjKx/node_modules/.vite/waku-dev-server-main/deps_ssr/react-server-dom-webpack_client__edge.js?v=849b1665:4901:65)
at processFullStringRow (/home/runner/work/_temp/broken-links8tgjKx/node_modules/.vite/waku-dev-server-main/deps_ssr/react-server-dom-webpack_client__edge.js?v=849b1665:5098:19)
at processFullBinaryRow (/home/runner/work/_temp/broken-links8tgjKx/node_modules/.vite/waku-dev-server-main/deps_ssr/react-server-dom-webpack_client__edge.js?v=849b1665:5086:9)
at progress (/home/runner/work/_temp/broken-links8tgjKx/node_modules/.vite/waku-dev-server-main/deps_ssr/react-server-dom-webpack_client__edge.js?v=849b1665:5232:80) {
environmentName: 'Server',
digest: '__WAKU_CUSTOM_ERROR__;{"status":404}'
}
|
Run pnpm exec playwright test --shard=2/4:
e2e/utils.ts#L0
stderr: Error: Redirect
at createCustomError (file:///home/runner/work/waku/waku/packages/waku/dist/lib/utils/custom-errors.js:18:17)
at unstable_redirect (file:///home/runner/work/waku/waku/packages/waku/dist/router/define-router.js:58:52)
at SyncPage (file:///home/runner/work/waku/waku/e2e/fixtures/ssr-redirect/src/pages/sync.tsx:6:46)
at resolveErrorDev (/home/runner/work/waku/waku/e2e/fixtures/ssr-redirect/node_modules/.vite/waku-dev-server-main/deps_ssr/react-server-dom-webpack_client__edge.js?v=46f14495:4901:65)
at processFullStringRow (/home/runner/work/waku/waku/e2e/fixtures/ssr-redirect/node_modules/.vite/waku-dev-server-main/deps_ssr/react-server-dom-webpack_client__edge.js?v=46f14495:5098:19)
at processFullBinaryRow (/home/runner/work/waku/waku/e2e/fixtures/ssr-redirect/node_modules/.vite/waku-dev-server-main/deps_ssr/react-server-dom-webpack_client__edge.js?v=46f14495:5086:9)
at progress (/home/runner/work/waku/waku/e2e/fixtures/ssr-redirect/node_modules/.vite/waku-dev-server-main/deps_ssr/react-server-dom-webpack_client__edge.js?v=46f14495:5232:80) {
environmentName: 'Server',
digest: '__WAKU_CUSTOM_ERROR__;{"status":307,"location":"/destination"}'
}
|
Run pnpm exec playwright test --shard=2/4:
[firefox] › e2e/examples-smoke.spec.ts#L0
[firefox] › e2e/examples-smoke.spec.ts took 1.3m
|
Run pnpm exec playwright test --shard=2/4
2 failed
[firefox] › e2e/create-pages.spec.ts:149:5 › create-pages: DEV › api hi with search params ─────
[firefox] › e2e/create-pages.spec.ts:149:5 › create-pages: PRD › api hi with search params ─────
4 skipped
195 passed (9.3m)
|
Loading