58 lines
1.4 KiB
JSON
58 lines
1.4 KiB
JSON
{
|
|
"version": 1,
|
|
"id": "local-form",
|
|
"description": "Offline exact-name form smoke test against the disposable fixture.",
|
|
"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/form.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/form.html"
|
|
}
|
|
},
|
|
"hooks": {
|
|
"reset": {
|
|
"argv": ["node", "extensions/fast-browser/scenarios/examples/reset-local-fixture.mjs"],
|
|
"cwd": ".",
|
|
"env": {
|
|
"FAST_BROWSER_FIXTURE_MODE": {"env": "FAST_BROWSER_FIXTURE_MODE"}
|
|
},
|
|
"timeoutMs": 2000
|
|
}
|
|
},
|
|
"operations": [
|
|
{
|
|
"op": "step",
|
|
"step": {
|
|
"instruction": "Display name",
|
|
"action": "fill",
|
|
"text": "Ada"
|
|
}
|
|
},
|
|
{
|
|
"op": "step",
|
|
"step": {
|
|
"instruction": "Continue",
|
|
"action": "click",
|
|
"postcondition": {
|
|
"kind": "text",
|
|
"value": "Fixture complete"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"evidence": {
|
|
"onFailure": true,
|
|
"onRequest": false
|
|
}
|
|
}
|