Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use simple textField selection by default; provide more customization options #25

Merged
merged 2 commits into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion Sources/XCTestApp/TestAppTestsView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,12 @@ public struct TestAppTestsView<Tests: TestAppTests>: View {
NavigationLink(test.rawValue, value: test)
}
.navigationDestination(for: Tests.self) { test in
test.view(withNavigationPath: $path)
test
.view(withNavigationPath: $path)
.navigationTitle(test.rawValue)
#if !os(macOS) && !os(tvOS)
.navigationBarTitleDisplayMode(.inline)
#endif
}
.navigationTitle(String(describing: Tests.self))
.toolbar {
Expand Down
2 changes: 1 addition & 1 deletion Sources/XCTestApp/TestAppView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public struct TestAppView: View {
@State private var testState = "Running ..."
private let testCase: any TestAppTestCase


public var body: some View {
Text(testState)
.task {
Expand Down
97 changes: 0 additions & 97 deletions Sources/XCTestExtensions/XCTestCase+DisablePasswordAutofill.swift

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -51,12 +51,13 @@ The `enter(value:)` and `delete(count:)` methods provide the `checkIfTextWasEnte

### Assertions

- ``XCTAssertThrowsErrorAsync``
- ``XCTAssertThrowsErrorAsync(_:_:file:line:_:)``

### Text Entry

- ``XCTest/XCUIElement/enter(value:checkIfTextWasEnteredCorrectly:dismissKeyboard:)``
- ``XCTest/XCUIElement/delete(count:checkIfTextWasDeletedCorrectly:dismissKeyboard:)``
- ``TextInputOptions``
- ``XCTest/XCUIElement/enter(value:options:)``
- ``XCTest/XCUIElement/delete(count:options:)``

### App Interaction

Expand Down
Loading
Loading