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//for all test files, add this in cypress.json
2{
3 "viewportWidth": 1280,
4 "viewportHeight": 720
5}
6//for individual file(applies for all test cases inside this file)
7//add a script in package.json
8
9"script_name": "./node_modules/.bin/cypress run --browser chrome --config viewportWidth=414,viewportHeight=896 --spec 'cypress/integration/file_name.js'"
10