File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed
dev/integration_tests/ios_host_app/FlutterUITests Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,17 @@ - (void)testFlutterViewWarm {
73
73
XCTAssertTrue (newPageAppeared);
74
74
75
75
[self waitForAndTapElement: app.otherElements[@" Increment via Flutter" ]];
76
- XCTAssertTrue ([app.staticTexts[@" Button tapped 1 time." ] waitForExistenceWithTimeout: kStandardTimeOut ]);
76
+ BOOL countIncremented = [app.staticTexts[@" Button tapped 1 time." ] waitForExistenceWithTimeout: kStandardTimeOut ];
77
+ if (!countIncremented) {
78
+ // Sometimes, the element doesn't respond to the tap, it seems to be an iOS 17 Simulator issue where the
79
+ // simulator reboots. Try to tap the element again.
80
+ [self waitForAndTapElement: app.otherElements[@" Increment via Flutter" ]];
81
+ countIncremented = [app.staticTexts[@" Button tapped 1 time." ] waitForExistenceWithTimeout: kStandardTimeOut ];
82
+ if (!countIncremented) {
83
+ os_log (OS_LOG_DEFAULT, " %@" , app.debugDescription );
84
+ }
85
+ }
86
+ XCTAssertTrue (countIncremented);
77
87
78
88
// Back navigation.
79
89
[app.buttons[@" POP" ] tap ];
You can’t perform that action at this time.
0 commit comments