Skip to content

Commit

Permalink
[ActionSheet] Delete flaky test.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 609118090
  • Loading branch information
Jeff Verkoeyen authored and material-automation committed Feb 21, 2024
1 parent 16ee2b4 commit 187f99a
Showing 1 changed file with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -712,30 +712,6 @@ - (void)testActionSheetWhenEveryActionHasCustomTintColor {
[self generateSnapshotAndVerifyForView:controller.view];
}

- (void)testThreeActionsSufficientSizeShortTextLTRWithDefaultPresentationStyleOniOS13 {
// Given
self.actionSheetController = [MDCActionSheetController actionSheetControllerWithTitle:nil];
[self.actionSheetController addAction:self.action1];
[self.actionSheetController addAction:self.action2];
[self.actionSheetController addAction:self.action3];
self.actionSheetController.view.bounds = CGRectMake(0, 0, 320, 200);

// When
UIWindow *window = [[[UIApplication sharedApplication] delegate] window];
UIViewController *currentViewController = window.rootViewController;
XCTestExpectation *expectation =
[[XCTestExpectation alloc] initWithDescription:@"Action sheet is presented"];
[currentViewController presentViewController:self.actionSheetController
animated:NO
completion:^{
[expectation fulfill];
}];

// Then
[self waitForExpectations:@[ expectation ] timeout:5];
[self snapshotVerifyViewForIOS13:window];
}

- (void)testActionSheetWithHeaderShown {
// Given
self.actionSheetController = [MDCActionSheetController actionSheetControllerWithTitle:@"Foo"];
Expand Down

0 comments on commit 187f99a

Please sign in to comment.