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

cypress-audit not working on Jenkins, always return 0 score #237

Open
Esteban-Rocha opened this issue Jun 6, 2024 · 0 comments
Open

cypress-audit not working on Jenkins, always return 0 score #237

Esteban-Rocha opened this issue Jun 6, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@Esteban-Rocha
Copy link

Esteban-Rocha commented Jun 6, 2024

What does not work?
When running on a Jenkins pipeline, the result score is always 0, locally it works perfectly fine:

Failing pipeline on Jenkins:

�cy:command  uncaught exception	TypeError: Cannot read properties of null (reading 'contentWindow')
�cy:command  url	
�cy:log   -------- cy.lighthouse --------
�cy:command  task	lighthouse, Object{4}
�cy:log  -----------------------------
�cy:command   wrap	performance record is 0 and is under the 85 threshold
�cy:command  �then	function(){}

"Running" pipeline locally:

�cy:command  uncaught exception	TypeError: Cannot read properties of null (reading 'contentWindow')
�cy:command  url	
�cy:log   -------- cy.lighthouse --------
�cy:command  task	lighthouse, Object{4}
�cy:log  -----------------------------
�cy:command   wrap	performance record is 81 and is under the 85 threshold
�cy:command  �then	function(){}

As you can see, the log is identical except for the actual score.

Expected behavior
The scores are the same when running the test suite, they should not drop to 0 when running on the pipeline.

Environment (please complete the following information):

  • OS: Local: MacOS :: Pipeline: Amazon Linux
  • Cypress version: "cypress": "^13.6.6",
@Esteban-Rocha Esteban-Rocha added the bug Something isn't working label Jun 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant