Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add data-test to picker item remove button #273

@mnezh

Description

@mnezh

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 tests

Expected behavior
If UI element has name property defined, it should be translated to DOM element with data-test property with the same value to enable cypress testing

Steps To Reproduce

  1. create an app with ui.picker(name='country', ....)
  2. run with wave 0.8.x
  3. inspect the DOM of the generated UI

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureFeature requestgood first issueContributions welcome!testRelated to testinguiRelated to UI

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions