forked from MessageKit/MessageKit
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathChatExampleUITests.swift
More file actions
44 lines (39 loc) · 1.27 KB
/
ChatExampleUITests.swift
File metadata and controls
44 lines (39 loc) · 1.27 KB
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
//
// Created by Jesse Squires
// http://www.jessesquires.com
//
//
// Documentation
// http://messagekit.github.io
//
//
// GitHub
// https://github.com/MessageKit/MessageKit
//
//
// License
// Copyright (c) 2016-present Jesse Squires
// Released under an MIT license: http://opensource.org/licenses/MIT
//
import XCTest
@testable import ChatExample
final class ChatExampleUITests: XCTestCase {
override func setUp() {
super.setUp()
// In UI tests it is usually best to stop immediately when a failure occurs.
continueAfterFailure = false
// UI tests must launch the application that they test.
// Doing this in setup will make sure it happens for each test method.
XCUIApplication().launch()
// In UI tests it’s important to set the initial state
// - such as interface orientation - required for your tests before they run.
// The setUp method is a good place to do this.
}
func testExampleRuns() {
// Extremely simple UI test which is designed to run and display the example project
// This should show if there are any very obvious crashes on render
let app = XCUIApplication()
app.tables.staticTexts["Test"].tap()
XCTAssertTrue(app.collectionViews.staticTexts["Check out this awesome UI library for Chat"].exists)
}
}