mirror of
https://github.com/kfattic/cupsadmin.git
synced 2026-11-13 19:06:43 -05:00
Quick action input labels shown as the profile writes them
"Current User ID" / "New User ID" on Xerox, "Current User Code" on Ricoh; the CLI validation error uses the same label. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -56,7 +56,7 @@ private func profileID(_ id: String, _ context: DriverContext) -> String? {
|
||||
let clear = try QuickAction.named("usercode")!.resolve(c, clearing: true).get().changes
|
||||
#expect(clear.map(\.value) == ["False", "None"])
|
||||
// Ricoh takes one value: digits, no second input.
|
||||
#expect(QuickAction.named("usercode")!.inputLabel(c) == "User code")
|
||||
#expect(QuickAction.named("usercode")!.inputLabel(c) == "User Code")
|
||||
#expect(QuickAction.named("usercode")!.secondInputLabel(c) == nil)
|
||||
#expect(throws: QuickActionUnavailable.self) { try QuickAction.named("usercode")!.resolve(c, value: "4321", secondValue: "9").get() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user