fix(test): AP2.3f dispute_case-Profil in operating-context-Tests abbilden.
All checks were successful
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 3m10s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 19s
Test Suite / playwright-smoke (push) Successful in 13s
All checks were successful
Deploy Development / deploy (push) Successful in 47s
Test Suite / pytest-backend (push) Successful in 3m10s
Test Suite / lint-backend (push) Successful in 2s
Test Suite / compose-smoke (push) Has been skipped
Test Suite / k6 /api/health Baseline (push) Successful in 19s
Test Suite / playwright-smoke (push) Successful in 13s
Generic-Fallback testet initiative.generic; dispute_case erwartet explizite processSteps. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
c79bfa844f
commit
ac475ab92c
|
|
@ -103,7 +103,7 @@ def test_operating_context_program(client):
|
|||
assert body["ui_profile"]["planOutlineKeys"] is not None
|
||||
|
||||
|
||||
def test_operating_context_generic_fallback(client):
|
||||
def test_operating_context_dispute_case(client):
|
||||
user = provision_user_in_tenant(tenant_role="member")
|
||||
token = _login(client, user)
|
||||
|
||||
|
|
@ -121,6 +121,30 @@ def test_operating_context_generic_fallback(client):
|
|||
)
|
||||
assert res.status_code == 200
|
||||
body = res.json()
|
||||
assert body["method_key"] == "dispute_procedure"
|
||||
assert body["ui_profile"]["planDefaultRoute"] == "/plan/profile"
|
||||
assert {s["key"] for s in body["ui_profile"]["processSteps"]} == {"work", "control"}
|
||||
|
||||
|
||||
def test_operating_context_generic_fallback(client):
|
||||
user = provision_user_in_tenant(tenant_role="member")
|
||||
token = _login(client, user)
|
||||
|
||||
created = _create_initiative(
|
||||
client,
|
||||
token,
|
||||
title="Generic",
|
||||
archetype_key="initiative.generic",
|
||||
)
|
||||
initiative_id = created.json()["id"]
|
||||
|
||||
res = client.get(
|
||||
f"/api/initiatives/{initiative_id}/operating-context",
|
||||
headers=_auth(token),
|
||||
)
|
||||
assert res.status_code == 200
|
||||
body = res.json()
|
||||
assert body["method_key"] == "generic_operating"
|
||||
assert body["ui_profile"]["planDefaultRoute"] == "/plan/profile"
|
||||
assert body["ui_profile"]["processSteps"] == []
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user