Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 49f14a2d authored by Jeremy Sim's avatar Jeremy Sim
Browse files

Fix flaky flicker test

Fixes flakes in the test switchAppByDoubleTapDivider by changing the way click events are sent in doubleTapDividerToSwitch().

Previously, this test relied on SystemClock.sleep() and UiObject2.click() to create a double-click action; however, in a minority of cases, this was failing -- the component was registering two spaced-out single clicks instead of a double-click.

Using UiAutomation to inject the clicks at precise times fixes the problem.

Fixes: 397395900
Flag: EXEMPT test changes only
Test: A local test run of 200+ iterations ended with no flakes (previously was failing reliably by 30-50 iterations)
Change-Id: I9399a54129b31e2f9692ff6027a33fc868249170
parent e67ea9bc
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment