[GH-ISSUE #2028] [Issue]: World Maps browser suite has drifted from the Engine (25/34 fail) and isn't run in CI #1880

Closed
opened 2026-11-07 16:37:22 +07:00 by bsakaguchi · 0 comments
Owner

Originally created by @SpicyMarinara on GitHub (Nov 1, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2028

Originally assigned to: @SpicyMarinara on GitHub.

Summary

The World Maps package browser suite (tests/spatial-context.e2e.ts) has drifted from the current Engine. On desktop-chromium, 25 of its 34 tests fail. No CI workflow runs this suite, so nothing flagged the breakage as the Engine changed.

Affected package

hierarchical-maps (World Maps): its browser test suite only. No user-facing defect has been established.

Expected behavior

node scripts/run-package-browser-tests.mjs hierarchical-maps tests/spatial-context.e2e.ts passes against current Engine staging, and a CI workflow runs it, as Calls, LTM, Noodle and Otome Hearth already have.

Actual behavior

25 failed, 9 passed (27 min). The failures have several separate causes, not one:

  • Stale expectations, for example the header expecting v1.3.6 while the package is 1.7.x/1.8.0, and the Tracker Agents entry selector [data-chat-agent-entry="hierarchical-maps"].
  • Test-body timeouts. A first cleanup call in a finally block then reports them as apiRequestContext.delete/get/patch: Test timeout …, which hides the real failure. This was traced for one test in #2026: no Engine request hung. The body waited behind an overlay until the test timed out, then the closed context made the cleanup DELETE throw.
  • Prompt-parity and movement assertions that no longer match the Engine's current generation text.

Per test (run from #2026's branch, Engine staging bd5cd986d2):

  • World Maps activates inside its Tracker Agents entry (line 900): Error: expect(locator).toBeVisible() failed
  • global World Maps home activates and opens the current chat map (line 983): Error: expect(locator).toContainText(expected) failed
  • Map templates are created outside chats and copied into Roleplay (line 1678): Test timeout of 90000ms exceeded.
  • detached chat maps create distinguishable shared-world copies and expose plain-language ownership (line 1909): Test timeout of 90000ms exceeded.
  • global World Maps home protects templates after a settings load failure (line 2011): Error: expect(locator).toBeVisible() failed
  • global World Maps home edits the current map location types (line 2079): Test timeout of 90000ms exceeded.
  • missing location lore explains the problem without exposing opaque entry IDs (line 2873): Test timeout of 90000ms exceeded.
  • portable map import refreshes host lorebooks and linked navigation without reload (line 2955): Error: expect(received).toMatchObject(expected)
  • portable lore refresh reaches the host from a template library editor (line 3175): Test timeout of 120000ms exceeded.
  • portable lore refresh reaches the host from a shared-world library editor (line 3175): Test timeout of 120000ms exceeded.
  • opening linked lore protects unsaved map edits (line 3391): Error: expect(locator).toBeVisible() failed
  • Deep maps and long labels remain keyboard and touch operable across themes (line 3638): Error: expect(received).toBe(expected) // Object.is equality
  • Map loading retry and stale-write recovery preserve the working copy (line 3764): Error: expect(locator).toBeVisible() failed
  • AI map builder previews a validated local draft before save (line 3887): Test timeout of 150000ms exceeded.
  • installed World Maps package keeps the editor canvas square (line 4580): Test timeout of 60000ms exceeded.
  • AI map expansion preserves a campaign map and its current location (line 4702): Test timeout of 150000ms exceeded.
  • Game setup stages a saved map template as a Game-owned working copy (line 5202): Test timeout of 120000ms exceeded.
  • Game setup links a selected shared world before Start without changing its canonical record (line 5263): Test timeout of 120000ms exceeded.
  • Game setup stages an optional hierarchical draft as the sole world map before Start (line 5306): Test timeout of 120000ms exceeded.
  • Game setup can skip a generated map without persisting it (line 5465): Test timeout of 120000ms exceeded.
  • Roleplay stages story movement separately from prose and recovers stale turns (line 5495): Error: Collapsed desktop map bar should be opaque
  • Game screen gives the hierarchical World map precedence over the session Local map (line 6048): Error: Game world-map set-destination control must be visible
  • Roleplay and Game generation, retry, and continuation share historical prompt parity (line 6334): Error: Roleplay normal generation must save an assistant role
  • Roleplay generated turns cannot move the hierarchical location without an owner transition (line 6897): Error: expect(received).toContain(expected) // indexOf
  • Game generated map updates remain local beneath the hierarchical world location (line 7003): Error: expect(received).toContain(expected) // indexOf

Steps to reproduce

  1. In a Marinara-Agents checkout, set MARINARA_ENGINE_ROOT to a Marinara Engine checkout on staging.
  2. node scripts/run-package-browser-tests.mjs hierarchical-maps tests/spatial-context.e2e.ts --project desktop-chromium --reporter=line
  3. See 25 failures.

Environment

  • Marinara Engine version: staging at bd5cd986d2
  • Package version: World Maps 1.8.0 (#2026), same failures on 1.7.1
  • Install type: source
  • OS + version: macOS (Darwin 25.3)
  • Browser or app shell: Playwright desktop Chromium

Logs, screenshots, or video

Full local log available on request. Each failure has a trace in test-results/.

Additional context

  • #2026 seeds chatWindowIntroDismissed and chatHelpSeenModes in every UI state in this file. That stops the chat-window intro and Roleplay Help from covering the page, as the other package suites already do, but it does not change these 25 failures.
  • Suggested follow-ups:
    1. Refresh the stale expectations against the current Engine.
    2. Set use.actionTimeout in tests/playwright.package.config.ts, so a blocked click fails with its own error instead of a masked cleanup timeout. That config is shared, so this needs checking against the other suites.
    3. Add a hierarchical-maps-browser.yml workflow like the others.

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.

🤖 Generated with Claude Code

Originally created by @SpicyMarinara on GitHub (Nov 1, 2026). Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Agents/issues/2028 Originally assigned to: @SpicyMarinara on GitHub. ## Summary The World Maps package browser suite (`tests/spatial-context.e2e.ts`) has drifted from the current Engine. On `desktop-chromium`, 25 of its 34 tests fail. No CI workflow runs this suite, so nothing flagged the breakage as the Engine changed. ## Affected package `hierarchical-maps` (World Maps): its browser test suite only. No user-facing defect has been established. ## Expected behavior `node scripts/run-package-browser-tests.mjs hierarchical-maps tests/spatial-context.e2e.ts` passes against current Engine `staging`, and a CI workflow runs it, as Calls, LTM, Noodle and Otome Hearth already have. ## Actual behavior 25 failed, 9 passed (27 min). The failures have several separate causes, not one: - Stale expectations, for example the header expecting `v1.3.6` while the package is 1.7.x/1.8.0, and the Tracker Agents entry selector `[data-chat-agent-entry="hierarchical-maps"]`. - Test-body timeouts. A first cleanup call in a `finally` block then reports them as `apiRequestContext.delete/get/patch: Test timeout …`, which hides the real failure. This was traced for one test in #2026: no Engine request hung. The body waited behind an overlay until the test timed out, then the closed context made the cleanup DELETE throw. - Prompt-parity and movement assertions that no longer match the Engine's current generation text. Per test (run from #2026's branch, Engine `staging` `bd5cd986d2`): - `World Maps activates inside its Tracker Agents entry` (line 900): Error: expect(locator).toBeVisible() failed - `global World Maps home activates and opens the current chat map` (line 983): Error: expect(locator).toContainText(expected) failed - `Map templates are created outside chats and copied into Roleplay` (line 1678): Test timeout of 90000ms exceeded. - `detached chat maps create distinguishable shared-world copies and expose plain-language ownership` (line 1909): Test timeout of 90000ms exceeded. - `global World Maps home protects templates after a settings load failure` (line 2011): Error: expect(locator).toBeVisible() failed - `global World Maps home edits the current map location types` (line 2079): Test timeout of 90000ms exceeded. - `missing location lore explains the problem without exposing opaque entry IDs` (line 2873): Test timeout of 90000ms exceeded. - `portable map import refreshes host lorebooks and linked navigation without reload` (line 2955): Error: expect(received).toMatchObject(expected) - `portable lore refresh reaches the host from a template library editor` (line 3175): Test timeout of 120000ms exceeded. - `portable lore refresh reaches the host from a shared-world library editor` (line 3175): Test timeout of 120000ms exceeded. - `opening linked lore protects unsaved map edits` (line 3391): Error: expect(locator).toBeVisible() failed - `Deep maps and long labels remain keyboard and touch operable across themes` (line 3638): Error: expect(received).toBe(expected) // Object.is equality - `Map loading retry and stale-write recovery preserve the working copy` (line 3764): Error: expect(locator).toBeVisible() failed - `AI map builder previews a validated local draft before save` (line 3887): Test timeout of 150000ms exceeded. - `installed World Maps package keeps the editor canvas square` (line 4580): Test timeout of 60000ms exceeded. - `AI map expansion preserves a campaign map and its current location` (line 4702): Test timeout of 150000ms exceeded. - `Game setup stages a saved map template as a Game-owned working copy` (line 5202): Test timeout of 120000ms exceeded. - `Game setup links a selected shared world before Start without changing its canonical record` (line 5263): Test timeout of 120000ms exceeded. - `Game setup stages an optional hierarchical draft as the sole world map before Start` (line 5306): Test timeout of 120000ms exceeded. - `Game setup can skip a generated map without persisting it` (line 5465): Test timeout of 120000ms exceeded. - `Roleplay stages story movement separately from prose and recovers stale turns` (line 5495): Error: Collapsed desktop map bar should be opaque - `Game screen gives the hierarchical World map precedence over the session Local map` (line 6048): Error: Game world-map set-destination control must be visible - `Roleplay and Game generation, retry, and continuation share historical prompt parity` (line 6334): Error: Roleplay normal generation must save an assistant role - `Roleplay generated turns cannot move the hierarchical location without an owner transition` (line 6897): Error: expect(received).toContain(expected) // indexOf - `Game generated map updates remain local beneath the hierarchical world location` (line 7003): Error: expect(received).toContain(expected) // indexOf ## Steps to reproduce 1. In a Marinara-Agents checkout, set `MARINARA_ENGINE_ROOT` to a Marinara Engine checkout on `staging`. 2. `node scripts/run-package-browser-tests.mjs hierarchical-maps tests/spatial-context.e2e.ts --project desktop-chromium --reporter=line` 3. See 25 failures. ## Environment - Marinara Engine version: `staging` at `bd5cd986d2` - Package version: World Maps 1.8.0 (#2026), same failures on 1.7.1 - Install type: source - OS + version: macOS (Darwin 25.3) - Browser or app shell: Playwright desktop Chromium ## Logs, screenshots, or video Full local log available on request. Each failure has a trace in `test-results/`. ## Additional context - #2026 seeds `chatWindowIntroDismissed` and `chatHelpSeenModes` in every UI state in this file. That stops the chat-window intro and Roleplay Help from covering the page, as the other package suites already do, but it does not change these 25 failures. - Suggested follow-ups: 1. Refresh the stale expectations against the current Engine. 2. Set `use.actionTimeout` in `tests/playwright.package.config.ts`, so a blocked click fails with its own error instead of a masked cleanup timeout. That config is shared, so this needs checking against the other suites. 3. Add a `hierarchical-maps-browser.yml` workflow like the others. ## 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. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
bsakaguchi 2026-11-07 16:37:22 +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-Agents#1880
No description provided.