From 4636f16d522ef6afbba37be29ac6dea08c3d11d5 Mon Sep 17 00:00:00 2001 From: Mark Chan <45706356+WindowsMEMZ@users.noreply.github.com> Date: Wed, 13 Dec 2023 23:49:11 +0800 Subject: [PATCH] Update DarockBili_Watch_App_UI_Tests.swift --- .../DarockBili_Watch_App_UI_Tests.swift | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift b/DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift index d3c4e26d2..6b95f2e05 100644 --- a/DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift +++ b/DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift @@ -57,11 +57,12 @@ final class DarockBili_Watch_App_UI_Tests: XCTestCase { app.buttons["SearchDebugButton"].tap() sleep(5) takeScreenshot(of: app, named: "DebugSearch") - app.navigationBars.buttons.element(boundBy: 0).tap() + app.buttons["Dismiss"].firstMatch.tap() sleep(1) } - app.navigationBars.buttons.element(boundBy: 0).tap() + app.buttons["Dismiss"].firstMatch.tap() sleep(1) + // Backed to suggestions view app.otherElements["MainTabView"].swipeLeft() sleep(1) takeScreenshot(of: app, named: "PersonalCenter")