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

[FIX][Android] E2E tests - swipe inserter instead of sending the keycode 20 #2527

Merged
merged 3 commits into from
Aug 4, 2020

Conversation

dratwas
Copy link
Contributor

@dratwas dratwas commented Aug 3, 2020

Gutenberg PR WordPress/gutenberg#24338
Fixes Failing CI e2e test. Android e2e tests started failing after removing the scroll view from the inserter menu. I couldn't reproduce it on my side but I could fix that by using swipe gesture instead of sending the keycode 20 (arrow down).
I created the same Simulator as on Sauce Labs, used the same version of Appium and tests were passing on my side. I also tried to send locally keyevent by adb shell input keyevent 20 and that also works. However, I used the mechanism from here https://github.com/WordPress/gutenberg/pull/24338/files#diff-34060c7868e5c5d05b0a7f37b80fd440R453 that simulates the swipe gesture and now tests pass.

To test:

  • Green e2e tests locally
  • Green CI tests here (71838fa) - I removed the canary test pattern for a while just to test

PR submission checklist:

  • I have considered adding unit tests where possible.
  • I have considered if this change warrants user-facing release notes more info and have added them to RELEASE-NOTES.txt if necessary.

@peril-wordpress-mobile
Copy link

peril-wordpress-mobile bot commented Aug 3, 2020

Wanna run full suite of Android and iOS UI tests? Click here and 'Approve' CI job!

@dratwas dratwas force-pushed the tmp/ci-tests-flatlist branch from 047ec0d to 71838fa Compare August 3, 2020 17:04
@dratwas dratwas changed the title [Temporary] CI e2e tests check flatlist PR commit [FIX][Android] E2E tests - swipe inserter instead of sending the keycode 20 Aug 3, 2020
@dratwas dratwas requested a review from hypest August 3, 2020 17:46
@dratwas dratwas marked this pull request as ready for review August 3, 2020 19:01
@ceyhun ceyhun self-requested a review August 4, 2020 10:27
@ceyhun ceyhun merged commit c67e9c8 into develop Aug 4, 2020
@ceyhun ceyhun deleted the tmp/ci-tests-flatlist branch August 4, 2020 11:50
@ceyhun ceyhun mentioned this pull request Aug 4, 2020
5 tasks
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