Mercurial > public > simoleon
changeset 138:081f0857af51
Fix test crashing
author | Dennis Concepcion Martin <dennisconcepcionmartin@gmail.com> |
---|---|
date | Mon, 16 Aug 2021 19:10:25 +0100 |
parents | edc8719905fe |
children | a4aeca1ad34a |
files | Simoleon/Helpers/FavoriteButton.swift SimoleonUITests/SimoleonUITests.swift |
diffstat | 2 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/Simoleon/Helpers/FavoriteButton.swift Mon Aug 16 19:01:39 2021 +0100 +++ b/Simoleon/Helpers/FavoriteButton.swift Mon Aug 16 19:10:25 2021 +0100 @@ -27,6 +27,7 @@ .foregroundColor(Color(.systemYellow)) ) } + .accessibilityIdentifier("AddToFavorites") } /*
--- a/SimoleonUITests/SimoleonUITests.swift Mon Aug 16 19:01:39 2021 +0100 +++ b/SimoleonUITests/SimoleonUITests.swift Mon Aug 16 19:10:25 2021 +0100 @@ -64,7 +64,7 @@ func testCoreData() throws { let app = XCUIApplication() - app.scrollViews.buttons["favorite"].tap() + app.scrollViews.buttons["AddToFavorites"].tap() if UIDevice.current.userInterfaceIdiom == .pad { app.tables["Sidebar"].buttons["NavigateToFavorites"].tap()