From 2b33c3000c9b8ce4af9074ae31274abb39be7a35 Mon Sep 17 00:00:00 2001 From: Justin Martin Date: Wed, 7 Aug 2024 23:21:13 -0700 Subject: [PATCH] Try to help stabilize a test flake The test AccessibilityIdentifierTests.testEnteringTextIntoViewWithAccessibilityIdentifier is flaking unable to find 'Cut' after tapping 'Select All'. My best guess is that the 'Select All' text field popover tap event isn't properly being processed, and thus 'Cut' isn't being found. Another possibility is that something is stealing first responder. --- KIF Tests/AccessibilityIdentifierTests.m | 1 + 1 file changed, 1 insertion(+) diff --git a/KIF Tests/AccessibilityIdentifierTests.m b/KIF Tests/AccessibilityIdentifierTests.m index 92f23248..fe576aa1 100644 --- a/KIF Tests/AccessibilityIdentifierTests.m +++ b/KIF Tests/AccessibilityIdentifierTests.m @@ -57,6 +57,7 @@ - (void)testEnteringTextIntoViewWithAccessibilityIdentifier { [tester tapViewWithAccessibilityIdentifier:@"idGreeting"]; [tester longPressViewWithAccessibilityIdentifier:@"idGreeting" duration:2]; + [tester waitForAnimationsToFinish]; [tester tapViewWithAccessibilityLabel:@"Select All"]; [tester tapViewWithAccessibilityLabel:@"Cut"]; [tester enterText:@"Yo" intoViewWithAccessibilityIdentifier:@"idGreeting"];