Browse Source

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 <noreply@anthropic.com>
handoff-20260429-1057
shrimbly 4 months ago
parent
commit
1c1c9fc9c8
  1. 7
      src/components/__tests__/GenerateImageNode.test.tsx
  2. 7
      src/components/__tests__/GenerateVideoNode.test.tsx

7
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(
<TestWrapper>
<GenerateImageNode {...createNodeProps({ status: "idle", outputImage: null })} />
</TestWrapper>
);
const placeholder = container.querySelector(".border-dashed");
expect(placeholder).toBeInTheDocument();
expect(screen.getByText("Run to generate")).toBeInTheDocument();
});
});

7
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(
<TestWrapper>
<GenerateVideoNode {...createNodeProps({ status: "idle", outputVideo: null })} />
</TestWrapper>
);
const placeholder = container.querySelector(".border-dashed");
expect(placeholder).toBeInTheDocument();
expect(screen.getByText("Run to generate")).toBeInTheDocument();
});
});

Loading…
Cancel
Save