Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions packages/tests-e2e/tests/appPagesRouter/host.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ import { expect, test } from "@playwright/test";
* Tests that the request.url is the deployed host and not localhost
*/
test("Request.url is host", async ({ baseURL, page }) => {
// We skip this test when E2E is run locally with `http` as protocol.
// The cause can be seen here: https://github.com/opennextjs/opennextjs-aws/issues/969#issuecomment-3239569901
test.skip(
(baseURL ?? "").startsWith("http://localhost"),
"Skipping test on localhost",
);
await page.goto("/api/host");

const el = page.getByText(`{"url":"${baseURL}/api/host"}`);
Expand Down
6 changes: 6 additions & 0 deletions packages/tests-e2e/tests/appRouter/host.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,12 @@ import { expect, test } from "@playwright/test";
* Tests that the request.url is the deployed host and not localhost
*/
test("Request.url is host", async ({ baseURL, page }) => {
// We skip this test when E2E is run locally with `http` as protocol.
// The cause can be seen here: https://github.com/opennextjs/opennextjs-aws/issues/969#issuecomment-3239569901
test.skip(
(baseURL ?? "").startsWith("http://localhost"),
"Skipping test on localhost",
);
await page.goto("/api/host");

const el = page.getByText(`{"url":"${baseURL}/api/host"}`);
Expand Down
Loading