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

@@ -282,7 +282,7 @@ func (dExt *DriverExt) DoValidation(check, assert, expected string, message ...s
case SelectorImage:
result = (dExt.IsImageExist(expected) == exp)
case SelectorForegroundApp:
result = ((dExt.Driver.AssertAppForeground(expected) == nil) == exp)
result = ((dExt.Driver.AssertForegroundApp(expected) == nil) == exp)
}
if !result {