// // AutoCat2UITests.swift // AutoCat2UITests // // Created by Selim Mustafaev on 05.03.2022. // import XCTest import AutoCatCore class AutoCat2UITests: XCTestCase { private let testLogin = "test@gmail.com" private let testPassword = "12345" override func setUpWithError() throws { continueAfterFailure = false } override func tearDownWithError() throws { // Put teardown code here. This method is called after the invocation of each test method in the class. } func testExample() throws { let app = XCUIApplication() app.setTestKind(.addNumberSuccess) app.launch() app.auth(login: testLogin, password: testPassword) app.enterPlateNumber("Н282СН61") XCTAssert(app.tables["historyTable"].waitForExistence(timeout: 3), "History tableView not found") let firstCell = app.cells.firstMatch let plateView = firstCell.otherElements["plateView"].firstMatch print(plateView) } }