diff --git a/.github/workflows/ios.yml b/.github/workflows/ios.yml index c8ef1dd7a..f78b30b3d 100644 --- a/.github/workflows/ios.yml +++ b/.github/workflows/ios.yml @@ -20,8 +20,8 @@ jobs: - name: Archive DarockBili App run: | - xcodebuild -scheme DarockBili -configuration Debug DEVELOPMENT_TEAM=B57D8PP775 -sdk 'iphoneos' -destination 'generic/platform=iOS' -archivePath DarockBili_Debug.xcarchive clean archive CODE_SIGN_IDENTITY="" - xcodebuild -scheme DarockBili -configuration Release DEVELOPMENT_TEAM=B57D8PP775 -sdk 'iphoneos' -destination 'generic/platform=iOS' -archivePath DarockBili_Release.xcarchive clean archive CODE_SIGN_IDENTITY="" + xcodebuild -scheme 'DarockBili Watch App' -configuration Debug -archivePath DarockBili_Debug.xcarchive clean archive CODE_SIGN_IDENTITY="" + xcodebuild -scheme 'DarockBili Watch App' -configuration Release -archivePath DarockBili_Release.xcarchive clean archive CODE_SIGN_IDENTITY="" - name: Export IPA run: | 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 2ab94019d..518e95e0a 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 @@ -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 { diff --git a/DarockBili Watch App/InMain/MainView.swift b/DarockBili Watch App/InMain/MainView.swift index 11f56ac8d..cf30e2ef1 100644 --- a/DarockBili Watch App/InMain/MainView.swift +++ b/DarockBili Watch App/InMain/MainView.swift @@ -98,7 +98,7 @@ struct MainView: View { autoreleasepool { ForEach(0...videos.count - 1, id: \.self) { i in VideoCard(videos[i]) - .accessibilityIdentifier(i == 0 ? "TestVideoCard" : "") + .accessibility(identifier: "SuggestVideo") } } }