Skip to content

Commit bd9dbfa

Browse files
committed
Launch the Chromium build CI installs in the enter-text test
CI installs Chromium with --no-shell since #829, and enter-text launched Playwright's default, the separate headless shell, so it failed to start. It now launches channel "chromium", the build the computer itself launches. (cherry picked from commit f220198)
1 parent c450ae5 commit bd9dbfa

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

‎agent-computer/tests/enter-text.test.ts‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,9 @@ let browser: Browser;
4040
beforeAll(async () => {
4141
if (!asked) return;
4242
const { chromium } = await import("playwright");
43-
browser = await chromium.launch();
43+
// The build the computer launches and CI installs (`playwright install --no-shell chromium`).
44+
// Playwright's default here is the separate headless shell, which is no longer on the runner.
45+
browser = await chromium.launch({ channel: "chromium" });
4446
});
4547

4648
afterAll(async () => {

0 commit comments

Comments
 (0)