From 42731022fbc4c2ae5a942702e1293d046598ace1 Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Sat, 9 May 2026 16:05:50 +0200 Subject: [PATCH] ui/phase-15: update game-shell-inspector e2e for new production component MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The desktop spec previously asserted the read-only `inspector-planet- field-production` row for an owned planet. Phase 15 replaced that row with the interactive production component on the local-planet branch — the assertion now confirms the component is mounted and the legacy field is absent. --- ui/frontend/tests/e2e/game-shell-inspector.spec.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/ui/frontend/tests/e2e/game-shell-inspector.spec.ts b/ui/frontend/tests/e2e/game-shell-inspector.spec.ts index 47b0f2e..eee38c0 100644 --- a/ui/frontend/tests/e2e/game-shell-inspector.spec.ts +++ b/ui/frontend/tests/e2e/game-shell-inspector.spec.ts @@ -191,9 +191,15 @@ test("clicking a planet on the map shows it in the desktop inspector tab", async await expect( sidebar.getByTestId("inspector-planet-field-industry"), ).toContainText("700"); + // Phase 15: owned planets render the interactive production component + // in place of the static "current production" row; the read-only + // row is now scoped to non-local planets. + await expect( + sidebar.getByTestId("inspector-planet-production"), + ).toBeVisible(); await expect( sidebar.getByTestId("inspector-planet-field-production"), - ).toContainText("drive"); + ).toHaveCount(0); }); test("clicking a planet on mobile raises the bottom-sheet, close clears it", async ({