You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
883 B

import { describe, expect, it } from "vitest";
import {
QUOTE_ACCENT,
QUOTE_REQUIRED,
QUOTE_SECTION,
QUOTE_TITLE,
quoteAddRowCls,
quoteCtaCls,
quoteInputCls,
} from "@/components/quote/quote-form-chrome";
describe("quote-form-chrome tokens", () => {
it("局部主色与标题色对齐视觉规范", () => {
expect(QUOTE_ACCENT).toBe("#1890FF");
expect(QUOTE_TITLE).toBe("#1F2937");
expect(QUOTE_SECTION).toBe("#4B5563");
expect(QUOTE_REQUIRED).toBe("#EF4444");
});
it("输入/CTA/添加行 class 含关键样式关键字", () => {
expect(quoteInputCls).toContain("h-10");
expect(quoteInputCls).toContain("px-3");
expect(quoteInputCls).toContain("#1890FF");
expect(quoteCtaCls).toContain("min-w-[48px]");
expect(quoteCtaCls).toContain("bg-[#1890FF]");
expect(quoteAddRowCls).toContain("hover:-translate-y-0.5");
});
});