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

misc: allow HiDPI Screen running wayland to use cypress window/browser #29366

Open
wants to merge 6 commits into
base: develop
Choose a base branch
from

Conversation

azvyae
Copy link

@azvyae azvyae commented Apr 19, 2024

Additional details

  1. High demand of HiDPI Screen and multi monitor setups make people tend to use fractional scaling for each their own monitor differently. Problem happens when using chromium based app that can lead to blurriness of the UI. By providing simple flag to the electron arguments --ozone-platform=auto which literally can backwards compatible will help Wayland users to use chromium/electron without blurry texts, the flag also compatible with x11 window system if it's the only available option.

  2. Just small change to add the flag to the spawn.js file

Steps to test

It's already tested here

PR Tasks

@CLAassistant
Copy link

CLAassistant commented Apr 19, 2024

CLA assistant check
All committers have signed the CLA.

@cypress-app-bot
Copy link
Collaborator

@azvyae azvyae changed the title Allow HiDPI Screen running wayland to use cypress window/browser misc: allow HiDPI Screen running wayland to use cypress window/browser Apr 19, 2024
@jennifer-shehane
Copy link
Member

@azvyae Thanks for the contribution! Can you add a changelog entry to this? https://github.com/cypress-io/cypress/blob/develop/guides/writing-the-cypress-changelog.md#when-to-add-an-entry

@jennifer-shehane
Copy link
Member

@azvyae
Copy link
Author

azvyae commented Apr 19, 2024

Hey thanks @jennifer-shehane for the reply, just already fixed it. Feel free to ask if there is anything else to do

@@ -155,7 +155,7 @@ module.exports = {

const { onStderrData } = overrides
const envOverrides = util.getEnvOverrides(options)
const electronArgs = []
const electronArgs = ['--ozone-platform=auto']
Copy link
Collaborator

Choose a reason for hiding this comment

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

@azvyae, I believe that the tests here will need to be updated for this change: https://github.com/cypress-io/cypress/blob/develop/cli/test/lib/exec/spawn_spec.js#L117 (and possibly more below this test).

Copy link
Author

Choose a reason for hiding this comment

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

Is that part of ci/circleci: unit-tests workflow? If it is, how actually added more xml test reports to the repo?

Copy link
Collaborator

Choose a reason for hiding this comment

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

@azvyae, yeah that's the workflow. There's a bug in CI we have sometimes where the unit tests fail and it causes a report to not get generated for a specific package's unit tests and that's the error that we're seeing there. You should be able to see what's failing locally if you run:

yarn workspace cypress test-unit

Copy link
Collaborator

Choose a reason for hiding this comment

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

Note that I'm fixing the issue I mentioned above here: #29481

This will make tracking down the unit test failures easier once it lands.

@ryanthemanuel
Copy link
Collaborator

ryanthemanuel commented May 7, 2024

@azvyae, the failing unit tests are now showing up properly on the CI job:

image

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

Successfully merging this pull request may close these issues.

Wayland support on Linux
5 participants