breezy-pager-73919
02/03/2022, 2:04 PMfancy-match-96032
02/03/2022, 2:07 PMcy.waitbreezy-pager-73919
02/03/2022, 2:08 PMbreezy-pager-73919
02/03/2022, 2:08 PMfancy-match-96032
02/03/2022, 2:27 PMcyCypress.Commands.overwritecy.waitdemowaitwaitcy.interceptfancy-match-96032
02/03/2022, 2:30 PMbreezy-pager-73919
02/03/2022, 3:05 PMbreezy-pager-73919
02/04/2022, 9:23 AMjs
Cypress.Commands.add('getSlow', (selector, options) => {
    cy.wait(1000);
    return cy.get(selector, options);
});js
Cypress.Commands.overwrite('get', (originalFn, selector, options) => {
    cy.wait(1000);
    return originalFn(selector, options);
});Cypress detected that you returned a promise from a command while also invoking one or more cy commands in that promise.
The command that returned the promise was:
  > cy.get()
The cy command you invoked inside the promise was:
  > cy.wait()
Because Cypress commands are already promise-like, you don't need to wrap them or return your own promise.
Cypress will resolve your command with whatever the final Cypress command yields.
The reason this is an error instead of a warning is because Cypress internally queues commands serially whereas Promises execute as soon as they are invoked. Attempting to reconcile this would prevent Cypress from ever resolving.fancy-match-96032
02/04/2022, 2:52 PMcy.wait(1000).then(...)