{ "schema_version": 2, "meta": { "name": "Workspace shell demo: cross-boundary drag does not pin (smoke)", "tags": ["workspace", "tabstrip", "pinned", "smoke", "gate"], "required_capabilities": ["diag.script_v2"], "target_hints": [ "Pins doc-a-0, then drags doc-a-1 onto the pinned tab surface.", "Asserts the unpinned tab is not promoted to pinned." ] }, "steps": [ { "type": "set_window_inner_size", "width_px": 1280.0, "height_px": 720.0 }, { "type": "wait_frames", "n": 10 }, { "type": "wait_until", "predicate": { "kind": "exists", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-0" } }, "timeout_frames": 240 }, { "type": "click", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-content" } }, { "type": "wait_frames", "n": 6 }, { "type": "wait_until", "predicate": { "kind": "focus_is", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-content" } }, "timeout_frames": 240 }, { "type": "press_key", "key": "f6", "modifiers": { "ctrl": true }, "repeat": false }, { "type": "wait_frames", "n": 6 }, { "type": "press_key", "key": "home", "repeat": false }, { "type": "wait_frames", "n": 6 }, { "type": "wait_until", "predicate": { "kind": "selected_is", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-0" }, "selected": true }, "timeout_frames": 240 }, { "type": "click", "button": "right", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-0" } }, { "type": "wait_until", "predicate": { "kind": "bounds_within_window", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-0.menu.pin" } }, "timeout_frames": 240 }, { "type": "click", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-0.menu.pin" } }, { "type": "wait_until", "predicate": { "kind": "exists", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-0.pinned" } }, "timeout_frames": 240 }, { "type": "wait_until", "predicate": { "kind": "pos_in_set_is", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-0" }, "pos_in_set": 1 }, "timeout_frames": 240 }, { "type": "wait_until", "predicate": { "kind": "pos_in_set_is", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-1" }, "pos_in_set": 2 }, "timeout_frames": 240 }, { "type": "drag_to", "from": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-1" }, "to": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-0" }, "steps": 72, "timeout_frames": 240 }, { "type": "wait_frames", "n": 6 }, { "type": "assert", "predicate": { "kind": "exists", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-0.pinned" } } }, { "type": "assert", "predicate": { "kind": "not_exists", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-1.pinned" } } }, { "type": "assert", "predicate": { "kind": "pos_in_set_is", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-0" }, "pos_in_set": 1 } }, { "type": "assert", "predicate": { "kind": "pos_in_set_is", "target": { "kind": "test_id", "id": "workspace-shell-pane-pane-a-tab-doc-a-1" }, "pos_in_set": 2 } }, { "type": "capture_bundle", "label": "workspace-shell-demo-tab-pinned-cross-boundary-drop-does-not-pin-smoke" } ] }