Skip to content

Reset browser test sessions on Chrome 158 - #356

Merged
HamptonMakes merged 1 commit into
mainfrom
hampton-chrome-session-reset
Nov 25, 2026
Merged

HamptonMakes merged 1 commit into
mainfrom
hampton-chrome-session-reset

Conversation

@HamptonMakes

Copy link
Copy Markdown
Collaborator

What changed and why

Chrome 158 rejects the wildcard origin Capybara 3.40 uses to clear browser data between tests. A passing test can then fail during cleanup, as happened on both browser matrices in #338.

When Chrome reports this specific reset error, the test driver closes its temporary profile. The next browser starts with the configured desktop window size and fresh storage. Other reset errors still surface. On affected versions, the next test pays the cost of starting Chrome again.

Evidence

On Chrome for Testing 158.0.8127.88, the regression failed at page.reset! with invalid argument: * is not a valid URL before the fix. After the fix, the same test confirmed that the cookie and local-storage value disappeared and the window kept its configured size. It also passed on Chrome 150.0.7871.124.

How to try it

With the test database configured, use Chrome 158 for Testing and run bundle exec rspec spec/system/browser_session_reset_spec.rb. Expect one passing example.

Testing

  • Chrome 158 passed all seven examples in bundle exec rspec spec/system/browser_session_reset_spec.rb spec/system/browser_synchronization_spec.rb spec/system/voice_commenting_spec.rb:458 spec/system/comment_composer_spec.rb:471.
  • RuboCop passed on both changed files. Local testing covered the affected browser paths. CI runs the full suite.
  • The change is confined to test support and a browser regression spec. It has no application UI.

Generated with Codex

Signed-off-by: Hampton Lintorn-Catlin <hampton@squareup.com>
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 25, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-25T17:43:31.826910Z 49fab17 PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@HamptonMakes
HamptonMakes merged commit ac1cf5b into main Nov 25, 2026
15 checks passed
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