Unverified Commit f123f64d authored by Jenn Magder's avatar Jenn Magder Committed by GitHub

Reenable module_test_ios UI tests (#72145)

parent a48a57d3
...@@ -7,7 +7,6 @@ ...@@ -7,7 +7,6 @@
@interface FlutterUITests : XCTestCase @interface FlutterUITests : XCTestCase
@end @end
// TODO(jmagman): These tests has become flaky and are disabled in the test scheme. Fix https://github.com/flutter/flutter/issues/70630 and re-enable.
@implementation FlutterUITests @implementation FlutterUITests
- (void)setUp { - (void)setUp {
...@@ -20,9 +19,9 @@ ...@@ -20,9 +19,9 @@
[app.buttons[@"Full Screen (Cold)"] tap]; [app.buttons[@"Full Screen (Cold)"] tap];
XCTAssertTrue([app.otherElements[@"Button tapped 0 times."] waitForExistenceWithTimeout:60.0]); XCTAssertTrue([app.staticTexts[@"Button tapped 0 times."] waitForExistenceWithTimeout:60.0]);
[app.otherElements[@"Increment via Flutter"] tap]; [app.otherElements[@"Increment via Flutter"] tap];
XCTAssertTrue([app.otherElements[@"Button tapped 1 time."] waitForExistenceWithTimeout:60.0]); XCTAssertTrue([app.staticTexts[@"Button tapped 1 time."] waitForExistenceWithTimeout:60.0]);
// Back navigation. // Back navigation.
[app.buttons[@"POP"] tap]; [app.buttons[@"POP"] tap];
...@@ -35,9 +34,9 @@ ...@@ -35,9 +34,9 @@
[app.buttons[@"Full Screen (Warm)"] tap]; [app.buttons[@"Full Screen (Warm)"] tap];
XCTAssertTrue([app.otherElements[@"Button tapped 0 times."] waitForExistenceWithTimeout:60.0]); XCTAssertTrue([app.staticTexts[@"Button tapped 0 times."] waitForExistenceWithTimeout:60.0]);
[app.otherElements[@"Increment via Flutter"] tap]; [app.otherElements[@"Increment via Flutter"] tap];
XCTAssertTrue([app.otherElements[@"Button tapped 1 time."] waitForExistenceWithTimeout:60.0]); XCTAssertTrue([app.staticTexts[@"Button tapped 1 time."] waitForExistenceWithTimeout:60.0]);
// Back navigation. // Back navigation.
[app.buttons[@"POP"] tap]; [app.buttons[@"POP"] tap];
...@@ -50,9 +49,9 @@ ...@@ -50,9 +49,9 @@
[app.buttons[@"Flutter View (Warm)"] tap]; [app.buttons[@"Flutter View (Warm)"] tap];
XCTAssertTrue([app.otherElements[@"Button tapped 0 times."] waitForExistenceWithTimeout:60.0]); XCTAssertTrue([app.staticTexts[@"Button tapped 0 times."] waitForExistenceWithTimeout:60.0]);
[app.otherElements[@"Increment via Flutter"] tap]; [app.otherElements[@"Increment via Flutter"] tap];
XCTAssertTrue([app.otherElements[@"Button tapped 1 time."] waitForExistenceWithTimeout:60.0]); XCTAssertTrue([app.staticTexts[@"Button tapped 1 time."] waitForExistenceWithTimeout:60.0]);
// Back navigation. // Back navigation.
[app.buttons[@"POP"] tap]; [app.buttons[@"POP"] tap];
...@@ -66,15 +65,15 @@ ...@@ -66,15 +65,15 @@
[app.buttons[@"Hybrid View (Warm)"] tap]; [app.buttons[@"Hybrid View (Warm)"] tap];
XCTAssertTrue([app.staticTexts[@"Flutter button tapped 0 times."] waitForExistenceWithTimeout:60.0]); XCTAssertTrue([app.staticTexts[@"Flutter button tapped 0 times."] waitForExistenceWithTimeout:60.0]);
XCTAssertTrue(app.otherElements[@"Platform button tapped 0 times."].exists); XCTAssertTrue(app.staticTexts[@"Platform button tapped 0 times."].exists);
[app.otherElements[@"Increment via Flutter"] tap]; [app.otherElements[@"Increment via Flutter"] tap];
XCTAssertTrue([app.staticTexts[@"Flutter button tapped 1 time."] waitForExistenceWithTimeout:60.0]); XCTAssertTrue([app.staticTexts[@"Flutter button tapped 1 time."] waitForExistenceWithTimeout:60.0]);
XCTAssertTrue(app.otherElements[@"Platform button tapped 0 times."].exists); XCTAssertTrue(app.staticTexts[@"Platform button tapped 0 times."].exists);
[app.buttons[@"Increment via iOS"] tap]; [app.buttons[@"Increment via iOS"] tap];
XCTAssertTrue([app.staticTexts[@"Flutter button tapped 1 time."] waitForExistenceWithTimeout:60.0]); XCTAssertTrue([app.staticTexts[@"Flutter button tapped 1 time."] waitForExistenceWithTimeout:60.0]);
XCTAssertTrue(app.otherElements[@"Platform button tapped 1 time."].exists); XCTAssertTrue(app.staticTexts[@"Platform button tapped 1 time."].exists);
// Back navigation. // Back navigation.
[app.navigationBars[@"Hybrid Flutter/Native"].buttons[@"Flutter iOS Demos Home"] tap]; [app.navigationBars[@"Hybrid Flutter/Native"].buttons[@"Flutter iOS Demos Home"] tap];
...@@ -88,8 +87,8 @@ ...@@ -88,8 +87,8 @@
[app.buttons[@"Dual Flutter View (Cold)"] tap]; [app.buttons[@"Dual Flutter View (Cold)"] tap];
// There are two marquees. // There are two marquees.
XCTAssertTrue([app.otherElements[@"This is Marquee"] waitForExistenceWithTimeout:60.0]); XCTAssertTrue([app.staticTexts[@"This is Marquee"] waitForExistenceWithTimeout:60.0]);
XCTAssertEqual([app.otherElements matchingType:XCUIElementTypeOther identifier:@"This is Marquee"].count, 2); XCTAssertEqual([app.staticTexts matchingType:XCUIElementTypeStaticText identifier:@"This is Marquee"].count, 2);
// Back navigation. // Back navigation.
[app.navigationBars[@"Dual Flutter Views"].buttons[@"Flutter iOS Demos Home"] tap]; [app.navigationBars[@"Dual Flutter Views"].buttons[@"Flutter iOS Demos Home"] tap];
......
...@@ -37,11 +37,6 @@ ...@@ -37,11 +37,6 @@
BlueprintName = "FlutterUITests" BlueprintName = "FlutterUITests"
ReferencedContainer = "container:Host.xcodeproj"> ReferencedContainer = "container:Host.xcodeproj">
</BuildableReference> </BuildableReference>
<SkippedTests>
<Test
Identifier = "FlutterUITests">
</Test>
</SkippedTests>
</TestableReference> </TestableReference>
</Testables> </Testables>
</TestAction> </TestAction>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment