mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #6763] [Issue]: the initiative style browser test fails when the rats down Ada before her first turn #3787
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#3787
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
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
pnpm regression:ui e2e/game-combat-director.e2e.ts --project=desktop-chromium --workers=1a few times.await expect(spade).toBeVisible({ timeout: 60000 }).Environment
72cdaeb46Logs, screenshots, or video
The failing run's error context is quoted above.
Additional context
The start route always picks a random seed (
resolveTacticalStartPreferencesis 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:initiativeModifier0, with the variant'spool.minat 0), so both open at 3 or Ada higher.Template check
Please uncheck (untick) the box below before submitting so we know you read the template. It is intentionally pre-checked: