Speed up UI tests

- Disable animations.
- Search for screens instead of scrolling them into view.
This commit is contained in:
Doug
2022-07-14 17:40:01 +01:00
committed by Doug
parent db2891b4ca
commit 0442342fc5
4 changed files with 61 additions and 19 deletions
@@ -19,10 +19,14 @@ import XCTest
extension XCUIApplication {
func goToScreenWithIdentifier(_ identifier: String) {
let button = self.buttons[identifier]
let lastLabel = staticTexts["lastItem"]
// Search for the screen identifier
textFields["searchQueryTextField"].tap()
typeText(identifier)
while !button.isHittable && !lastLabel.isHittable {
let button = self.buttons[identifier]
let footer = staticTexts["footerText"]
while !button.isHittable && !footer.isHittable {
self.tables.firstMatch.swipeUp()
}