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.select() Should Look For Trimmed Value Inside of <option></option> #175

Closed
pihish opened this issue Jun 22, 2016 · 2 comments
Closed
Labels
pkg/driver This is due to an issue in the packages/driver directory type: enhancement Requested enhancement of existing feature
Milestone

Comments

@pihish
Copy link

pihish commented Jun 22, 2016

When an option element is formatted with line breaks:

<option value="someNumber">
    Gold package
</option>

cy.select() is unable to find the option by element text because of the line breaks. cy.select() should trim the text() value of <option> before trying to match it with the parameter passed in.

@jennifer-shehane jennifer-shehane added the type: enhancement Requested enhancement of existing feature label Jun 23, 2016
@jennifer-shehane jennifer-shehane added the pkg/driver This is due to an issue in the packages/driver directory label Mar 21, 2017
@RandallKent
Copy link
Contributor

The code for this is done, but this has yet to be released. We'll update the issue and reference the changelog when it's released.

@brian-mann
Copy link
Member

Fixed in 0.20.0

@cypress-io cypress-io locked as resolved and limited conversation to collaborators Dec 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
pkg/driver This is due to an issue in the packages/driver directory type: enhancement Requested enhancement of existing feature
Projects
None yet
Development

No branches or pull requests

4 participants