GalleryUITests.m 655 Bytes
Newer Older
1 2 3 4 5 6 7
// Copyright 2014 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#import <XCTest/XCTest.h>

@interface GalleryUITests : XCTestCase
8
@property (strong) XCUIApplication *app;
9 10 11 12 13 14 15 16 17
@end

@implementation GalleryUITests

- (void)setUp {
    self.continueAfterFailure = NO;

    XCUIApplication *app = [[XCUIApplication alloc] init];
    [app launch];
18 19
    self.app = app;
}
20

21
- (void)testLaunch {
22
    // Basic smoke test that the app launched and any element was loaded.
23
    XCTAssertTrue([self.app.otherElements.firstMatch waitForExistenceWithTimeout:60.0]);
24 25 26
}

@end