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

Document best practice of adding data-testid attribute to page elements #1729

Open
heitortsergent opened this issue Sep 19, 2024 · 0 comments
Labels
Area: browser The browser module Area:extensions Issues about the extension ecosystem

Comments

@heitortsergent
Copy link
Collaborator

Related to k6 DevTools Recorder. When using the recorder, the selectors for elements can be too fragile. We should document the best practice of adding the data-test-id attribute to objects that the user expects to be selected on a page.

The Playwright Locator docs page is a good reference about the topic.

@heitortsergent heitortsergent added Area: browser The browser module Area:extensions Issues about the extension ecosystem labels Sep 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: browser The browser module Area:extensions Issues about the extension ecosystem
Projects
None yet
Development

No branches or pull requests

1 participant