-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Chrome update warning blocks hover tests #16693
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
Comments
We pass the Some threads online seem to indicate maybe the If you haven't changed the default flags originally, can you try passing this flag like shown below to see if it gets rid of the popup? // cypress/plugins/index.js
module.exports = (on, config) => {
on('before:browser:launch', (browser = {}, launchOptions) => {
if (browser.family === 'chromium' && browser.name !== 'electron') {
// auto open devtools
launchOptions.args.push(`--simulate-outdated-no-au='Tue, 31 Dec 2099 23:59:59 GMT'`)
}
// whatever you return here becomes the launchOptions
return launchOptions
})
} |
I'll give that a go now, I used this to simulate it in the newer versions of chrome it looks like they removed the popup in favour of the menu button. // cypress/plugins/index.js
on("before:browser:launch", (browser = {}, launchOptions) => {
launchOptions.args.push("--simulate-critical-update");
return launchOptions;
});
|
Yah I can open a PR for this. |
The code for this is done in cypress-io/cypress#16694, but has yet to be released. |
Released in This comment thread has been locked. If you are still experiencing this issue after upgrading to |
Current behavior
We use the official docker image https://github.com/cypress-io/cypress-docker-images/tree/master/browsers/node14.16.0-chrome89-ff86 and our builds that checked hover suddenly stopped working.
We build a lot of images and found that the issue lied in few specific chrome versions.
I connected using X11 and found that chrome sometimes displays an update message which means the
.trigger('mouseover')
does not work correctly.Desired behavior
Chrome auto update should be disabled or dismissed.
Test code to reproduce
I'll create one and update the ticket.No longer required.
Versions
cypress@7.4.0
The text was updated successfully, but these errors were encountered: