Skip to content

test(browser-mode): guard headed e2e case by display availability#958

Merged
fi3ework merged 1 commit intomainfrom
max/2026-02-10--02-33PM
Feb 10, 2026
Merged

test(browser-mode): guard headed e2e case by display availability#958
fi3ework merged 1 commit intomainfrom
max/2026-02-10--02-33PM

Conversation

@fi3ework
Copy link
Copy Markdown
Member

Summary

to prevent fail like https://github.com/web-infra-dev/rspack/actions/runs/21852746524/job/63063200058.

This PR stabilizes browser-mode e2e execution by conditionally running the headed test only when the environment can actually launch a headed browser. It preserves the original headed-path assertion on macOS, Windows, and display-enabled Linux, while avoiding false negatives on Linux runners without X/Wayland display variables.

Behavior diff:

+------------------------------+---------------------------------------------+------------------------------------------------------+
| Scope                        | Before                                      | After                                                |
+------------------------------+---------------------------------------------+------------------------------------------------------+
| Headed e2e on Linux no display | Always runs and fails at browser launch      | Skipped via runtime guard                            |
| Headed e2e on mac/win/display Linux | Runs and asserts non-scheduler path behavior | Runs with same assertions and expected exit code     |
+------------------------------+---------------------------------------------+------------------------------------------------------+

Related Links

Checklist

  • Tests updated (or not required).
  • Documentation updated (or not required).

@fi3ework fi3ework enabled auto-merge (squash) February 10, 2026 06:34
@fi3ework fi3ework merged commit 4be7ee4 into main Feb 10, 2026
10 checks passed
@fi3ework fi3ework deleted the max/2026-02-10--02-33PM branch February 10, 2026 06:52
@9aoy 9aoy mentioned this pull request Feb 10, 2026
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.

1 participant