Skip to content

Commit

Permalink
UI test fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
philippzagar committed Dec 21, 2024
1 parent 56492ee commit 71c452e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Tests/UITests/TestAppUITests/TestAppUITests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,13 @@ class TestAppUITests: XCTestCase {
#endif

sleep(3)
XCTAssert(app.buttons["Save"].waitForExistence(timeout: 2))

// Select "On My iPhone / iPad" directory, if necessary
let predicate = NSPredicate(format: "label BEGINSWITH[c] %@", "On My")
let matchingStaticTexts = app.staticTexts.containing(predicate)
matchingStaticTexts.allElementsBoundByIndex.first?.tap()

XCTAssert(app.buttons["Save"].waitForExistence(timeout: 5))
app.buttons["Save"].tap()
sleep(10) // Wait until file is saved

Expand Down

0 comments on commit 71c452e

Please sign in to comment.