Files
harness-tools/extensions/fast-browser/scenarios/examples/local-popup.json
T
jb fd63b0ccec
fast-browser scenarios / Offline scenario contract tests (push) Failing after 44s
fast-browser scenarios / Local Chromium headless scenarios (push) Failing after 23s
fast-browser-with-jev
2026-09-20 12:24:08 -04:00

48 lines
1.3 KiB
JSON

{
"version": 1,
"id": "local-popup",
"description": "Open and inspect the bounded local popup fixture without exposing browser tab IDs.",
"fixture": {
"baseUrl": "http://127.0.0.1:8765",
"server": {
"mode": "managed",
"start": { "command": "python3", "args": ["-m", "http.server", "8765", "--bind", "127.0.0.1", "--directory", "extensions/fast-browser/fixtures"], "cwd": "." },
"readiness": { "url": "http://127.0.0.1:8765/scenario-suite.html", "expectedStatus": 200 }
}
},
"settings": {
"allowedOrigins": ["http://127.0.0.1:8765"],
"browser": {
"mode": "launch",
"product": "chromium",
"headless": true,
"startUrl": "http://127.0.0.1:8765/scenario-suite.html"
}
},
"operations": [
{
"op": "navigate",
"request": { "url": "http://127.0.0.1:8765/scenario-suite.html" }
},
{
"op": "step",
"step": {
"instruction": "Open local popup",
"action": "click",
"postcondition": { "kind": "text", "value": "Popup opened" }
}
},
{
"op": "waitPopup",
"id": "popup",
"request": { "opener": { "source": "initial", "target": "selected" } }
},
{
"op": "read",
"request": {
"tab": { "source": "operation", "operation": { "id": "popup" }, "result": "popup" }
}
}
]
}