Overwrite WaitUntil command

This issue has been tracked since 2021-12-26.

Hello! Is possible to overwrite the waitUntil command with Cypress.overwrite('waitUntil',.... to set up a global timeout? How can i do this?

NoriSte wrote this answer on 2021-12-27

I guess something like this? (I haven't tested it out)

Cypress.Commands.overwrite('waitUntil', (originalFn, checkFunction, originalOptions = {}) => {
  return originalFn(subject, checkFunction, {
    ...originalOptions,
    timeout: 10000, // <-- your global timeout
  })
})
NoriSte wrote this answer on 2022-01-04

@GustavoRochaSantos did you get it work? If yes, how? Can I close this issue?

GustavoRochaSantos wrote this answer on 2022-01-04

Hi, didn't work, so I removed of my project. You can close

More Details About Repo
Owner Name NoriSte
Repo Name cypress-wait-until
Full Name NoriSte/cypress-wait-until
Language JavaScript
Created Date 2019-04-27
Updated Date 2023-03-19
Star Count 635
Watcher Count 8
Fork Count 24
Issue Count 3

YOU MAY BE INTERESTED

Issue Title Created Date Updated Date