-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix UI test cases authentication (#8)
# Description Fix UI test case authentication on GitHub Actions by: 1. Adding a Test-credentials.xcconfig to the UI Test target 2. Reading these credentials into the test target and using them to complete the authentication flow in the UI tests 3. Updating behavior around NavigableWebView to ensure that the parent view is the only owner of the `@State var url: URL` - and that no other navigation manipulations (see: `.navigationDestination(item: $link)`) are parent to a NavigableWebView. ## Output - Infrastructure for continuous integration is configured and tests are 🟢 passing for future PRs - Navigation and web view behavior is corrected for iOS 18+ ## Screenshots Captured from local build testing against developer accounts in production. <img width="1242" alt="Screenshot 2024-12-08 at 22 45 01" src="https://github.com/user-attachments/assets/9b0af814-0521-4d51-82ae-5a99452a450c"> <img width="667" alt="Screenshot 2024-12-08 at 22 43 55" src="https://github.com/user-attachments/assets/92a0d214-296a-4dc3-86da-2f2ad4d92311"> <img width="1227" alt="Screenshot 2024-12-08 at 22 43 39" src="https://github.com/user-attachments/assets/2c75a3b4-1952-4999-a09d-3760c2d119d0">
- Loading branch information
Showing
22 changed files
with
297 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
BikeIndex/View/Settings/AcknowledgementRepositoryWebView.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
// | ||
// AcknowledgementRepositoryWebView.swift | ||
// BikeIndex | ||
// | ||
// Created by Jack on 12/5/24. | ||
// | ||
|
||
import SwiftUI | ||
|
||
// TODO: Evaluate generalizing this with ``BikeDetailView`` (although BikeDetailView is intended to grow in complexity. | ||
struct AcknowledgementRepositoryWebView: View { | ||
@Environment(Client.self) var client | ||
|
||
var package: AcknowledgementPackage | ||
@State private var url: URL | ||
|
||
init(package: AcknowledgementPackage) { | ||
self.package = package | ||
self._url = State(initialValue: package.repository) | ||
} | ||
|
||
var body: some View { | ||
NavigableWebView(url: $url) | ||
.environment(client) | ||
.navigationTitle(package.title) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.