fix: web ui test

This commit is contained in:
徐聪
2025-05-07 20:12:06 +08:00
parent 37fd2e900d
commit 6cce5e3c5b
14 changed files with 347 additions and 60 deletions
+11
View File
@@ -7,6 +7,7 @@ import (
"testing"
"time"
"github.com/danielpaulus/go-ios/ios"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -50,6 +51,16 @@ func TestDriver_WDA_LazySetup(t *testing.T) {
assert.Nil(t, err)
}
func TestIOSDeviceList(t *testing.T) {
t.Logf("start test")
// get all attached ios devices
devices, err := ios.ListDevices()
if err != nil {
t.Fatal(err)
}
t.Logf("%+v", devices)
}
func TestDevice_IOS_New(t *testing.T) {
device, err := NewIOSDevice(
option.WithWDAPort(8700),