From 187f99a6f4c201cba446bcffad1097bc6e27d52b Mon Sep 17 00:00:00 2001 From: Jeff Verkoeyen Date: Wed, 21 Feb 2024 14:11:52 -0800 Subject: [PATCH] [ActionSheet] Delete flaky test. PiperOrigin-RevId: 609118090 --- .../MDCActionSheetControllerSnapshotTests.m | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/components/ActionSheet/tests/snapshot/MDCActionSheetControllerSnapshotTests.m b/components/ActionSheet/tests/snapshot/MDCActionSheetControllerSnapshotTests.m index 52d9d57d781..c31029fb373 100644 --- a/components/ActionSheet/tests/snapshot/MDCActionSheetControllerSnapshotTests.m +++ b/components/ActionSheet/tests/snapshot/MDCActionSheetControllerSnapshotTests.m @@ -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"];