Skip to content

Commit

Permalink
Disable scroll to top test because of Issue kif-framework#1172
Browse files Browse the repository at this point in the history
  • Loading branch information
dostrander committed Sep 10, 2020
1 parent 8a6b185 commit 9e041c4
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
15 changes: 15 additions & 0 deletions KIF Tests/TableViewTests.m
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,13 @@ - (void)testUnknownTable

- (void)testScrollingToTop
{
// The way we tap the status bar doesn't work in iOS 12+
// Issue #1172
// Disable this test on 12+ until that issue is resolved.
if (@available(iOS 12.0, *)) {
return;
}

[tester tapRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:2] inTableViewWithAccessibilityIdentifier:@"TableView Tests Table"];
[tester tapStatusBar];

Expand All @@ -85,6 +92,14 @@ - (void)testScrollingToTop

- (void)testScrollingToTopWithoutAnimation
{
// The way we tap the status bar doesn't work in iOS 12+
// Issue #1172
// Disable this test on 12+ until that issue is resolved.

if (@available(iOS 12.0, *)) {
return;
}

[[tester class] setTestActorAnimationsEnabled:NO];
[tester tapRowAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:2] inTableViewWithAccessibilityIdentifier:@"TableView Tests Table"];
[tester tapStatusBar];
Expand Down
7 changes: 7 additions & 0 deletions KIF Tests/TableViewTests_ViewTestActor.m
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@ - (void)testUnknownTable

- (void)testScrollingToTop
{
// The way we tap the status bar doesn't work in iOS 12+
// Issue #1172
// Disable this test on 12+ until that issue is resolved.
if (@available(iOS 12.0, *)) {
return;
}

[[viewTester usingIdentifier:@"TableView Tests Table"] tapRowInTableViewAtIndexPath:[NSIndexPath indexPathForRow:0 inSection:2]];
[viewTester tapStatusBar];

Expand Down

0 comments on commit 9e041c4

Please sign in to comment.