Skip to content
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

Better support for alerts #2

Open
mac-cain13 opened this issue Jan 24, 2020 · 2 comments
Open

Better support for alerts #2

mac-cain13 opened this issue Jan 24, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@mac-cain13
Copy link
Contributor

If you want to create a ViewObject for an alert you need to hack a little, this should be better supported. Should think about the design for this.

See: https://github.com/Q42/Salad.DemoApp/blob/master/SaladSampleAppUITests/ViewObjects/AddItemView.swift#L13

@mac-cain13 mac-cain13 added the enhancement New feature or request label Jan 24, 2020
@mbernson
Copy link
Member

mbernson commented Jul 2, 2020

A related WWDC video came out this year, "Handle interruptions and alerts in UI tests":
https://developer.apple.com/videos/play/wwdc2020/10220/

@mbernson
Copy link
Member

mbernson commented Jul 2, 2020

XCTestCase manages a stack of interruption handlers that you can manipulate using addUIInterruptionMonitor() and removeUIInterruptionMonitor(). Maybe we can integrate this into the Salad framework in a nice way?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants