-
Notifications
You must be signed in to change notification settings - Fork 178
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 to connection form fields #3495
add data-testid to connection form fields #3495
Conversation
/lgtm |
0fc2647
to
43bc5e4
Compare
4302a05
to
11f7be8
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3495 +/- ##
==========================================
- Coverage 85.24% 85.23% -0.02%
==========================================
Files 1355 1355
Lines 31074 31078 +4
Branches 8663 8663
==========================================
- Hits 26489 26488 -1
- Misses 4585 4590 +5
... and 7 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
@emilys314 there was a conflict with test ids and one of the cypress tests so I made a new change to use a static test id for the control element which can be chained from the parent selector. Also noticed that one element did not pass through the test id. |
yeah that makes sense. I don't know if this version would fix Fede's and Jorge's original issue of the input fields themselves not having a unique identifier in the dom though. I don't know if bitwarden is able to do chaining. Also the original data connections had the |
data test IDs are not meant to be unique, we often use them as unique identifiers however the same selection can be achieve through narrowing. For the sake of simplicity I will add the env var to the testid as well. I hadn't planned on tackling the bitwarden issue with unique ids here, but I suppose I can do so. |
a3edc72
to
a06d0a4
Compare
a06d0a4
to
73ab58b
Compare
[APPROVALNOTIFIER] This PR is APPROVED Approval requirements bypassed by manually added approval. This pull-request has been approved by: The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
I've tested today's odh-nightly and now I'm able again to create bitwarden custom fields to populate the values. Thanks a lot, this will save us plenty of time! |
Description
Adds
field <env var>
data-testid
to field control elements.Replaces generated field IDs with
field-<env var>
values to ensure predicable IDs can be used with bitwarden.Add
data-testid
to sections.How Has This Been Tested?
Web inspector
Test Impact
Updated unit tests.
Request review criteria:
Self checklist (all need to be checked):
If you have UI changes:
After the PR is posted & before it merges:
main