diff --git a/hrp/internal/builtin/utils.go b/hrp/internal/builtin/utils.go index dd50d61c..9d149df6 100644 --- a/hrp/internal/builtin/utils.go +++ b/hrp/internal/builtin/utils.go @@ -452,6 +452,6 @@ func GenNameWithTimestamp(tmpl string) string { } func IsZeroFloat64(f float64) bool { - threshold := 1e-3 + threshold := 1e-9 return math.Abs(f) < threshold } diff --git a/hrp/pkg/uixt/service_vedem_test.go b/hrp/pkg/uixt/service_vedem_test.go index 1ded9c0e..b9e56591 100644 --- a/hrp/pkg/uixt/service_vedem_test.go +++ b/hrp/pkg/uixt/service_vedem_test.go @@ -81,7 +81,8 @@ func TestTapUIWithScreenshot(t *testing.T) { t.Fatal(err) } - err = driver.TapByUIDetection([]string{"dyhouse", "shoppingbag"}) + err = driver.TapByUIDetection( + WithScreenShotUITypes("dyhouse", "shoppingbag")) if err != nil { t.Fatal(err) }