Files
OneCAD/crates/ui-egui/tests/scenarios/s40_toolbar_customize_persists.json
T

125 lines
1.7 KiB
JSON

[
{
"note": "Toolbar customizing like Fusion survives a restart: Pin to Toolbar, Remove from Toolbar, drag to reorder. Toolbar buttons publish handles `toolbar:<command id>`. The workspace switcher spans the toolbar's height."
},
{
"expect": {
"spans": {
"inner": "workspace_switcher",
"outer": "toolbar",
"axis": "y",
"tol": 6
}
}
},
{
"expect": {
"shown_handles": [
"toolbar:solid.extrude",
"toolbar:solid.revolve"
],
"hidden_handles": [
"toolbar:solid.shell"
]
}
},
{
"call": "ui.menu",
"params": {
"x": 400,
"y": 80,
"target": {
"type": "toolbar_command",
"id": "solid.shell"
}
}
},
{
"call": "ui.menuPick",
"params": {
"item": "Pin to Toolbar"
}
},
{
"expect": {
"shown_handles": [
"toolbar:solid.shell"
]
}
},
{
"call": "ui.menu",
"params": {
"x": 400,
"y": 80,
"target": {
"type": "toolbar_command",
"id": "solid.revolve"
}
}
},
{
"call": "ui.menuPick",
"params": {
"item": "Remove from Toolbar"
}
},
{
"expect": {
"hidden_handles": [
"toolbar:solid.revolve"
]
}
},
{
"drag": [
{
"handle": "toolbar:solid.shell"
},
{
"handle": "toolbar:solid.extrude"
}
],
"steps": 12
},
{
"expect": {
"handle_order": [
"toolbar:solid.shell",
"toolbar:solid.extrude"
]
}
},
{
"restart": "close"
},
{
"expect": {
"shown_handles": [
"toolbar:solid.shell"
],
"hidden_handles": [
"toolbar:solid.revolve"
]
}
},
{
"expect": {
"handle_order": [
"toolbar:solid.shell",
"toolbar:solid.extrude"
]
}
},
{
"expect": {
"spans": {
"inner": "workspace_switcher",
"outer": "toolbar",
"axis": "y",
"tol": 6
}
}
}
]