Fix skill migration test regressions
CI / Validate manifests (push) Has been cancelled
CI / SwiftLint (push) Has been cancelled
CI / iOS / Extension (push) Has been cancelled
CI / macOS (push) Has been cancelled

Use an explicit remote clipboard card after removing local clipboard hints and assert the complete set of newly migrated default skills.
This commit is contained in:
Rocky
2026-08-23 20:51:29 +08:00
parent 1cbef4dae5
commit 57844ce615
2 changed files with 17 additions and 3 deletions
@@ -65,8 +65,15 @@ final class AIClipboardPromptTests: XCTestCase {
}
func testClipboardCardFailsClosedAfterEligibilityWindow() {
let card = AIHintLocalCatalog.cards(locale: "zh")
.first { $0.requiresClipboard30s }!
let card = AIHintCard(
id: "remote-clipboard-reply",
displayText: "回复剪贴板",
prompt: "请回复剪贴板内容",
category: "clipboard",
source: "remote",
locale: "zh",
conditions: ["clipboard_30s"]
)
XCTAssertEqual(
AIHintPool.resolvePrompt(for: card, clipboardText: nil),
.materialUnavailable
@@ -130,7 +130,14 @@ final class OfficialSkillCatalogTests: XCTestCase {
XCTAssertEqual(
migrated.enabledIDs,
[AIClipboardSkillCatalog.replyID, "official.rewrite"]
[
AIClipboardSkillCatalog.replyID,
AIClipboardSkillCatalog.openLinkID,
AIClipboardSkillCatalog.summarizeWebPageID,
AIClipboardSkillCatalog.callPhoneID,
AIClipboardSkillCatalog.createContactID,
"official.rewrite"
]
)
}