-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Texts rendering problems with Chrome #2005
Comments
Duplicate of #1617 |
@sergiop per my comment on the other duplicate issues - Can you do us a favor and remove the flags that we pass to chrome until this no longer breaks? Since it works in normal Chrome but not in Cypress I am 100% sure it's related to a flag we pass. However, none of us can reproduce and we need help reproducing what is causing this problem. |
Of course @brian-mann, I'll gladly help you with some debugging. I solved adding |
@sergiop that's how you solve the problem - but because that flag is not needed when you "normally use Chrome" its just hiding the real problem. The real problem is that some flag that we pass to Chrome is causing it to enter into this rendering mode. I don't know what it is. It would be great if you can remove the flags that we pass into chrome one by one until it "works". You can remove the flags by tapping into the https://docs.cypress.io/api/plugins/browser-launch-api.html# |
Hi @brian-mann, as you asked me I removed one by one all the flags but I had no success. :-( This is what I get from args var: args = ['--test-type', '--ignore-certificate-errors', '--start-maximized', '--silent-debugger-extension-api', '--no-default-browser-check', '--no-first-run', '--noerrdialogs', '--enable-fixed-layout', '--disable-popup-blocking', '--disable-password-generation', '--disable-save-password-bubble', '--disable-single-click-autofill', '--disable-prompt-on-repos', '--disable-background-timer-throttling', '--disable-renderer-backgrounding', '--disable-renderer-throttling', '--disable-restore-session-state', '--disable-translate', '--disable-new-profile-management', '--disable-new-avatar-menu', '--allow-insecure-localhost', '--reduce-security-for-testing', '--enable-automation', '--disable-infobars', '--disable-device-discovery-notifications', '--disable-blink-features=RootLayerScrolling', '--metrics-recording-only', '--disable-prompt-on-repost', '--disable-hang-monitor', '--disable-sync', '--disable-web-resources', '--safebrowsing-disable-auto-update', '--safebrowsing-disable-download-protection', '--disable-client-side-phishing-detection', '--disable-component-update', '--disable-default-apps', '--proxy-server=http://localhost:55204'] ...and this is the syntax I used: if (browser.name === 'chrome') {
const index = args.indexOf('--disable-default-apps');
if (index > -1) {
args.splice(index, 1);
}
return args
} One final note: removing all the flags at the same time, still returns me the same error. if (browser.name === 'chrome') {
args = []
return args
} |
Just getting started checking out Cypress, which looks great. Unfortunately, I've run into the same problem as @sergiop. My regular Chrome works as expected, but Cypress just renders color blocks with text in the same color. So the testing works, but the rendering breaks. If I copy the text and pastes it somewhere else I get the correct messages from Cypress. Let me know if I can do anything to help. |
The |
Current behavior:
For a few days I have some problems with Cypress/Chrome. All texts disappears. All work properly, but Chrome has some problem rendering texts, inside developer tools too.

I have no problem with the normal instance of Chrome.
Any ideas to solve?
Versions
Cypress 3.0.1 (but it happened also with previous versions)
macOS 10.13.5
Google Chrome 67.0.3396.87 (64 bit)
The text was updated successfully, but these errors were encountered: