-
Notifications
You must be signed in to change notification settings - Fork 0
test: migrate 9 coordinator suites to KeyPathTestCase (#698) #706
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,7 +4,7 @@ | |
| import KeyPathWizardCore | ||
| import XCTest | ||
|
|
||
| final class OverlayHealthIndicatorObserverTests: XCTestCase { | ||
| final class OverlayHealthIndicatorObserverTests: KeyPathTestCase { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This file also defines Useful? React with 👍 / 👎. |
||
| @MainActor | ||
| func testHealthyStateTriggersDismiss() async { | ||
| var states: [HealthIndicatorState] = [] | ||
|
|
@@ -55,7 +55,7 @@ | |
| description: "Resolvable conflict", | ||
| autoFixAction: nil, | ||
| userAction: nil | ||
| ), | ||
| ] | ||
| controller.validationState = .success | ||
|
|
||
|
|
@@ -107,7 +107,7 @@ | |
| description: "Resolvable", | ||
| autoFixAction: nil, | ||
| userAction: nil | ||
| ), | ||
| ] | ||
| controller.validationState = .failed(blockingCount: 1, totalCount: 3) | ||
|
|
||
|
|
@@ -149,7 +149,7 @@ | |
| description: "Test", | ||
| autoFixAction: nil, | ||
| userAction: nil | ||
| ), | ||
| ] | ||
| controller.validationState = .failed(blockingCount: 1, totalCount: 1) | ||
| try? await Task.sleep(for: .milliseconds(400)) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This file still contains
Phase1LoggingTests: XCTestCaseat line 127, and that suite constructsRuntimeCoordinator()intestLoggingCapturesActualOperations. BecauseTestSeamLintTestsskips an entire file once it sees: KeyPathTestCase, changing onlyContentViewDebounceTestshere removes the file from the allowlist while leaving the logging suite without theVHIDDeviceManager.testPIDProviderseam, so this test can still take the realpgreppath that this migration is meant to avoid.Useful? React with 👍 / 👎.