Mercurial > public > simoleon
comparison SimoleonUITests/SimoleonUITests.swift @ 138:081f0857af51
Fix test crashing
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 16 Aug 2021 19:10:25 +0100 |
parents | edc8719905fe |
children | 4271fb5f69e2 |
comparison
equal
deleted
inserted
replaced
137:edc8719905fe | 138:081f0857af51 |
---|---|
62 app.tables.buttons["From USD to BTC"].tap() | 62 app.tables.buttons["From USD to BTC"].tap() |
63 } | 63 } |
64 | 64 |
65 func testCoreData() throws { | 65 func testCoreData() throws { |
66 let app = XCUIApplication() | 66 let app = XCUIApplication() |
67 app.scrollViews.buttons["favorite"].tap() | 67 app.scrollViews.buttons["AddToFavorites"].tap() |
68 | 68 |
69 if UIDevice.current.userInterfaceIdiom == .pad { | 69 if UIDevice.current.userInterfaceIdiom == .pad { |
70 app.tables["Sidebar"].buttons["NavigateToFavorites"].tap() | 70 app.tables["Sidebar"].buttons["NavigateToFavorites"].tap() |
71 } else { | 71 } else { |
72 app.tabBars.buttons.element(boundBy: 1).tap() | 72 app.tabBars.buttons.element(boundBy: 1).tap() |