-
-
Notifications
You must be signed in to change notification settings - Fork 130
Expand file tree
/
Copy pathSideMenuExampleUITests.swift
More file actions
47 lines (34 loc) · 999 Bytes
/
Copy pathSideMenuExampleUITests.swift
File metadata and controls
47 lines (34 loc) · 999 Bytes
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
44
45
46
47
//
// SideMenuExampleUITests.swift
// SideMenuExampleUITests
//
// Created by kukushi on 2018/4/8.
// Copyright © 2018 kukushi. All rights reserved.
//
import XCTest
import SideMenu
class SideMenuBasicUITests: XCTestCase {
var app: XCUIApplication!
override func setUp() {
super.setUp()
continueAfterFailure = false
app = XCUIApplication()
app.launch()
}
override func tearDown() {
super.tearDown()
}
func testRevealAndHide() {
let app = XCUIApplication()
let menuView = app.tables.containing(.staticText, identifier: "SIDEMENU").element
assert(element: menuView, isVisible: false)
// Show
app.navigationBars["Preferences"].buttons["Menu"].tap()
waitForElementToAppear(menuView)
// Hide
let element = app.otherElements["ContentShadowOverlay"]
element.tap()
print(app.debugDescription)
waitForElementToDisappear(menuView)
}
}