SwiftMonkey icon indicating copy to clipboard operation
SwiftMonkey copied to clipboard

Hitting XCTAssert in MonkeyXCTest for missing alert button

Open Hodor4Me opened this issue 4 years ago • 0 comments

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?

Hodor4Me avatar Jul 20 '21 22:07 Hodor4Me