Run Cypress Headless With a Mobile Viewport

Run the Cypress Test Runner with a Mobile Viewport in Headless Mode

Authored by: cypress-dx
Brought to you by Warp, a free terminal reimagined to work like a modern app.
width
height

Command
Copy
npx cypress run --config viewportWidth=375,viewportHeight=667
Tags