From ed4e2f58a16a9180183185339ff974079b073e27 Mon Sep 17 00:00:00 2001 From: Ilia Denisov Date: Wed, 27 May 2026 11:14:28 +0200 Subject: [PATCH] =?UTF-8?q?test(ui):=20F8-08=20e2e=20=E2=80=94=20match=20n?= =?UTF-8?q?ew=201-dec=20percent=20+=203-dec=20float=20formatting?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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) --- ui/frontend/tests/e2e/sciences.spec.ts | 2 +- ui/frontend/tests/e2e/ship-classes.spec.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/frontend/tests/e2e/sciences.spec.ts b/ui/frontend/tests/e2e/sciences.spec.ts index 6e004ae..ffdec61 100644 --- a/ui/frontend/tests/e2e/sciences.spec.ts +++ b/ui/frontend/tests/e2e/sciences.spec.ts @@ -319,7 +319,7 @@ test("create / list / delete science via the table + designer", async ({ await expect(page.getByTestId("sciences-table")).toBeVisible(); const row = page.getByTestId("sciences-row"); await expect(row).toHaveAttribute("data-name", "FirstStep"); - await expect(page.getByTestId("sciences-cell-drive")).toHaveText("25"); + await expect(page.getByTestId("sciences-cell-drive")).toHaveText("25.0"); // The auto-sync round-trip lands as applied. await page.getByTestId("sidebar-tab-order").click(); diff --git a/ui/frontend/tests/e2e/ship-classes.spec.ts b/ui/frontend/tests/e2e/ship-classes.spec.ts index cf42edc..5742f65 100644 --- a/ui/frontend/tests/e2e/ship-classes.spec.ts +++ b/ui/frontend/tests/e2e/ship-classes.spec.ts @@ -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();