ui/phase-15: update game-shell-inspector e2e for new production component
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.
This commit is contained in:
@@ -191,9 +191,15 @@ test("clicking a planet on the map shows it in the desktop inspector tab", async
|
|||||||
await expect(
|
await expect(
|
||||||
sidebar.getByTestId("inspector-planet-field-industry"),
|
sidebar.getByTestId("inspector-planet-field-industry"),
|
||||||
).toContainText("700");
|
).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(
|
await expect(
|
||||||
sidebar.getByTestId("inspector-planet-field-production"),
|
sidebar.getByTestId("inspector-planet-field-production"),
|
||||||
).toContainText("drive");
|
).toHaveCount(0);
|
||||||
});
|
});
|
||||||
|
|
||||||
test("clicking a planet on mobile raises the bottom-sheet, close clears it", async ({
|
test("clicking a planet on mobile raises the bottom-sheet, close clears it", async ({
|
||||||
|
|||||||
Reference in New Issue
Block a user