Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
fix(rstest): use preinstalled Chrome for the playwright example in CI
  • Loading branch information
fi3ework committed Sep 15, 2026
commit 9f9ef6c6eb2717a567eb42224e2ad9b38fa554af
10 changes: 9 additions & 1 deletion rstest/playwright/tests/home.test.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
import { expect, test } from '@rstest/playwright';
import type { PlaywrightOptions } from '@rstest/playwright';

test('home page renders the Rsbuild + React app', { timeout: 15_000 }, async ({ page, serve }) => {
// Use the preinstalled Chrome in CI instead of downloading Chromium.
const e2e = test.extend({
playwright: {
launchOptions: process.env.GITHUB_ACTIONS ? { channel: 'chrome' } : undefined,
} satisfies PlaywrightOptions,
});

e2e('home page renders the Rsbuild + React app', { timeout: 15_000 }, async ({ page, serve }) => {
const { url } = await serve('./dist/index.html');

await page.goto(url);
Expand Down
Loading