-
Notifications
You must be signed in to change notification settings - Fork 327
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 data-test to picker item remove button #273
Comments
oh, what has changed is that this element is not present in DOM until the parent div is clicked: |
After a bit of investigation, we came to a conclusion that the problem is that q-peak picker has a default value set and This means we need to provide a mechanism to allow selecting the remove button for picker items to improve testability. |
I would like to work on this issue |
@mturoci is it still an issue? |
Go ahead @vipinnation! @mnezh it's nice to have I would say. |
Hello Wave, I am new to the project and would like to start contributing! I think that I have a solution for this issue about the The code I added to
I added a couple new test cases to
I have a branch in my fork of the project and will be submitting a PR in a bit. Please let me know if you think this is fine or if I'm overlooking something. Thanks! |
Hi @dbranley! Feel free to make a PR. Will have a look and let you know if anything else is needed. Your description sounds reasonable so should be good. Thanks! |
… code simplification h2oai#273
Q SDK Version, OS
0.8.0, 0.8.2 @ OS X
Actual behavior
Prior to 0.8.0 release the following code used to produce a DOM element with
data-test="country"
property:ui.picker(name='country', label='Region', values=selected_country, max_choices=1, choices=city_choices)
After 0.8.0, there's no DOM element with
data-test="country"
, which breaks e2e cypress testsExpected behavior
If UI element has
name
property defined, it should be translated to DOM element withdata-test
property with the same value to enable cypress testingSteps To Reproduce
ui.picker(name='country', ....)
The text was updated successfully, but these errors were encountered: