Skip to content

Commit

Permalink
Update DarockBili_Watch_App_UI_Tests.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsMEMZ authored Nov 18, 2023
1 parent d616bd6 commit 98b1212
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions DarockBili Watch App UI Tests/DarockBili_Watch_App_UI_Tests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -28,12 +28,23 @@ final class DarockBili_Watch_App_UI_Tests: XCTestCase {
app.launch()

takeScreenshot(of: app, named: "Launch")

app.buttons["SuggestVideo"].firstMatch.tap()
sleep(1)
takeScreenshot(of: app, named: "RMVideo")
app.swipeUp()
sleep(1)
takeScreenshot(of: app, named: "RMVideoP2")
app.navigationBars.buttons.element(boundBy: 0).tap()
sleep(1)
app.otherElements["MainTabView"].swipeLeft()
sleep(1)
takeScreenshot(of: app, named: "PersonalCenter")
app.buttons["AppSettingsButton"].firstMatch.tap()

takeScreenshot(of: app, named: "PC")
sleep(1)
takeScreenshot(of: app, named: "SettingsMain")
app.buttons["以太网"].firstMatch.tap()
sleep(1)
takeScreenshot(of: app, named: "EthernetSetting")
}

func testLaunchPerformance() throws {
Expand Down

0 comments on commit 98b1212

Please sign in to comment.