25 lines
791 B
TypeScript
25 lines
791 B
TypeScript
import { describe, expect, it } from "vitest";
|
|
import "@testing-library/jest-dom/vitest";
|
|
import { renderWithProviders as render } from "../utils/test-utils";
|
|
import { TemplateCustomizeDialog } from "../../app/(app)/create/components/TemplateCustomizeDialog";
|
|
|
|
describe("TemplateCustomizeDialog", () => {
|
|
it("uses the same blurred yellow backdrop as other create-flow Create modals", () => {
|
|
render(
|
|
<TemplateCustomizeDialog
|
|
isOpen
|
|
templateTitle="Consensus"
|
|
valuesCount={3}
|
|
cardsCount={10}
|
|
initialTitle=""
|
|
initialDescription=""
|
|
initialLocation=""
|
|
onClose={() => undefined}
|
|
onContinue={() => undefined}
|
|
/>,
|
|
);
|
|
|
|
expect(document.querySelector(".backdrop-blur-md")).toBeInTheDocument();
|
|
});
|
|
});
|