Files
harness-tools/extensions/fast-browser/scenarios/examples/local-login.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

61 lines
1.4 KiB
JSON

{
"version": 1,
"id": "local-login",
"description": "Offline login fixture using a local environment credential reference.",
"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/login.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/login.html"
}
},
"credentials": {
"fixturePassword": {
"env": "FAST_BROWSER_TEST_PASSWORD"
}
},
"operations": [
{
"op": "step",
"step": {
"instruction": "Username",
"action": "fill",
"text": "demo-user"
}
},
{
"op": "step",
"step": {
"instruction": "Password",
"action": "fill",
"credential": "fixturePassword"
}
},
{
"op": "step",
"step": {
"instruction": "Sign in",
"action": "click",
"postcondition": {
"kind": "text",
"value": "Test login complete"
}
}
}
],
"evidence": {
"onFailure": true,
"onRequest": false
}
}