checkpoint before checking out main
This commit is contained in:
@@ -36,6 +36,7 @@ final class KeyboardStateTests: XCTestCase {
|
||||
XCTAssertEqual(s.level, 0)
|
||||
XCTAssertFalse(s.onDeviceSupported)
|
||||
XCTAssertFalse(s.undoAvailable)
|
||||
XCTAssertFalse(s.hasFullAccess)
|
||||
}
|
||||
|
||||
func testPhaseTransitionsIdleToRequestingPermissionsAndBack() {
|
||||
@@ -145,6 +146,20 @@ final class KeyboardStateTests: XCTestCase {
|
||||
XCTAssertEqual(state.clipboardOverlay, .none)
|
||||
}
|
||||
|
||||
func testClipboardFullAccessHintTracksCaptureAvailability() {
|
||||
let state = KeyboardState()
|
||||
state.clipboardHistoryEnabled = true
|
||||
|
||||
XCTAssertTrue(state.needsClipboardFullAccessHint)
|
||||
|
||||
state.hasFullAccess = true
|
||||
XCTAssertFalse(state.needsClipboardFullAccessHint)
|
||||
|
||||
state.hasFullAccess = false
|
||||
state.clipboardHistoryEnabled = false
|
||||
XCTAssertFalse(state.needsClipboardFullAccessHint)
|
||||
}
|
||||
|
||||
func testResolvedSkillCopyPublishesWhenIDsStayStable() {
|
||||
let state = KeyboardState()
|
||||
state.enabledClipboardSkillIDs = ["official.rewrite"]
|
||||
|
||||
Reference in New Issue
Block a user