Remove Capybara Chrome 158 storage-clear workaround once Capybara is fixed

Open Beginner friendly
#5,915 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
75/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
rails, ruby
Domain
testing

Research direction

Start by checking the Capybara fix linked in teamcapybara/capybara#2865 and identify the released version that includes it. Then update the system test Capybara dependency and remove ChromeStorageClearWorkaround and its prepend from spec/dummy/test/application_system_test_case.rb. Run the system_tests CI job; the issue is done when it passes without the workaround.

Written by the indexing model from the issue text.

Description

rmosolgo/graphql-ruby#5914 added ChromeStorageClearWorkaround to spec/dummy/test/application_system_test_case.rb because Capybara 3.40's ChromeDriver#reset! calls Storage.clearDataForOrigin with origin: "*", which Chrome 158+ rejects (invalid argument: * is not a valid URL).

Upstream issue: teamcapybara/capybara#2865

When Capybara releases a fix:

  • Bump capybara for the system tests
  • Delete the ChromeStorageClearWorkaround module and its prepend from spec/dummy/test/application_system_test_case.rb
  • Confirm the system_tests CI job still passes
Dominant language
Ruby
Stars
5.4k
Forks
1.4k
Avg merge
1d 6h
Merged PRs (30d)
41

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from rmosolgo/graphql-ruby

All issues in rmosolgo/graphql-ruby

Similar issues

More Ruby issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.