# HG changeset patch # User Dennis Concepcion Martin # Date 1629137425 -3600 # Node ID 081f0857af5182e45735a37979736175c64f9f21 # Parent edc8719905fea4670f9d59354c1681963b3cb7cf Fix test crashing diff -r edc8719905fe -r 081f0857af51 Simoleon/Helpers/FavoriteButton.swift --- 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") } /* diff -r edc8719905fe -r 081f0857af51 SimoleonUITests/SimoleonUITests.swift --- 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()