I am pretty new to iOS UITesting. I'm currently writing UITest for my app using XCTest
. I was able to test if a UIElement
is visible or hidden when a particular button is tapped. But I wanted to test if a certain method is called when a button is tapped. How to do this? Does this come under UI testing?
I also wanted to test the UIElement
s visible/hidden only when certain sent events are triggered instead of tap. Can we test sent events like Touch Down
or Touch Up Inside
of the button? Any help is appreciated. Thanks.