bahmutov/cypress-network-idle

Document or implement timeout option

Opened this issue · 0 comments

We probably should describe how the timeout is determined

// uses the default command timeout
cy.waitForNetworkIdle(2000)
// uses a custom default timeout
// waiting for 2 second network idle
// happening within 10 seconds
cy.waitForNetworkIdle(2000, {timeout: 10_000})