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
5 changes: 4 additions & 1 deletion examples/e2e/app-pages-router/e2e/host.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@ import { expect, test } from "@playwright/test";

/**
* Tests that the request.url is the deployed host and not localhost
*
* This test is skipped since e2e tests for the cloudflare adapter
* run only locally to the baseURL doesn't match
*/
test("Request.url is host", async ({ baseURL, page }) => {
test.skip("Request.url is host", async ({ baseURL, page }) => {
await page.goto("/api/host");

const el = page.getByText(`{"url":"${baseURL}/api/host"}`);
Expand Down
3 changes: 2 additions & 1 deletion examples/e2e/app-pages-router/e2e/image-optimization.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { expect, test } from "@playwright/test";

test("Image Optimization", async ({ page }) => {
// Image Optimization is currently not supported: https://github.com/opennextjs/opennextjs-cloudflare/issues/106
test.skip("Image Optimization", async ({ page }) => {
await page.goto("/");

const imageResponsePromise = page.waitForResponse(/corporate_holiday_card.jpg/);
Expand Down
3 changes: 2 additions & 1 deletion examples/e2e/app-pages-router/e2e/isr.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { expect, test } from "@playwright/test";

test("Incremental Static Regeneration", async ({ page }) => {
// ISR is currently not supported: https://github.com/opennextjs/opennextjs-cloudflare/issues/105
test.skip("Incremental Static Regeneration", async ({ page }) => {
test.setTimeout(60000);
await page.goto("/");
await page.locator('[href="/isr"]').click();
Expand Down
3 changes: 2 additions & 1 deletion examples/e2e/app-pages-router/e2e/pages_isr.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import { expect, test } from "@playwright/test";

test("Incremental Static Regeneration", async ({ page }) => {
// ISR is currently not supported: https://github.com/opennextjs/opennextjs-cloudflare/issues/105
test.skip("Incremental Static Regeneration", async ({ page }) => {
test.setTimeout(60000);
await page.goto("/");
await page.locator('[href="/pages_isr"]').click();
Expand Down
2 changes: 1 addition & 1 deletion examples/e2e/app-pages-router/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"build:worker": "pnpm opennextjs-cloudflare",
"dev:worker": "wrangler dev --port 8792 --inspector-port 9352",
"preview": "pnpm build:worker && pnpm dev:worker",
"e2e-fix": "playwright test -c e2e/playwright.config.ts"
"e2e": "playwright test -c e2e/playwright.config.ts"
},
"dependencies": {
"@opennextjs/cloudflare": "workspace:*",
Expand Down