-
Notifications
You must be signed in to change notification settings - Fork 69
/
Copy pathFOSSAsiaUITests.swift
43 lines (34 loc) · 1.09 KB
/
FOSSAsiaUITests.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
//
// FOSSAsiaUITests.swift
// FOSSAsiaUITests
//
// Created by Jurvis Tan on 6/3/16.
// Copyright © 2016 FossAsia. All rights reserved.
//
import XCTest
class FOSSAsiaUITests: XCTestCase {
override func setUp() {
super.setUp()
continueAfterFailure = false
let app = XCUIApplication()
setupSnapshot(app)
app.launch()
}
override func tearDown() {
// Put teardown code here. This method is called after the invocation of each test method in the class.
super.tearDown()
}
func testExample() {
// Use recording to get started writing UI tests.
// Use XCTAssert and related functions to verify your tests produce the correct results.
let app = XCUIApplication()
snapshot("0Launch")
snapshot("1Event")
snapshot("2AddToCalendar")
let tabBarsQuery = app.tabBars
tabBarsQuery.children(matching: .button).element(boundBy: 1).tap()
snapshot("3Favorites")
tabBarsQuery.children(matching: .button).element(boundBy: 2).tap()
snapshot("4More")
}
}