Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cy.wrap ignores timeout #27963

Closed
jadamik opened this issue Oct 3, 2023 · 2 comments
Closed

cy.wrap ignores timeout #27963

jadamik opened this issue Oct 3, 2023 · 2 comments
Labels
stale no activity on this issue for a long period

Comments

@jadamik
Copy link

jadamik commented Oct 3, 2023

Current behavior

cy.wrap is ignoring provided timeout param and defaults to defaultCommandTimeout

Desired behavior

cy.wrap should use timeout provided on command use and default to defaultCommandTimeout only if timeout is not provided

Test code to reproduce

  describe('Cypress wait', () => {
    it('wrap does not wait', () => {
    cy.wrap(performAsyncTask(), { timeout: 20000 })
    });
  });

function performAsyncTask() {
  return new Promise((resolve, reject) => {
    setTimeout(() => {
      resolve('Task completed successfully');
    }, 8000);
  });
}

Cypress Version

13.3.0

Node version

18.15.0

Operating System

macOS 13.6

Debug Logs

No response

Other

This seem to be regression as it was fixed in the past - #5980

@cypress-app-bot
Copy link
Collaborator

This issue has not had any activity in 180 days. Cypress evolves quickly and the reported behavior should be tested on the latest version of Cypress to verify the behavior is still occurring. It will be closed in 14 days if no updates are provided.

@cypress-app-bot cypress-app-bot added the stale no activity on this issue for a long period label Apr 2, 2024
@cypress-app-bot
Copy link
Collaborator

This issue has been closed due to inactivity.

@cypress-app-bot cypress-app-bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale no activity on this issue for a long period
Projects
None yet
Development

No branches or pull requests

2 participants