-
-
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: fix flakey E2E tests #9413
Conversation
|
|
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 !
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
The purpose of this PR is to stabilize the e2e tests on main. What was done in this PR:
Detox environment setup time and tear down time was increased
Exceeded timeout of 30000ms while tearing down Detox environment
orExceeded timeout of 25000ms while setting up Detox environment
There was a duplicate device.launchapp() step in the before hook for the NFT import test. This caused the test to double launch, perhaps a symptom of why the test is unstable.
The swap-regression test was flaking on Android as well. The app would fetch quotes when swapping ERC20 <> ETH during the test running, which introduced instability. We should follow up in a separate task to address this.
Sign tests in the confirmations folder were also unstable. Each sign spec file contains the following tests: one to sign a transaction and the other to cancel it. Each test used fixtures to set up the app in a specific state. However, this resulted in some instability in the confirmation signature tests. Specifically, a few tests attempted to use a fixture port that was already in use, leading to errors. This needs to be investigated further in a follow-up task. Lastly, The time it takes to run the signature tests was too lengthy.
it
block, which makes the tests run quicker and more stable.Related issues
Fixes:
Manual testing steps
Screenshots/Recordings
Before
After
Passing Smoke tests:
https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/0572909c-97af-40f3-addf-8a2b02da1cf2
https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/f6f1f081-4707-41bc-8c1a-955c6b2a6163
https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/ae68f7f2-34b9-47fa-a31e-47be939ea3ef
Passing regression:
https://app.bitrise.io/app/be69d4368ee7e86d/pipelines/46fe763c-1c62-401f-a6b8-b0b86484ce39
Pre-merge author checklist
Pre-merge reviewer checklist