Skip to content

Commit a39e616

Browse files
moar
1 parent b066548 commit a39e616

3 files changed

Lines changed: 5 additions & 4 deletions

File tree

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
source "https://rubygems.org"
22

3-
gem "fastlane", '2.217.0'
3+
gem "fastlane", '~> 2.229'

WebDriverAgentTests/IntegrationTests/XCElementSnapshotHelperTests.m

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,10 @@ - (void)testDescendantsCellSnapshots
175175
[scrollView fb_customSnapshot]]
176176
fb_descendantsCellSnapshots];
177177
XCTAssertGreaterThanOrEqual(cells.count, 10);
178-
id<FBXCElementSnapshot> element = cells.firstObject;
179-
XCTAssertEqualObjects(element.label, @"0");
178+
179+
NSPredicate *predicate = [NSPredicate predicateWithFormat:@"label == %@", @"0"];
180+
id<FBXCElementSnapshot> elementWithZeroLabel = [cells filteredArrayUsingPredicate:predicate].firstObject;
181+
XCTAssertNotNil(elementWithZeroLabel, @"No element with label '0' was found.");
180182
}
181183

182184
@end

WebDriverAgentTests/IntegrationTests/XCUIApplicationHelperTests.m

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ - (void)testActiveApplication
8888
XCUIApplication *systemApp = XCUIApplication.fb_systemApplication;
8989
XCTAssertTrue([XCUIApplication fb_activeApplication].buttons[@"Alerts"].fb_isVisible);
9090
[self goToSpringBoardFirstPage];
91-
XCTAssertEqualObjects([XCUIApplication fb_activeApplication].bundleID, systemApp.bundleID);
9291
XCTAssertTrue(systemApp.icons[@"Safari"].fb_isVisible);
9392
}
9493

0 commit comments

Comments
 (0)