Skip to content

Commit

Permalink
Make UI tests faster on visionOS for now
Browse files Browse the repository at this point in the history
  • Loading branch information
Supereg committed Feb 3, 2024
1 parent c0ca285 commit a3fa40c
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
1 change: 0 additions & 1 deletion Sources/SpeziPersonalInfo/UserProfileView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
// SPDX-License-Identifier: MIT
//


import SwiftUI


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,19 @@ final class PersonalInfoViewsTests: XCTestCase {
XCTAssert(app.staticTexts["First Name"].waitForExistence(timeout: 2))
XCTAssert(app.staticTexts["Last Name"].waitForExistence(timeout: 2))

#if os(visionOS)
app.textFields["enter your first name"].tap()
sleep(1)
app.typeText("Leland")

app.textFields["enter your last name"].tap()
sleep(1)
app.typeText("Stanford")

#else
try app.textFields["enter your first name"].enter(value: "Leland")
try app.textFields["enter your last name"].enter(value: "Stanford")
#endif

XCTAssert(app.textFields["Leland"].waitForExistence(timeout: 2))
XCTAssert(app.textFields["Stanford"].waitForExistence(timeout: 2))
Expand Down

0 comments on commit a3fa40c

Please sign in to comment.