refactor(protocol-designer, e2e-testing): remove data-testid to implementation dependencies#21138
Open
refactor(protocol-designer, e2e-testing): remove data-testid to implementation dependencies#21138
Conversation
…ve implementation dependencies remove data-testid to improve implementation dependencies close AUTH-2843
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## edge #21138 +/- ##
==========================================
- Coverage 57.47% 57.47% -0.01%
==========================================
Files 3920 3920
Lines 321146 321298 +152
Branches 46095 46180 +85
==========================================
+ Hits 184594 184655 +61
- Misses 136329 136420 +91
Partials 223 223
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Overview
remove data-testid to improve implementation dependencies
edge in protocol-designer has 43
data-testid.this will remove 41
data-testid
react-testing-libraryand similar tools recommend that, rather than adding more dedicated hooks like data-testidjust for testing, you should first identify elements using the same information that real users rely on. For example, roles, label text, placeholders, or visible text. Because these align closely with what accessibility APIs (such as screen readers) reference, the more tests you write this way, the more your accessibility will naturally improve as well.the rest of work will be followed by another pr (need to re-review props)
close AUTH-2843
Describe your PR at a high level. State acceptance criteria and how this PR fits into other work. Link issues, PRs, and other relevant resources.
Test Plan and Hands on Testing
make -C protocol-designer testno error
make -C e2e-testing test-pd-localno error
Describe your testing of the PR. Emphasize testing not reflected in the code. Attach protocols, logs, screenshots and any other assets that support your testing.
Changelog
data-testidaria-*for e2e testReview requests
Risk assessment
low-mid