zalando / SwiftMonkey

A framework for doing randomised UI testing of iOS apps
MIT License
1.95k stars 175 forks source link

Hitting XCTAssert in MonkeyXCTest for missing alert button #104

Open Hodor4Me opened 3 years ago

Hodor4Me commented 3 years ago

SwiftMonkey Version: 2.2.0 Xcode Version: 12.5 Mac OS Version: 11.4

Occasionally, this happens. A guess is that the monkey process may be running on a separate thread and it tapped one of the alert buttons before the addXCTestTapAlertAction is called? Screenshot captured during a run shows the alert dialog fading away which makes me think this may be the case.

To be precise, I see XCTAssertNotEqual(buttons.count, 0, "No buttons in alert") being hit in MonkeyXCTest.addXCTestTapAlertAction

Any suggestions?