Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to acknowledge system alerts automatically using KIF test framework?

Tags:

ios

kif

I use KIF to test the UI for continuous integration. When the app is the first launch on a device (or iOS Simulator), the system will show some alert views for security. How can KIF automatically acknowledge system alerts to prevent test from failure?

like image 490
Xaree Lee Avatar asked May 04 '15 11:05

Xaree Lee


1 Answers

The best way is to use [tester acknowledgeSystemAlert]. It will click the last button in the system alert :)

For more information see this github thread.

like image 105
user1781697 Avatar answered Oct 31 '22 02:10

user1781697