Configurations Flashcards
baseUrl
URL used as prefix for cy.visit() or cy.request() command’s URL. Default is Null
env
Any values to be set as environment variables.
numTestsKeptInMemory
The number of tests for which snapshots and command data are kept in memory. Reduce this number if you are experiencing high memory consumption in your browser during a test run. Default is 50.
port
Port used to host Cypress. Normally this is a randomly generated port. Default is Null.
reporter
The reporter used during cypress run. Default is ‘spec’.
reporterOptions
The reporter options used. Supported options depend on the reporter. Default is Null.
watchForFileChanges
Whether Cypress will watch and restart tests on test file changes. Default is TRUE.
defaultCommandTimeout
Timeout Setting: Time, in milliseconds, to wait until most DOM based commands are considered timed out. Default is 4000.
execTimeout
Time, in milliseconds, to wait for a system command to finish executing during a cy.exec() command. Default is 60000.
tasksTimeout
Time, in milliseconds, to wait for a task to finish executing during a cy.task() command. Default is 60000.
pageLoadTimeout
Time, in milliseconds, to wait for page transition events or cy.visit(), cy.go(), cy.reload() commands to fire their page load events. Network requests are limited by the underlying operating system, and may still time out if this value is increased. Default is 60000.
requestTimeout
Time, in milliseconds, to wait for an XHR request to go out in a cy.wait() command. Default is 5000.
responseTimeout
Time, in milliseconds, to wait until a response in a cy.request(), cy.wait(), cy.fixture(), cy.getCookie(), cy.getCookies(), cy.setCookie(), cy.clearCookie(), cy.clearCookies(), and cy.screenshot() commands. Default is 30000.