Function When_I_set_Cypress_config

  • When I set Cypress config:

    When I set Cypress config {string} to {string}
    

    Parameters

    • name: keyof TestConfigOverrides
    • value: string

    Returns void

    Increase time (in milliseconds) to wait until most DOM based commands are considered timed out:

    When I set Cypress config "defaultCommandTimeout" to "10000"
    

    Set multiple configuration options:

    When I set Cypress config
    | defaultCommandTimeout | 10000 |

    Configuration set using Cypress.config is only in scope for the current spec file.

    Cypress runs each spec file in isolation: the browser is exited between specs. Configuration changed in one spec won't be visible in other specs.

    Not all configuration values can be changed during runtime.