Skip to content

Chrome: Support true headless mode #25972

@Lokideos

Description

@Lokideos

What would you like?

Context

In a recent update, Chrome updated the headless mode.

According to the article, Google had two separate builds for Chrome: one for headless, and one for headful modes, which might have potentially created problems for automation engineers since there might've been differences between Chrome behavior in the test environment and in the production environment.

After the recent update, it is no longer the case.

Implementation

Mathias and Peter describe in the article how to opt to the new headless mode for Puppeteer and Selenium-WebDriver, but, unfortunately, don't do it for Cypress.
Though, I think that implementation examples can give a general idea of how to do it in Cypress.

Why is this needed?

To avoid potential inconsistencies between the test environment, in which we run Cypres tests, and the production environment.

Other

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    E2EIssue related to end-to-end testingTriagedIssue has been routed to backlog. This is not a commitment to have it prioritized by the team.browser: chromeexisting workaroundtype: featureNew feature that does not currently exist

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions