Skip to content

Improve end2end test runner - #563

Open
camillobruni wants to merge 9 commits into
WebKit:mainfrom
camillobruni:2026-07-14_headless_test
Open

Improve end2end test runner#563
camillobruni wants to merge 9 commits into
WebKit:mainfrom
camillobruni:2026-07-14_headless_test

Conversation

@camillobruni

@camillobruni camillobruni commented Jul 14, 2026

Copy link
Copy Markdown
Contributor
  • Support --headless option for chrome / edge / firefox
  • Auto-detect headless on linux machines
  • Use --port=0 by default for auto-assigning ports for the test server
  • Fix potential "race" for attaching the "onListening" callback to the test server
  • Move resources tests to separate file-based test file

@netlify

netlify Bot commented Jul 14, 2026

Copy link
Copy Markdown

Deploy Preview for webkit-speedometer-preview ready!

Name Link
🔨 Latest commit 31dd759
🔍 Latest deploy log https://app.netlify.com/projects/webkit-speedometer-preview/deploys/6a578a56ab93a900082a1ac5
😎 Deploy Preview https://deploy-preview-563--webkit-speedometer-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

Comment thread package.json
"test-e2e:chrome": "node tests/run-end2end.mjs --browser chrome",
"test-e2e:firefox": "node tests/run-end2end.mjs --browser firefox",
"test-e2e:safari": "node tests/run-end2end.mjs --browser safari",
"test-e2e:edge": "node tests/run-end2end.mjs --browser edge",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think this change isn't necessary, but I don't mind.

Comment thread tests/server.mjs
close() {
ws.server.close();
},
};

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

I think the outer close is dead now, so you should probably remove it.

Comment thread tests/helper.mjs
switch (BROWSER) {
case "safari": {
if (isHeadless)
console.warn("Warning: --headless is not supported with safari, running in windowed mode.");

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

👍

@Andrew-Fryer Andrew-Fryer left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM (ofc fix merge conflicts)

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