Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

cypress set viewport for all test cases

// pass viewport in cmd, this will over ride settings in cypress.json

"script_name": "./node_modules/.bin/cypress run --browser chrome --config viewportWidth=414,viewportHeight=896 --spec 'cypress/integration/file_name.js'"
      
 
PREVIOUS NEXT
Tagged: #cypress #set #viewport #test #cases
ADD COMMENT
Topic
Name
8+8 =