cypress set viewport code example
Example 1: cypress support ability to set viewport in `before`
"script_name": "./node_modules/.bin/cypress run --browser chrome --config viewportWidth=414,viewportHeight=896 --spec 'cypress/integration/file_name.js'"
Example 2: cypress set viewport
{
"viewportWidth": 1280,
"viewportHeight": 720
}
Example 3: cypress set viewport
{
"viewportWidth": 1280,
"viewportHeight": 720
}
"script_name": "./node_modules/.bin/cypress run --browser chrome --config viewportWidth=414,viewportHeight=896 --spec 'cypress/integration/file_name.js'"