Skip to content
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

Scroll to reset protected recovery phrase to fix flaky test #1584

Merged
merged 4 commits into from
May 11, 2023

Conversation

peterpeterparker
Copy link
Member

@peterpeterparker peterpeterparker commented May 11, 2023

Motivation

Tests are currently flaky. They work locally but often fails in the CI. By comparing the tests I noticed that two of the six e2e tests for the recovery phrase - the two that failed - were performed without the viewport being scrolled first.

This PR copy paste the scroll action and comment which per extension fix the test for the CI.

Not sure if the root cause is the introduction of dapp explorer, new design or the fact that webdriver io felt more confortable with a hover rather tha a click at the edge of the viewport.

@peterpeterparker peterpeterparker changed the title Wait for alert being open before accepting it Scroll to reset protected recovery phrase for test May 11, 2023
@peterpeterparker peterpeterparker marked this pull request as ready for review May 11, 2023 15:11
@peterpeterparker peterpeterparker changed the title Scroll to reset protected recovery phrase for test Scroll to reset protected recovery phrase to fix flaky test May 11, 2023
Copy link
Collaborator

@nmattia nmattia left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@peterpeterparker peterpeterparker added this pull request to the merge queue May 11, 2023
Merged via the queue into main with commit b3c720d May 11, 2023
@peterpeterparker peterpeterparker deleted the test/fix-flaky-test branch May 11, 2023 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants