Skip to content

Commit

Permalink
Internal Commit Uploaded
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 683676834
  • Loading branch information
mebrianlin authored and mobile-devx-github-bot committed Oct 8, 2024
1 parent 903a273 commit 785b26d
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 1 deletion.
15 changes: 15 additions & 0 deletions Tests/Functional/Sources/BaseIntegrationTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,14 @@ - (void)setUp {
[NSObject edo_disallowRemoteInvocationWithExclusion:@[ [NSArray class], [NSEnumerator class] ]];
[self.application launch];
});

for (UIScene* scene in UIApplication.sharedApplication.connectedScenes) {
UIWindowScene* windowScene = (UIWindowScene*)scene;
for (UIWindow* window in windowScene.windows) {
[[window layer] setSpeed:100];
}
}

[EarlGrey rotateDeviceToOrientation:UIDeviceOrientationPortrait error:nil];
}

Expand All @@ -55,6 +63,13 @@ - (void)openTestViewNamed:(NSString *)name {
}

- (void)tearDown {
for (UIScene* scene in UIApplication.sharedApplication.connectedScenes) {
UIWindowScene* windowScene = (UIWindowScene*)scene;
for (UIWindow* window in windowScene.windows) {
[[window layer] setSpeed:1];
}
}

[[GREYHostApplicationDistantObject sharedInstance] resetNavigationStack];
[[GREYConfiguration sharedConfiguration] reset];

Expand Down
1 change: 1 addition & 0 deletions Tests/Functional/Sources/PresentedViewTest.m
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ - (void)setUp {
}

- (void)testDismissToResetNavController {
[[EarlGrey selectElementWithMatcher:GREYText(@"Modal View")] assertWithMatcher:GREYNotNil()];
AppDelegate *app =
(AppDelegate *)[GREY_REMOTE_CLASS_IN_APP(UIApplication) sharedApplication].delegate;
[app resetRootNavigationController];
Expand Down
2 changes: 1 addition & 1 deletion Tests/TestRig/Sources/MainViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
animated:YES
completion:nil];
} else if ([key isEqualToString:@"Presented Views"]) {
[self.navigationController presentViewController:vc animated:NO completion:nil];
[self.navigationController presentViewController:vc animated:YES completion:nil];
} else {
[UIView transitionWithView:self.navigationController.view
duration:0.2
Expand Down

0 comments on commit 785b26d

Please sign in to comment.