How to access back bar button item in universal way under UITests in Xcode?
Based on Aaron Sofaers comment, you can also set the accessibilityIdentifier
directly in Interface Builder.
Generally the back button tends to be the first button element in the navigation bar
app.navigationBars.buttons.element(boundBy: 0).tap()