pkluz / PKHUD

A Swift based reimplementation of the Apple HUD (Volume, Ringer, Rotation,…) for iOS 8.
MIT License
3.79k stars 494 forks source link

UI Testing for success or fail #226

Open sushant-here opened 6 years ago

sushant-here commented 6 years ago

Hi, I am trying to use your library to test for success or fail within UI automation. Can you please provide a UI test or something for this?

Building on top of your own UI Tests, I have tried to do the following however it doesn't seem to work even though the title element is enabled for accessibility...

self.waitForCondition(element: app.otherElements["PKHUD"].staticTexts["Success"], predicate: NSPredicate(format: "exists == true"))

Ideally, I'd like to be able to test for success/fail without a title/subtitle element.

Thanks, Sushant