19 lines
646 B
TypeScript
19 lines
646 B
TypeScript
import { render, screen } from "@testing-library/react";
|
|
import userEvent from "@testing-library/user-event";
|
|
import { describe, expect, it } from "vitest";
|
|
import { Workbench } from "../../src/components/Workbench";
|
|
|
|
describe("Flow Workbench", () => {
|
|
it("runs the visible pipeline and exposes its result", async () => {
|
|
const user = userEvent.setup();
|
|
render(<Workbench />);
|
|
|
|
await user.click(
|
|
screen.getByRole("button", { name: "Run complete pipeline" }),
|
|
);
|
|
|
|
expect(screen.getByRole("status")).toHaveTextContent("Completed 2 stages");
|
|
expect(screen.getByRole("cell", { name: "Ada" })).toBeVisible();
|
|
});
|
|
});
|