48 lines
1.3 KiB
JSON
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" }
|
|
}
|
|
}
|
|
]
|
|
}
|