Skip to content

AO3-7707 - Fix JavaScript tests failing on Chrome 158 - #6154

Open
pmonfort wants to merge 2 commits into
otwcode:masterfrom
pmonfort:fix-chrome-158-capybara-reset
Open

pmonfort wants to merge 2 commits into
otwcode:masterfrom
pmonfort:fix-chrome-158-capybara-reset

Conversation

@pmonfort

@pmonfort pmonfort commented Dec 4, 2026

Copy link
Copy Markdown
Contributor

Pull Request Checklist

Issue

https://otwarchive.atlassian.net/browse/AO3-7707

Purpose

Cucumber is failing on master and on recent PRs because Chrome 158 rejects the "*" origin Capybara uses to clear cookies and local storage when it resets the session.

Capybara already fixed this in teamcapybara/capybara#2868, but there is no release with it yet. This adapts that fix in features/support. When Chrome rejects "*", it clears all cookies and the local storage of the current page's origin instead. Older Chrome versions behave as before.

The file can be removed once we update to a Capybara release that includes the fix.

Testing Instructions

Automated testing only. Cucumber should pass on CI with Chrome 158.

On Chrome 158, most of the 45 scenarios in skin_wizard.feature, preferences_edit.feature and muting.feature fail without this change, and all of them pass with it.

References

Credit

Pablo Monfort (he/him)

@pmonfort
pmonfort force-pushed the fix-chrome-158-capybara-reset branch from 20f9437 to 8a34031 Compare December 4, 2026 23:20
@pmonfort
pmonfort marked this pull request as ready for review December 4, 2026 23:38
@github-actions github-actions Bot added the Scope: Tests Only Only changes automated tests or test configuration label Dec 5, 2026

This branch has not been deployed

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

Labels

Scope: Tests Only Only changes automated tests or test configuration

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants