-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: look for critical notification in respectSystemAlerts #962
Conversation
@@ -178,13 +178,13 @@ - (XCUIApplication *)activeApplication | |||
if (nil != self.testedApplication) { | |||
XCUIApplicationState testedAppState = self.testedApplication.state; | |||
if (testedAppState >= XCUIApplicationStateRunningForeground) { | |||
NSPredicate *searchPredicate = [NSPredicate predicateWithFormat:@"%K == %@ OR %K == %@ OR %K == %@", | |||
NSPredicate *searchPredicate = [NSPredicate predicateWithFormat:@"%K == %@ OR identifier IN {%@, %@}", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it is still ok to use %K for identifier
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, ok. I wondered if %K
was still valid for IN
:
https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/Predicates/Articles/pSyntax.html
## [8.12.0](v8.11.3...v8.12.0) (2024-12-13) ### Features * look for critical notification in respectSystemAlerts ([#962](#962)) ([916c8c5](916c8c5))
🎉 This PR is included in version 8.12.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
For appium/appium#20835
Critical notification is by the springboard:
I'll try to test this out later.