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

Add data-testid attributes to key UI components for unit test and automation tests #43736

Merged
merged 1 commit into from
Nov 6, 2024

Conversation

vatsrahul1001
Copy link
Collaborator

Summary
This PR addresses Issue #43381 by adding data-testid attributes to key UI components to improve stability and reliability for automated testing and external tools.

Why This Change?
Currently, UI lacks reliable identifiers for DOM elements, making automation difficult and unstable. Using sibling and child selectors is not a dependable approach. Adding data-testid attributes provides a robust solution, allowing automation frameworks and external tools to interact with UI elements consistently.

Testing
Verified that the added data-testid attributes do not interfere with the UI's functionality.
Conducted tests to ensure elements are correctly identified and manipulated by automation scripts.
Related Issue
Fixes Issue #43381.


^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

@boring-cyborg boring-cyborg bot added the area:UI Related to UI/UX. For Frontend Developers. label Nov 6, 2024
Copy link
Member

@potiuk potiuk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice!

@bbovenzi bbovenzi merged commit 7f4b7fd into apache:main Nov 6, 2024
42 checks passed
@bbovenzi bbovenzi deleted the add-data-testid-attributes branch November 6, 2024 13:41
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:UI Related to UI/UX. For Frontend Developers.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

AIP-38 Add some ids for external tools / integration tests
3 participants