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
This PR is branched off #8342 to address the inconsistency in the smoke tests. The only change added here was to add the assertion in a try-catch block. The reason behind this change is that I observed, both on my local machine and during rapid transaction submissions, that the transaction confirmation toast does not always appear. However, the absence of the toast doesn't necessarily indicate that the transaction isn't confirmed. Checking the activity tab reveals the confirmation of the transaction. In our test scenario, this sporadic occurrence started causing flakiness, as we were relying on the transaction confirmation toast for every transaction. The addition of the try-catch block is appropriate because, in cases where the toast is not displayed, we also validate the confirmation status by tapping on the transaction confirmation modal.
Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Passing Smoke builds:
https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/8887ecd9-62ca-45eb-b9ff-66c65f82d0e4
https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/3a04a984-856e-413c-a13a-b3881dba8e12
Pre-merge author checklist
Pre-merge reviewer checklist