Skip to content

test(extension): run extension tests headless - #44048

Closed
Pavel Feldman (pavelfeldman) wants to merge 1 commit into
microsoft:mainfrom
pavelfeldman:extension-tests-headless
Closed

Pavel Feldman (pavelfeldman) wants to merge 1 commit into
microsoft:mainfrom
pavelfeldman:extension-tests-headless

Conversation

@pavelfeldman

@pavelfeldman Pavel Feldman (pavelfeldman) commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Summary

  • With PWTEST_EXTENSION_PRINT_CONNECT_URL, the relay prints the connect page URL to stderr instead of starting the browser executable. The tests open that URL in their own browser with openConnectPage(), so the browser runs headless.
  • Removes the one-worker limit on CI and moves the job to ubuntu-latest.

@github-actions

This comment has been minimized.

Comment thread tests/extension/extension-fixtures.ts Outdated
const executablePath = path.join(dir, 'browser.sh');
const requestsFile = path.join(dir, 'requests.txt');
await fs.writeFile(requestsFile, '');
await fs.writeFile(executablePath, `#!/bin/bash\necho "$@" >> "${requestsFile}"\n`, { mode: 0o755 });

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use playwright to drive the browser

The relay opens the connect page by starting the browser executable and
relies on the running browser to take the URL over, which needs a headed
browser. With PWTEST_EXTENSION_PRINT_CONNECT_URL the relay prints the
URL to stderr instead, and the tests open it in their own browser with
openConnectPage(). The browser runs headless, the tests run in parallel,
and the CI job moves to ubuntu-latest.
@github-actions

This comment has been minimized.

@github-actions

This comment has been minimized.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

1 flaky ⚠️ [chromium-library] › library/video.spec.ts:762 › screencast › VI-030 should work with video+trace `@chromium-playwright-x64-ubuntu24-64-core-node22`

23618 passed, 713 skipped


Merge workflow run.

@github-actions

Copy link
Copy Markdown
Contributor

Test results for "MCP"

5229 passed, 637 skipped


Merge workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants