Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Code maintenance/60714 ci broken with chromedriver for chrome 132 #17708

Conversation

ulferts
Copy link
Contributor

@ulferts ulferts commented Jan 23, 2025

Ticket

https://community.openproject.org/wp/60714

What are you trying to accomplish?

Rely on the current chrome again by switching to the new headless mode as:

Old Headless mode has been removed from the Chrome binary. Please use the new Headless mode (https://developer.chrome.com/docs/chromium/new-headless) or the chrome-headless-shell which is a standalone implementation of the old Headless mode (https://developer.chrome.com/blog/chrome-headless-shell).

Additionally, this fixes the flickering spec for spec/features/work_packages/table/edit_work_packages_spec.rb. The spec tried to clear an input field with the value 'Foobar'. But because the click to activate the field was happening in the middle of the string and then backspace was used, only the 'Foo' part was removed leaving 'bar'. Now the browser first goes to the end of the input before backspacing.

From the cromedriver output:
Old Headless mode has been removed from the Chrome binary. Please use the new Headless mode (https://developer.chrome.com/docs/chromium/new-headless) or the chrome-headless-shell which is a standalone implementation of the old Headless mode (https://developer.chrome.com/blog/chrome-headless-shell).
@ulferts ulferts force-pushed the code-maintenance/60714-ci-broken-with-chromedriver-for-chrome-132 branch from 9dc2057 to 5f6a2de Compare January 24, 2025 15:40
@ulferts ulferts marked this pull request as ready for review January 27, 2025 08:00
@opf opf deleted a comment from github-actions bot Jan 27, 2025
Copy link
Member

@oliverguenther oliverguenther left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent, thank you for finding the cause 👏

@oliverguenther oliverguenther merged commit 17cef29 into dev Jan 27, 2025
14 checks passed
@oliverguenther oliverguenther deleted the code-maintenance/60714-ci-broken-with-chromedriver-for-chrome-132 branch January 27, 2025 09:13
@cbliard
Copy link
Member

cbliard commented Jan 27, 2025

Ah, the old headless mode was explicitly used with selenium (used --headless=old). Good catch!

And with Cuprite/Ferrum, headless was specified without explicitly asking for new or old mode (used --headless), which is why it continued working.

That all makes sense now.

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

Successfully merging this pull request may close these issues.

3 participants