Skip to content

Commit

Permalink
Wait for animations to complete after performing a scroll action
Browse files Browse the repository at this point in the history
  • Loading branch information
justinseanmartin authored and dostrander committed Feb 18, 2021
1 parent 5771d01 commit bdf2298
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Sources/KIF/Classes/KIFUITestActor.m
Original file line number Diff line number Diff line change
Expand Up @@ -1312,6 +1312,8 @@ - (void)scrollAccessibilityElement:(UIAccessibilityElement *)element inView:(UIV
scrollStart.y -= scrollDisplacement.y / 2;

[viewToScroll dragFromPoint:scrollStart displacement:scrollDisplacement steps:kNumberOfPointsInScrollPath];

[self waitForAnimationsToFinish];
}

- (void)waitForFirstResponderWithAccessibilityLabel:(NSString *)label
Expand Down

0 comments on commit bdf2298

Please sign in to comment.