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

Ensure all elements have test IDs for Playwright automation. #27

Closed
Tracked by #15
lo5 opened this issue Jul 4, 2022 · 2 comments
Closed
Tracked by #15

Ensure all elements have test IDs for Playwright automation. #27

lo5 opened this issue Jul 4, 2022 · 2 comments
Assignees
Labels
area/ui Related to front-end type/feature Feature request
Milestone

Comments

@lo5
Copy link
Member

lo5 commented Jul 4, 2022

No description provided.

@lo5 lo5 mentioned this issue Jul 4, 2022
65 tasks
@lo5 lo5 added type/feature Feature request area/ui Related to front-end labels Jul 4, 2022
@coolsat
Copy link

coolsat commented Sep 26, 2022

Hi @lo5 , this will really help in creating a robust automated suite. Any chance this can go higher up in priority? thanks!

@lo5 lo5 added this to the 0.17 milestone Sep 27, 2022
@lo5 lo5 closed this as completed in 3060ee0 Oct 17, 2022
@lo5 lo5 self-assigned this Oct 17, 2022
@lo5
Copy link
Member Author

lo5 commented Oct 17, 2022

This will be released in 0.17.

Note that:

  1. box(name='foo', ...) is translated to <element data-name='foo' .../>, always.
  2. option(name='foo') is translated to <element data-name='foo' .../>, but only where possible.

In general, data-name='foo' is set on the container, not the element itself, so if you're using query selectors in the test automation framework, use [data-name='foo'] input to refer to input elements and [data-name='foo'] button to refer to buttons, instead of input[data-name='foo'] or button[data-name='foo'], i.e. look for a child, not self.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/ui Related to front-end type/feature Feature request
Projects
None yet
Development

No branches or pull requests

2 participants