Setting defaultCommandTimeout
in cypress.json is not applied
#19
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
released
cypress-testing-library
version: 2.3.1node
version: 9.0.0npm
(oryarn
) version: 1.10.1Relevant code or config
What you did:
I wanted to select a few elements, with a longer timeout. After a few selects, I figured it would be just easier to set the default command timeout in
cypress.json
, so I don't have to set this every time I callgetBy...
methods. So I went tocypress.json
and put"defaultCommandTimeout": 6000
.What happened:
The default 6000ms command timeout wasn't applied.
Suggested solution:
I guess we should modify the
defaults
object (https://github.com/kentcdodds/cypress-testing-library/blob/master/src/index.js#L5):The text was updated successfully, but these errors were encountered: