Skip to content

Run browser tests with Selenium in CI - #178

Merged
soulgalore merged 1 commit into
mainfrom
add-selenium-browser-tests
Oct 21, 2026
Merged

soulgalore merged 1 commit into
mainfrom
add-selenium-browser-tests

Conversation

@soulgalore

Copy link
Copy Markdown
Member

The unit tests cannot tell when the page loads but a button does nothing, which is the easiest way to break Compare: one blocked inline handler or one missing data-action entry. Until now that could only be caught by clicking through the page by hand.

A separate workflow now builds the site and drives it in headless Chrome with Selenium, serving it with the real Content-Security-Policy. The tests go through the main flows and fail on any browser error or CSP violation. Linting and unit tests stay in their own workflow, so a lint failure and a broken page show up as separate checks.

Assisted-by: Claude Opus 5.5 noreply@anthropic.com

The unit tests cannot tell when the page loads but a button does
nothing, which is the easiest way to break Compare: one blocked inline
handler or one missing data-action entry. Until now that could only be
caught by clicking through the page by hand.

A separate workflow now builds the site and drives it in headless
Chrome with Selenium, serving it with the real Content-Security-Policy.
The tests go through the main flows and fail on any browser error or
CSP violation. Linting and unit tests stay in their own workflow, so a
lint failure and a broken page show up as separate checks.

Assisted-by: Claude Opus 5.5 noreply@anthropic.com
@soulgalore
soulgalore merged commit d8975a5 into main Oct 21, 2026
2 checks passed
@soulgalore
soulgalore deleted the add-selenium-browser-tests branch October 21, 2026 05:29
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