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

Issues with cy.screenshot (locally and in cicd) #30419

Open
marc-at-brightnight opened this issue Oct 17, 2024 · 1 comment
Open

Issues with cy.screenshot (locally and in cicd) #30419

marc-at-brightnight opened this issue Oct 17, 2024 · 1 comment
Labels
stage: needs information Not enough info to reproduce the issue topic: screenshots 📸

Comments

@marc-at-brightnight
Copy link

Current behavior

I have two different issues with cy.screenshot.

in ci/cd

I'm using cypress-io/github-action@v6 to run my cypress tests in ci/cd. I notice that when uploading screenshots from the screenshots folder (using upload-artifact) resulting from calling cy.screenshot are cut off. While my viewport is 1600x900, the screenshots come out with a width less than 1300, meaning I'm missing the right side of the screenshot. Locally however, my screenshots come out fine. Any advice here? This is disrupting visual regression testing.

locally

calling cy.screenshot seems to cause some sort of distortion to the test runner. See screenshot of my Electron below. this persists for about 1-2s before going back to the normal test runner. This isn't a showstopper, but definitely annoying.

image

Desired behavior

No response

Test code to reproduce

unfortunately, since this is in ci/cd, difficult to reproduce.

Cypress Version

13.6.4

Node version

20.12.0

Operating System

macOS 15.0.1

Debug Logs

No response

Other

No response

@jennifer-shehane
Copy link
Member

Could you provide an example application/setup we could run to reproduce the issue?

@jennifer-shehane jennifer-shehane added the stage: needs information Not enough info to reproduce the issue label Oct 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stage: needs information Not enough info to reproduce the issue topic: screenshots 📸
Projects
None yet
Development

No branches or pull requests

2 participants