refactor: restructure

This commit is contained in:
debugtalk
2022-09-23 21:19:12 +08:00
parent 7a94afaf7e
commit 642a74e5ea
18 changed files with 624 additions and 511 deletions
+3 -3
View File
@@ -16,10 +16,10 @@ func TestSwipeUntil(t *testing.T) {
}
foundAppAction := func(d *DriverExt) error {
// click app, launch douyin
return d.TapFloat(x+width*0.5, y+height*0.5-20)
return d.Driver.TapFloat(x+width*0.5, y+height*0.5-20)
}
driverExt.Homescreen()
driverExt.Driver.Homescreen()
// swipe to first screen
for i := 0; i < 5; i++ {
@@ -37,7 +37,7 @@ func TestSwipeUntil(t *testing.T) {
}
foundLiveAction := func(d *DriverExt) error {
// enter live room
return d.TapFloat(x+width*0.5, y+height*0.5)
return d.Driver.TapFloat(x+width*0.5, y+height*0.5)
}
// swipe until live room found