fix(simulation): validate semantic click identity (#37808)

This commit is contained in:
Kit Langton
2026-07-19 16:43:53 -04:00
committed by GitHub
parent edc93ceff1
commit 71cb419570
6 changed files with 118 additions and 3 deletions
+29
View File
@@ -21,6 +21,35 @@ test("decodes ui.matches text params", () => {
).toThrow()
})
test("decodes semantic click identity", () => {
expect(
Frontend.decodeRequest({
jsonrpc: "2.0",
id: 1,
method: "ui.click",
params: {
target: 12,
x: 4,
y: 0,
semantic: {
id: "session.permission.action.once",
instance: "permission-1",
element: 12,
},
},
}),
).toMatchObject({
method: "ui.click",
params: {
semantic: {
id: "session.permission.action.once",
instance: "permission-1",
element: 12,
},
},
})
})
test("decodes semantic UI snapshots", () => {
expect(
Frontend.decodeRequest({