feat: 支持打开锁屏

This commit is contained in:
余泓铮
2024-09-18 21:50:05 +08:00
parent 878b626971
commit ac6940b283
4 changed files with 29 additions and 35 deletions
+2 -2
View File
@@ -34,7 +34,7 @@ func TestWindowSize(t *testing.T) {
t.Log(fmt.Sprintf("width: %d, height: %d", size.Width, size.Height))
}
func TestTap(t *testing.T) {
func TestHarmonyTap(t *testing.T) {
setup(t)
err := harmonyDriverExt.TapAbsXY(200, 2000)
if err != nil {
@@ -52,7 +52,7 @@ func TestSwipe(t *testing.T) {
func TestInput(t *testing.T) {
setup(t)
err := harmonyDriverExt.Input("test测试123!@#")
err := harmonyDriverExt.Input("test")
if err != nil {
t.Fatal(err)
}