Skip to content

Commit

Permalink
Try to help stabilize a test flake
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
justinseanmartin committed Aug 8, 2024
1 parent c922d72 commit 2b33c30
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions KIF Tests/AccessibilityIdentifierTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -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"];
Expand Down

0 comments on commit 2b33c30

Please sign in to comment.