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

Add a way to clear selection with `cy.select()` #4318

Open
flotwig opened this issue May 28, 2019 · 0 comments

Comments

1 participant
@flotwig
Copy link
Member

commented May 28, 2019

This Stack Overflow question points out that cy.select() can't clear a selection, and apparently, neither can commands like cy.clear(): https://stackoverflow.com/questions/56340978/how-do-i-clear-a-select-input-using-cypress

Things that should work, but don't:

  • cy.select([]) should cause no elements to be selected
  • cy.clear() with a <select> subject should cause no elements to be selected

Also, maybe cy.select() or cy.select(undefined) should also clear the selection.

@flotwig flotwig changed the title Add a way to clear selection to `cy.select()` Add a way to clear selection with `cy.select()` May 28, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.