mirror of
https://github.com/httprunner/httprunner.git
synced 2026-06-08 09:19:41 +08:00
refactor: AssertForegroundApp
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user