mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-27 11:46:58 +02:00
Speed up UI tests
- Disable animations. - Search for screens instead of scrolling them into view.
This commit is contained in:
@@ -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()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user