How to set time executions for every command? #22266
Unanswered
art-qa
asked this question in
Questions and Help
Replies: 2 comments
-
The ** defaultCommandTimeout** is used to wait until DOM based commands will retry until they are considered as failed. You can set the global timeout in the config file. const { defineConfig } = require('cypress')
module.exports = defineConfig({
e2e: {
defaultCommandTimeout: 10_000 //sets to 10 second timeout
}
}) |
Beta Was this translation helpful? Give feedback.
0 replies
-
hello! 👋 on
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The default time is too quick. I want to be able to see the test running more slowly.
I found the option: defaultCommandTimeout but I do not understand where I should put it in cypress.config.js file so it will run for every test.
My config file:
Beta Was this translation helpful? Give feedback.
All reactions