Skip to content
This repository was archived by the owner on Dec 5, 2022. It is now read-only.

Hitting XCTAssert in MonkeyXCTest for missing alert button #104

Open
Hodor4Me opened this issue Jul 20, 2021 · 0 comments
Open

Hitting XCTAssert in MonkeyXCTest for missing alert button #104

Hodor4Me opened this issue Jul 20, 2021 · 0 comments

Comments

@Hodor4Me
Copy link

Hodor4Me commented Jul 20, 2021

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?

# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant