Skip to content

Commit

Permalink
test: add e2e
Browse files Browse the repository at this point in the history
  • Loading branch information
hi-ogawa committed Sep 28, 2024
1 parent 44b0ab9 commit 40a251c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ jobs:
- run: pnpm -C examples/workerd-cli test
- run: pnpm -C examples/browser-cli test
- run: pnpm -C examples/web-worker test-e2e
- run: pnpm -C examples/web-worker-rsc test-e2e
- run: pnpm -C examples/react-server test-e2e
- run: pnpm -C examples/react-server build
- run: pnpm -C examples/react-server test-e2e-preview
Expand Down
5 changes: 4 additions & 1 deletion examples/web-worker-rsc/e2e/basic.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ import { expect, test } from "@playwright/test";
test("basic", async ({ page }) => {
await page.goto("/");
await expect(page.getByTestId("worker-message")).toContainText(
"Rendered in web worker",
"[Suspense:fallback]",
);
await expect(page.getByTestId("worker-message")).toContainText(
"[Suspense:OK]",
);
});

0 comments on commit 40a251c

Please sign in to comment.