From 1c1c9fc9c872954a944993fecc044e1579d56513 Mon Sep 17 00:00:00 2001 From: shrimbly Date: Tue, 3 Mar 2026 19:52:16 +1300 Subject: [PATCH] test: update empty state tests for full-bleed nodes Replace dashed-border selector assertions with text-based assertions since full-bleed nodes use a background fill instead of a dashed border for their empty state. Co-Authored-By: Claude Opus 4.6 --- src/components/__tests__/GenerateImageNode.test.tsx | 7 +++---- src/components/__tests__/GenerateVideoNode.test.tsx | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/components/__tests__/GenerateImageNode.test.tsx b/src/components/__tests__/GenerateImageNode.test.tsx index 23e61336..fc695d56 100644 --- a/src/components/__tests__/GenerateImageNode.test.tsx +++ b/src/components/__tests__/GenerateImageNode.test.tsx @@ -237,15 +237,14 @@ describe("GenerateImageNode", () => { expect(screen.getByText("Run to generate")).toBeInTheDocument(); }); - it("should render a dashed border placeholder when no output image", () => { - const { container } = render( + it("should render empty state placeholder when no output image", () => { + render( ); - const placeholder = container.querySelector(".border-dashed"); - expect(placeholder).toBeInTheDocument(); + expect(screen.getByText("Run to generate")).toBeInTheDocument(); }); }); diff --git a/src/components/__tests__/GenerateVideoNode.test.tsx b/src/components/__tests__/GenerateVideoNode.test.tsx index eb5294cf..92fe123e 100644 --- a/src/components/__tests__/GenerateVideoNode.test.tsx +++ b/src/components/__tests__/GenerateVideoNode.test.tsx @@ -307,15 +307,14 @@ describe("GenerateVideoNode", () => { expect(screen.getByText("Run to generate")).toBeInTheDocument(); }); - it("should render a dashed border placeholder when no output video", () => { - const { container } = render( + it("should render empty state placeholder when no output video", () => { + render( ); - const placeholder = container.querySelector(".border-dashed"); - expect(placeholder).toBeInTheDocument(); + expect(screen.getByText("Run to generate")).toBeInTheDocument(); }); });