test(ui): F8-08 e2e — match new 1-dec percent + 3-dec float formatting
Tests · UI / test (pull_request) Waiting to run
Tests · UI / test (push) Successful in 2m50s

sciences.spec.ts: `sciences-cell-drive` now reads "25.0" (was "25") because
formatPercent always emits one fractional digit.

ship-classes.spec.ts: `ship-classes-cell-drive` now reads "1.000" (was "1")
because formatFloat always emits three fractional digits.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Ilia Denisov
2026-05-27 11:14:28 +02:00
parent b31d9f4c45
commit ed4e2f58a1
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -293,7 +293,7 @@ test("create / list / delete ship class via the table + calculator", async ({
await expect(page.getByTestId("ship-classes-table")).toBeVisible();
const row = page.getByTestId("ship-classes-row");
await expect(row).toHaveAttribute("data-name", "Drone");
await expect(page.getByTestId("ship-classes-cell-drive")).toHaveText("1");
await expect(page.getByTestId("ship-classes-cell-drive")).toHaveText("1.000");
// The auto-sync round-trip lands as applied.
await page.getByTestId("sidebar-tab-order").click();