From 1dde4db4fd3b3854ca0b003980463fd029540a38 Mon Sep 17 00:00:00 2001 From: WindowsMEMZ <45706356+WindowsMEMZ@users.noreply.github.com> Date: Thu, 16 Nov 2023 21:52:37 +0800 Subject: [PATCH] Update DarockBili_Watch_App_UI_Tests.swift --- .../DarockBili_Watch_App_UI_Tests.swift | 19 +++---------------- 1 file changed, 3 insertions(+), 16 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 b43179dd5..cb9bcb216 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 @@ -26,22 +26,9 @@ final class DarockBili_Watch_App_UI_Tests: XCTestCase { // UI tests must launch the application that they test. let app = XCUIApplication() app.launch() - continueAfterFailure = true - if app.staticTexts["Debug"].exists { - XCTAssertTrue(app.staticTexts["Debug"].exists, "Debug Mode Not Closed") - app.buttons["Debug"].tap() - XCTAssertFalse(app.staticTexts["Text"].waitForExistence(timeout: 2.5), "No Tip Window") - app.buttons["Show Debug Controls"].tap() - XCTAssertFalse(app.staticTexts["Memory Usage:"].exists, "Debug - Memory Usage Label?") - app.buttons["Close Debug Controls"].tap() - } - continueAfterFailure = false - XCTAssertFalse(app.staticTexts["TestVideoCard"].waitForExistence(timeout: 7), "Could not load any video") - app.buttons["TestVideoCard"].tap() - app.buttons["OwnerPage"].tap() - sleep(5) - app.swipeLeft() - sleep(5) + + app.tabBars.buttons[2].tap() + app.buttons["AppSettingsButton"].tap() } func testLaunchPerformance() throws {