fix: flaky test 'Import NFT should continue to display an imported NFT after importing, adding a new account, and switching back
#27006
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.
Description
In this test, we are importing an NFT and right after, we try to switch accounts. Sometimes, when we try to click into the Account, we get an error that another element is obscuring it.
To fix it, when we click confirm, for importing the NFT, we'll wait until the element disappears, after proceeding to clicking the Account.
ElementClickInterceptedError: Element <button class="mm-box mm-text mm-button-base mm-button-base--size-sm mm-button-base--ellipsis multichain-account-picker mm-text--body-md-medium mm-text--ellipsis mm-box--padding-0 mm-box--padding-right-2 mm-box--padding-left-2 mm-box--display-inline-flex mm-box--gap-2 mm-box--justify-content-center mm-box--align-items-center mm-box--color-text-default mm-box--background-color-transparent mm-box--rounded-lg"> is not clickable at point (576,112) because another element <div class="mm-box mm-box--display-flex mm-box--justify-content-space-between mm-box--align-items-flex-end"> obscures it
Related issues
Fixes: #27005
Manual testing steps
Screenshots/Recordings
See how the NFT modal is the element obscuring the Account menu, with the selector
<div class="mm-box mm-box--display-flex mm-box--justify-content-space-between mm-box--align-items-flex-end">
Pre-merge author checklist
Pre-merge reviewer checklist