Opinion Wars: week-long two-faction battles on posts #173

Merged
retoor merged 2 commits from blindxfish/devplacepy:OpinionWar into master 2026-08-22 07:42:15 +02:00
2 changed files with 2 additions and 3 deletions
Showing only changes of commit 50baf9d6f1 - Show all commits
+1 -1
View File
@@ -125,7 +125,7 @@ coins, ended battle) answers `400` as `{{"error": {{"status": 400, "message": ".
encoding="form",
params=[
field("uid", "path", "string", True, SAMPLE_WAR["uid"], "Battle uid."),
field("faction", "body", "enum", True, "a", "Which side to join or switch to.", options=["a", "b"]),
field("faction", "form", "enum", True, "a", "Which side to join or switch to.", options=["a", "b"]),
],
sample_response={"ok": True, "redirect": SAMPLE_WAR["post_url"], "data": {"war": SAMPLE_WAR}},
),
+1 -2
View File
@@ -126,8 +126,7 @@ def test_create_join_and_fight_flow(alice):
arg=hp_before,
)
expect(card.locator("[data-war-fight]")).to_be_disabled()
ticker_first = card.locator("[data-war-ticker] .war-event").first
expect(ticker_first).to_contain_text("dealt")
expect(card.locator("[data-war-ticker]")).to_contain_text("dealt")
def test_switch_faction_shows_confirm(alice):