refactor: AssertForegroundApp

This commit is contained in:
lilong.129
2023-06-07 15:54:13 +08:00
parent 18ee1d7f0e
commit 4fb56211d8
6 changed files with 42 additions and 51 deletions

View File

@@ -364,7 +364,7 @@ func TestDriver_IsAppInForeground(t *testing.T) {
t.FailNow()
}
err = driverExt.Driver.AssertAppForeground("com.android.settings")
err = driverExt.Driver.AssertForegroundApp("com.android.settings")
if err != nil {
t.Fatal(err)
}
@@ -375,7 +375,7 @@ func TestDriver_IsAppInForeground(t *testing.T) {
t.Fatal(err)
}
err = driverExt.Driver.AssertAppForeground("com.android.settings")
err = driverExt.Driver.AssertForegroundApp("com.android.settings")
if err == nil {
t.Fatal(err)
}