refactor: relocate code

This commit is contained in:
lilong.129
2024-09-01 16:32:34 +08:00
parent 3e17d48e5a
commit 6f9946801d
9 changed files with 336 additions and 310 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ import (
)
func TestAndroidSwipeAction(t *testing.T) {
setupAndroid(t)
setupAndroidAdbDriver(t)
swipeAction := driverExt.prepareSwipeAction(WithDirection("up"))
err := swipeAction(driverExt)
@@ -19,14 +19,14 @@ func TestAndroidSwipeAction(t *testing.T) {
}
func TestAndroidSwipeToTapApp(t *testing.T) {
setupAndroid(t)
setupAndroidAdbDriver(t)
err := driverExt.swipeToTapApp("抖音")
checkErr(t, err)
}
func TestAndroidSwipeToTapTexts(t *testing.T) {
setupAndroid(t)
setupAndroidAdbDriver(t)
err := driverExt.Driver.AppLaunch("com.ss.android.ugc.aweme")
checkErr(t, err)