From fa2183f04e89de4d8afaac4b5084e7735271eca4 Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Wed, 13 May 2026 00:16:44 +0200 Subject: [PATCH] Test: Assert initial and enabled state of apply path road button --- tests/unit/path-inspector.integration.test.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/path-inspector.integration.test.tsx b/tests/unit/path-inspector.integration.test.tsx index 93c2e6b0..ba3b32ff 100644 --- a/tests/unit/path-inspector.integration.test.tsx +++ b/tests/unit/path-inspector.integration.test.tsx @@ -143,6 +143,7 @@ describe("Path inspector", () => { expect(screen.getByTestId("path-road-height-offset")).toHaveValue(0.03); expect(screen.getByTestId("path-road-terrain-conform")).toBeChecked(); expect(screen.getByTestId("path-road-material")).toHaveValue(""); + expect(screen.getByTestId("apply-path-road-to-terrain")).toBeDisabled(); expect(screen.getByTestId("path-point-0-x")).toHaveValue(-1); expect(screen.getByTestId("path-point-1-x")).toHaveValue(1); @@ -170,6 +171,7 @@ describe("Path inspector", () => { } }); fireEvent.click(screen.getByTestId("path-road-enabled")); + expect(screen.getByTestId("apply-path-road-to-terrain")).not.toBeDisabled(); fireEvent.change(screen.getByTestId("path-road-width"), { target: { value: "3.5"