Skip to content

Commit

Permalink
Upgrade tests to updated SpeziAccount (#16)
Browse files Browse the repository at this point in the history
# Upgrade tests to updated SpeziAccount

## ♻️ Current situation & Problem
With StanfordSpezi/SpeziAccount#23, SpeziAccount
was updated to no longer automatically place itself into
`NavigationStack`s and changed how the `SignupForm` is presented.
This PR fixes compatibility in tests.


## ⚙️ Release Notes 
* Fixe UITests compatibility with latest SpeziAccount release.


## 📚 Documentation
Not affected.


## ✅ Testing
Tests were adjusted.


## 📝 Code of Conduct & Contributing Guidelines 

By submitting creating this pull request, you agree to follow our [Code
of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md):
- [x] I agree to follow the [Code of
Conduct](https://github.com/StanfordSpezi/.github/blob/main/CODE_OF_CONDUCT.md)
and [Contributing
Guidelines](https://github.com/StanfordSpezi/.github/blob/main/CONTRIBUTING.md).
  • Loading branch information
Supereg authored Sep 20, 2023
1 parent 0862a0c commit 7e31453
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/StanfordSpezi/Spezi", .upToNextMinor(from: "0.7.0")),
.package(url: "https://github.com/StanfordSpezi/SpeziAccount", .upToNextMinor(from: "0.5.0")),
.package(url: "https://github.com/StanfordSpezi/SpeziAccount", .upToNextMinor(from: "0.5.1")),
.package(url: "https://github.com/StanfordSpezi/SpeziStorage", .upToNextMinor(from: "0.4.2")),
.package(url: "https://github.com/firebase/firebase-ios-sdk", from: "10.13.0")
],
Expand Down
4 changes: 2 additions & 2 deletions Tests/UITests/TestAppUITests/FirebaseAccountTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -392,10 +392,10 @@ extension XCUIApplication {
XCTAssertTrue(staticTexts["Please fill out the details below to create a new account."].waitForExistence(timeout: 6.0))
sleep(2)

try textFields["E-Mail Address"].enter(value: username)
try collectionViews.textFields["E-Mail Address"].enter(value: username)
extendedDismissKeyboard()

try secureTextFields["Password"].enter(value: password)
try collectionViews.secureTextFields["Password"].enter(value: password)
extendedDismissKeyboard()

swipeUp()
Expand Down
2 changes: 1 addition & 1 deletion Tests/UITests/UITests.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -570,7 +570,7 @@
repositoryURL = "https://github.com/StanfordSpezi/SpeziAccount.git";
requirement = {
kind = upToNextMinorVersion;
minimumVersion = 0.5.0;
minimumVersion = 0.5.1;
};
};
2F2E8EFD29E7369B00D439B7 /* XCRemoteSwiftPackageReference "SpeziViews" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@
"kind" : "remoteSourceControl",
"location" : "https://github.com/StanfordSpezi/SpeziAccount.git",
"state" : {
"revision" : "040aec4d6cf60c2a0f566dbef6f357dc74847507",
"version" : "0.5.0"
"revision" : "1685d1c01a94f61ca6039df6cd22a94632ccab6d",
"version" : "0.5.1"
}
},
{
Expand Down

0 comments on commit 7e31453

Please sign in to comment.