Kanban: Voraussetzung gibt schon bei "Wartet" frei

- Eine abhängige Aufgabe bleibt gesperrt (in "Offen"), bis jede
  Voraussetzung in "Wartet" oder "Erledigt" steht – vorher erst bei
  "Erledigt"
- Server (UNLOCKING), Karte, Dialog und Meldungen angepasst; Test prüft
  "In Arbeit" (gesperrt) und "Wartet" (frei)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
guyg1474andClaude Opus 5.5 committed 2026-10-15 20:12:59 +02:00
1 parent fef9c8f16e
commit fdbb31065f
8 files changed
+33 -24

No files matched your search

+5 -2
View File
@@ -85,7 +85,7 @@ def test_checkliste_speichern_und_abhaken(login):
assert anna.patch(f"/api/kanban/aufgaben/{t['id']}", json={"checklist": [{"text": " "}]}).status_code == 400
def test_voraussetzung_sperrt_bis_erledigt(login):
def test_voraussetzung_sperrt_bis_wartet_oder_erledigt(login):
anna = login("anna")
pid = make_board(anna)
a = task(anna, pid, "Wand streichen")
@@ -94,7 +94,10 @@ def test_voraussetzung_sperrt_bis_erledigt(login):
assert b["blocked"] is True and b["requires"] == [a["id"]]
res = anna.patch(f"/api/kanban/aufgaben/{b['id']}", json={"status": "arbeit"})
assert res.status_code == 400 and "Wand streichen" in res.json()["error"]
anna.patch(f"/api/kanban/aufgaben/{a['id']}", json={"status": "erledigt"})
# "In Arbeit" reicht noch nicht, "Wartet" gibt frei
anna.patch(f"/api/kanban/aufgaben/{a['id']}", json={"status": "arbeit"})
assert find(board(anna, pid), "Bilder aufhängen")["blocked"] is True
anna.patch(f"/api/kanban/aufgaben/{a['id']}", json={"status": "wartet"})
data = anna.patch(f"/api/kanban/aufgaben/{b['id']}", json={"status": "arbeit"}).json()
assert find(data, "Bilder aufhängen")["blocked"] is False