Skip to content
This repository was archived by the owner on Jul 9, 2026. It is now read-only.

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

Merged
ceyhun merged 3 commits into
developfrom
tmp/ci-tests-flatlist
Aug 4, 2020
Merged

ceyhun merged 3 commits into
developfrom
tmp/ci-tests-flatlist

Conversation

@dratwas

@dratwas dratwas commented Aug 3, 2020 •

Copy link
Copy Markdown
Contributor

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

peril-wordpress-mobile Bot commented Aug 3, 2020 •

Copy link
Copy Markdown

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
2 of 5 tasks
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants