-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
fix: Hide MMI Account Mistmatch BannerAlert from Sign-in with Ethereum (SIWE) Redesign Page #25662
Conversation
CLA Signature Action: All authors have signed the CLA. You may need to manually re-run the blocking PR check if it doesn't pass in a few minutes. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #25662 +/- ##
===========================================
+ Coverage 69.77% 69.80% +0.02%
===========================================
Files 1376 1377 +1
Lines 48403 48437 +34
Branches 13348 13355 +7
===========================================
+ Hits 33773 33807 +34
Misses 14630 14630 ☔ View full report in Codecov by Sentry. |
Builds ready [3689366]
Page Load Metrics (257 ± 235 ms)
Bundle size diffs
|
3689366
to
8fa1cef
Compare
}, | ||
}); | ||
|
||
expect(container.querySelector('.mm-banner-alert')).not.toBeInTheDocument(); |
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.
Minor, but for consistency should we use the same selector as above in the positive test? Or change both to classes?
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.
hi @matthewwalsh0! Thanks for the suggestion
using getByText and not retrieving a result would result in an error
TestingLibraryElementError: Unable to find an element with the text:
I do like the test above since it checks the content. I added the class check to the test above to display the inverse checks more explicitly
Quality Gate passedIssues Measures |
Builds ready [e81f316]
Page Load Metrics (257 ± 258 ms)
Bundle size diffs
|
Description
Related issues
Fixes: #25661
Manual testing steps
Screenshots/Recordings
Before
After
Pre-merge author checklist
Pre-merge reviewer checklist