When creating XCUITests, you will use the following command to view the element hierarchy tree: po XCUIApplication()
However, sometimes elements won’t appear in the hierarchy tree until you scroll on the screen. XCode is supposed to scroll to an element automatically even when not in view, but we have not had success with this and it appears this is an open issue still.
So what to do?
SBTUITestTunnel allows you to define custom blocks of codes executed in the application target.
Set up your app to use SBTUITestTunnel and then you should be to have something similar to the following…
Snapshot Testing — what is that?? I get questioned a lot about what it is and why we use it. It’s not as common as other types of testing such as Manual, Automated e2e, Regression, Integration, etc. In this article, i’ll discuss what snapshot testing is, when we have found it useful, when not so useful, some lessons learned, and existing tools.
Snapshot testing compares two images: a “Reference” image, which is the expected image of the application screen, to the “Current” image, which is the snapshot of what the screen is actually displaying. …
Test Engineer Expert, Dog Mom