/
githubmirror
/
fastlane
Обзор
Документация
Войти
/
githubmirror
/
fastlane
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
snapshot/example/ExampleUITests/ExampleUITests.swift
37 строк
852 B
Bartosz Dolewski
[snapshot][examples] Fixed broken example project for trying out fastlane snapshot feature (#18797)
05 июн 2021, 23:36
Не верифицирован
05 июн 2021, 23:36
626fae3
Код
Авторство
О чём код?
// // ExampleUITests.swift // ExampleUITests // // Created by Felix Krause on 19/06/15. // import Foundation import XCTest class ExampleUITests: XCTestCase { override func setUp() { super.setUp() let app = XCUIApplication() setupSnapshot(app) app.launch() } func testExample() { snapshot("0Launch") let tabBar = XCUIApplication().tabBars let secondButton = tabBar.buttons.element(boundBy: 1) XCUIDevice.shared.orientation = UIDeviceOrientation.landscapeLeft snapshot("1LandscapeLeft") secondButton.tap() XCUIDevice.shared.orientation = UIDeviceOrientation.landscapeRight snapshot("2LandscapeRight") secondButton.tap() XCUIDevice.shared.orientation = UIDeviceOrientation.portrait snapshot("3Portrait") } }