Test: Assert initial and enabled state of apply path road button

This commit is contained in:
2026-05-13 00:16:44 +02:00
parent cd481501f9
commit fa2183f04e

View File

@@ -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"