1// pass viewport in cmd, this will over ride settings in cypress.json
2
3"script_name": "./node_modules/.bin/cypress run --browser chrome --config viewportWidth=414,viewportHeight=896 --spec 'cypress/integration/file_name.js'"
4
1//add this in cypress.json
2{
3 "viewportWidth": 1280,
4 "viewportHeight": 720
5}