Opinion Wars: week-long two-faction battles on posts #173
@@ -125,7 +125,7 @@ coins, ended battle) answers `400` as `{{"error": {{"status": 400, "message": ".
|
|||||||
encoding="form",
|
encoding="form",
|
||||||
params=[
|
params=[
|
||||||
field("uid", "path", "string", True, SAMPLE_WAR["uid"], "Battle uid."),
|
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}},
|
sample_response={"ok": True, "redirect": SAMPLE_WAR["post_url"], "data": {"war": SAMPLE_WAR}},
|
||||||
),
|
),
|
||||||
|
|||||||
@@ -126,8 +126,7 @@ def test_create_join_and_fight_flow(alice):
|
|||||||
arg=hp_before,
|
arg=hp_before,
|
||||||
)
|
)
|
||||||
expect(card.locator("[data-war-fight]")).to_be_disabled()
|
expect(card.locator("[data-war-fight]")).to_be_disabled()
|
||||||
ticker_first = card.locator("[data-war-ticker] .war-event").first
|
expect(card.locator("[data-war-ticker]")).to_contain_text("dealt")
|
||||||
expect(ticker_first).to_contain_text("dealt")
|
|
||||||
|
|
||||||
|
|
||||||
def test_switch_faction_shows_confirm(alice):
|
def test_switch_faction_shows_confirm(alice):
|
||||||
|
|||||||
Reference in New Issue
Block a user