Closed tvdeyen closed 2 months ago
About the commit message referencing an issue I have opened elsewhere:
Since Chrome 128 there is a Search Engine selection popup even in headless mode that needs to be accepted. This leads to Capybara Element not found exceptions during system specs.
That is a bit more convoluted.
The actual change would be the headless
argument: with Chrome 127, it was a shortcut for headless=old
. It seems with Chrome 128 to behave as headless=new
. See this Chrome blog for details about these two modes.
The search engine choice screen seems to be a thing since at least version 127, but only with the "new" headless mode.
Your code seems to use headless
without a value, so, defaulting to "old" for older Chrome browsers, susceptible to default to "new" for newer Chrome browsers as explained in the blog previously linked.
Attention: Patch coverage is 75.00000%
with 1 line
in your changes missing coverage. Please review.
Project coverage is 95.97%. Comparing base (
8e003e7
) to head (c368c16
). Report is 5 commits behind head on main.
Files | Patch % | Lines |
---|---|---|
.../spec/support/solidus_starter_frontend/capybara.rb | 66.66% | 1 Missing :warning: |
:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.
Thanks @fredericDelaporte since the :headless_chrome
setup is handled in Rails itself https://github.com/rails/rails/blob/6f57590388ca38ed2b83bc1207a8be13a9ba2aef/actionpack/lib/action_dispatch/system_testing/browser.rb#L61 we are fixing it like this for now. After a Rails update we can probably remove this.
Thanks for the heads up and explanation of the actual cause of this issue. Very much appreciated 🙏🏻
Status | Branch | Result |
---|---|---|
✅ | v4.3 |
Please refer to the Backport tool documentation
Summary
Fresh Rails apps with Stimulus installed already have a
app/javascript/controller/index.js
file with boilerplate code. Since we install this file as well we need to overwrite it if auto accept is enabled.Example of failing build in Solidus core https://app.circleci.com/pipelines/github/solidusio/solidus/6567/workflows/570ef440-07cb-470a-bb91-9f08ba79c1de/jobs/60769
Checklist
Check out our PR guidelines for more details.
The following are mandatory for all PRs:
The following are not always needed: