test: add unittest

This commit is contained in:
lilong.129 2025-03-11 22:12:02 +08:00
parent 0c8b147c7c
commit 124c222fbf
2 changed files with 6 additions and 1 deletions

View File

@ -1 +1 @@
v5.0.0-beta-2503080031 v5.0.0-beta-2503112212

View File

@ -50,6 +50,11 @@ func TestDriverExt(t *testing.T) {
point, _ := driverExt.FindScreenText("hello") point, _ := driverExt.FindScreenText("hello")
t.Log(point) t.Log(point)
err := driverExt.TapByCV(
option.WithScreenShotUITypes("deepseek_send"),
option.WithScope(0.8, 0.5, 1, 1))
assert.Nil(t, err)
// call IDriver methods // call IDriver methods
driverExt.GetDevice().Install("/path/to/app") driverExt.GetDevice().Install("/path/to/app")
driverExt.GetDevice().GetPackageInfo("com.ss.android.ugc.aweme") driverExt.GetDevice().GetPackageInfo("com.ss.android.ugc.aweme")