-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
test: Removing test selector strings within app code #7967
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7967 +/- ##
=======================================
Coverage 36.66% 36.66%
=======================================
Files 1090 1090
Lines 29115 29115
Branches 2668 2668
=======================================
Hits 10674 10674
Misses 17835 17835
Partials 606 606 ☔ View full report in Codecov by Sentry. |
app/components/UI/Ramp/buy/Views/BuildQuote/__snapshots__/BuildQuote.test.tsx.snap
Show resolved
Hide resolved
app/components/UI/Ramp/buy/Views/GetStarted/__snapshots__/GetStarted.test.tsx.snap
Show resolved
Hide resolved
app/components/UI/Ramp/buy/Views/PaymentMethods/__snapshots__/PaymentMethods.test.tsx.snap
Show resolved
Hide resolved
app/components/UI/Ramp/buy/Views/Quotes/__snapshots__/Quotes.test.tsx.snap
Show resolved
Hide resolved
app/components/UI/Ramp/buy/Views/Regions/__snapshots__/Regions.test.tsx.snap
Show resolved
Hide resolved
app/components/UI/Ramp/common/Views/NetworkSwitcher/__snapshots__/NetworkSwitcher.test.tsx.snap
Show resolved
Hide resolved
app/components/UI/Ramp/common/Views/OrderDetails/__snapshots__/OrderDetails.test.tsx.snap
Show resolved
Hide resolved
app/components/UI/Ramp/common/Views/SendTransaction/__snapshots__/SendTransaction.test.tsx.snap
Show resolved
Hide resolved
E2E test started on Bitrise: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/370a245b-4b4a-4b60-846d-2f8954da58b2 |
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Description
We have instances where testIDs are not consistently stored in variables. This lack of uniformity can lead to redundant testID declarations throughout the codebase, resulting in code that is harder to maintain and prone to errors.
A more effective and best-practice approach is to store the testID value as a variable and then reference that variable when defining the testID property. By doing so, we centralize the testID values, reducing redundancy and making it easier to manage and maintain these identifiers throughout the codebase. This approach enhances code consistency and reduces the likelihood of introducing errors, ultimately contributing to a more robust and maintainable codebase.
Related issues
Fixes: #
Manual testing steps
Screenshots/Recordings
Before
After
Passing Smoke tests: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/370a245b-4b4a-4b60-846d-2f8954da58b2
Passing Regression tests: https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/4c9a6f33-680f-49e4-bf4a-aae67865492c
Pre-merge author checklist
Pre-merge reviewer checklist