You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I attempt to capture a screenshot of an element using cy.get('').screenshot(), the screenshot quality varies depending on the browser and mode used during the test run:
High-quality screenshots:
In headed mode for both Chrome and Electron (npx cypress open).
In headless mode, but only when using Electron (npx cypress run --browser electron). Example with dimension 780 × 413:
Low-quality screenshots:
In headless mode with the Chrome browser (npx cypress run --browser chrome).
When running the test in a Docker container, regardless of the browser (Chrome or Electron) Example -- Dimension 390 × 207:
Please let me know how to avoid this problem. I need to have the screenshots in a highest quality especially in docker and headless runs.
Desired behavior
I need to have the screenshots with the highest quality for the future parsing and testing.
Current behavior
When I attempt to capture a screenshot of an element using cy.get('').screenshot(), the screenshot quality varies depending on the browser and mode used during the test run:
Example with dimension 780 × 413:
Example -- Dimension 390 × 207:
Please let me know how to avoid this problem. I need to have the screenshots in a highest quality especially in docker and headless runs.
Desired behavior
I need to have the screenshots with the highest quality for the future parsing and testing.
Test code to reproduce
my test --
test.cy.ts
:dockerfile:
Cypress Version
13.15.1
Node version
22.8.4
Operating System
macOS 15.1.1
Debug Logs
No response
Other
No response
The text was updated successfully, but these errors were encountered: