[GH-ISSUE #6763] [Issue]: the initiative style browser test fails when the rats down Ada before her first turn #3787

Closed
opened 2026-10-21 06:07:23 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @kolacheee on GitHub (Sep 27, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6763

Originally assigned to: @kolacheee on GitHub.

Summary

The browser test "Combat director ruleset: an attack is made in a style where initiative is a number attacks move" (e2e/game-combat-director.e2e.ts, added in #6741) fails now and then. It waits for Ada's menu, but the fight's seed is random. When the Grave-rat swarm opens ahead of her and lands a spending gnaw, that one blow can take all four boxes of her harm track, and the party loses before her first turn.

Expected behavior

The test always reaches Ada's turn and checks the style step.

Actual behavior

From a failed run's page snapshot: "Initiative: Grave-rat swarm 5, Ada 3", then "Grave-rat swarm attacks Ada with Gnaw (Telling blow)... a hit", then "Ada takes 5 tearing damage, and is on 0 of 4", then "Defeat... Your party has fallen." The test times out after 60 seconds waiting for the Spade button.

Steps to reproduce

  1. Run pnpm regression:ui e2e/game-combat-director.e2e.ts --project=desktop-chromium --workers=1 a few times.
  2. Some runs fail at await expect(spade).toBeVisible({ timeout: 60000 }).

Environment

  • Marinara Engine version: staging 72cdaeb46
  • Install type: source
  • OS + version: Fedora, and CI runners
  • Browser or app shell: Playwright Chromium

Logs, screenshots, or video

The failing run's error context is quoted above.

Additional context

The start route always picks a random seed (resolveTacticalStartPreferences is given no request seed, and a setup seed is ignored), so the test cannot pin the dice. The fix is in the test's own copy of Gravewatch:

  • The rats throw no initiative dice (initiativeModifier 0, with the variant's pool.min at 0), so both open at 3 or Ada higher.
  • A tie goes to the larger pool, so Ada always acts first.

Template check

Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked:

  • I DID NOT read this template and provide the requested details.
Originally created by @kolacheee on GitHub (Sep 27, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/6763 Originally assigned to: @kolacheee on GitHub. ## Summary The browser test "Combat director ruleset: an attack is made in a style where initiative is a number attacks move" (`e2e/game-combat-director.e2e.ts`, added in #6741) fails now and then. It waits for Ada's menu, but the fight's seed is random. When the Grave-rat swarm opens ahead of her and lands a spending gnaw, that one blow can take all four boxes of her harm track, and the party loses before her first turn. ## Expected behavior The test always reaches Ada's turn and checks the style step. ## Actual behavior From a failed run's page snapshot: "Initiative: Grave-rat swarm 5, Ada 3", then "Grave-rat swarm attacks Ada with Gnaw (Telling blow)... a hit", then "Ada takes 5 tearing damage, and is on 0 of 4", then "Defeat... Your party has fallen." The test times out after 60 seconds waiting for the Spade button. ## Steps to reproduce 1. Run `pnpm regression:ui e2e/game-combat-director.e2e.ts --project=desktop-chromium --workers=1` a few times. 2. Some runs fail at `await expect(spade).toBeVisible({ timeout: 60000 })`. ## Environment - Marinara Engine version: staging 72cdaeb46 - Install type: source - OS + version: Fedora, and CI runners - Browser or app shell: Playwright Chromium ## Logs, screenshots, or video The failing run's error context is quoted above. ## Additional context The start route always picks a random seed (`resolveTacticalStartPreferences` is given no request seed, and a setup seed is ignored), so the test cannot pin the dice. The fix is in the test's own copy of Gravewatch: - The rats throw no initiative dice (`initiativeModifier` 0, with the variant's `pool.min` at 0), so both open at 3 or Ada higher. - A tie goes to the larger pool, so Ada always acts first. ## Template check Please **uncheck (untick)** the box below before submitting so we know you read the template. It is intentionally pre-checked: - [ ] I DID NOT read this template and provide the requested details.
bsakaguchi 2026-10-21 06:07:23 +07:00
  • closed this issue
  • added the
    bug
    label
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#3787
No description provided.