refactor: check feed activity

This commit is contained in:
lilong.129
2023-05-30 17:40:41 +08:00
parent 4c6cce1d17
commit 21a2f9fd22
3 changed files with 26 additions and 10 deletions

View File

@@ -386,7 +386,8 @@ func (ad *adbDriver) AssertAppForeground(packageName string) error {
return err
}
if app.PackageName != packageName {
return errors.New("app is not in foreground")
return fmt.Errorf("%v is not in foreground, current is %v",
packageName, app.PackageName)
}
return nil
}