fix(macos): show full browser tab ids

This commit is contained in:
Peter Steinberger
2025-12-13 18:16:52 +00:00
parent 238afbc2f8
commit 537c515dde
3 changed files with 50 additions and 5 deletions

View File

@@ -0,0 +1,20 @@
import Testing
@testable import ClawdisCLI
@Suite struct BrowserCLITests {
@Test func tabsOutputIncludesFullTargetId() async throws {
let res: [String: Any] = [
"running": true,
"tabs": [
[
"targetId": "57A01309E14B5DEE0FB41F908515A2FC",
"title": "Example",
"url": "https://example.com/",
],
],
]
let lines = BrowserCLI._testFormatTabs(res: res)
#expect(lines.contains(" id: 57A01309E14B5DEE0FB41F908515A2FC"))
}
}