mirror of
https://github.com/element-hq/element-x-ios.git
synced 2025-03-10 21:39:12 +00:00

* #35 Create `ElementNavigationController` subclass * #35 Add encryption icons * #35 Add avatar and encryption badge image to the room screen view model * #35 Create `RoomHeaderView` class * #35 Replace room title with a RoomHeaderView instance in the toolbar * #35 Add changelog * #35 Introduce `UITestScreenIdentifier` and refactor ui tests * #35 Fix old tests * #35 add some tests for room screen * #35 Use svgs instead of pngs * #35 Fix PR remarks
32 lines
734 B
Swift
32 lines
734 B
Swift
//
|
|
// Application.swift
|
|
// UITests
|
|
//
|
|
// Created by Stefan Ceriu on 13/04/2022.
|
|
// Copyright © 2022 Element. All rights reserved.
|
|
//
|
|
|
|
import XCTest
|
|
|
|
struct Application {
|
|
static func launch() -> XCUIApplication {
|
|
let app = XCUIApplication()
|
|
app.launchEnvironment = ["IS_RUNNING_UI_TESTS": "1"]
|
|
app.launch()
|
|
return app
|
|
}
|
|
}
|
|
|
|
extension XCUIApplication {
|
|
func goToScreenWithIdentifier(_ identifier: UITestScreenIdentifier) {
|
|
let button = self.buttons[identifier.rawValue]
|
|
let lastLabel = staticTexts["lastItem"]
|
|
|
|
while !button.isHittable && !lastLabel.isHittable {
|
|
self.tables.firstMatch.swipeUp()
|
|
}
|
|
|
|
button.tap()
|
|
}
|
|
}
|