XCUIElement tap() not working

Question or problem in the Swift programming language: I have a very simple XCTestCase implementation that tests a tap on a button and expects an Alert controller to show up. The problem is that the tap() method doesn’t work. Placing a breakpoint in the associated button’s IBAction I realise the logic doesn’t even get called.

Continue Reading