61 lines
1.4 KiB
JSON
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
|
|
}
|
|
}
|