5#import <Flutter/Flutter.h>
6#import <XCTest/XCTest.h>
18 self.continueAfterFailure = NO;
20 self.application = [[XCUIApplication alloc] init];
21 self.application.launchArguments = @[ @"--locale-initialization" ];
22 [
self.application launch];
31 NSArray<NSString*>* preferredLocales = [NSLocale preferredLanguages];
32 XCTAssertEqual(preferredLocales.count, 1);
35 NSString* localeDart = [preferredLocales.firstObject stringByReplacingOccurrencesOfString:@"-"
37 NSString* expectedIdentifier = [NSString stringWithFormat:@"[%@]", localeDart];
38 XCUIElement* textInputSemanticsObject =
39 [
self.application.textFields matchingIdentifier:expectedIdentifier].element;
40 XCTAssertTrue([textInputSemanticsObject waitForExistenceWithTimeout:
timeout]);
42 [textInputSemanticsObject tap];
void testNoLocalePrepend()
XCUIApplication * application
def timeout(deadline, cmd)