Run lint and prettier
CI Pipeline / test (20) (pull_request) Successful in 7m32s
CI Pipeline / test (18) (pull_request) Successful in 7m34s
CI Pipeline / e2e (chromium) (pull_request) Successful in 3m13s
CI Pipeline / e2e (firefox) (pull_request) Successful in 3m46s
CI Pipeline / e2e (webkit) (pull_request) Successful in 3m57s
CI Pipeline / performance (pull_request) Successful in 3m41s
CI Pipeline / visual-regression (pull_request) Failing after 8m6s
CI Pipeline / storybook (pull_request) Successful in 1m31s
CI Pipeline / lint (pull_request) Successful in 1m6s
CI Pipeline / build (pull_request) Successful in 1m24s

This commit is contained in:
adilallo
2025-09-03 14:49:37 -06:00
parent ce53de9003
commit b265aace57
8 changed files with 26 additions and 26 deletions
+8 -8
View File
@@ -29,21 +29,21 @@ describe("SectionHeader Component", () => {
it("applies variant classes correctly", () => {
const { rerender } = render(
<SectionHeader title="Default Header" variant="default" />
<SectionHeader title="Default Header" variant="default" />,
);
let titleContainer = screen
.getByRole("heading", { level: 2 })
.closest("div");
expect(titleContainer).toHaveClass(
"lg:w-[369px]",
"lg:h-[var(--spacing-scale-120)]"
"lg:h-[var(--spacing-scale-120)]",
);
rerender(<SectionHeader title="Multi-line Header" variant="multi-line" />);
titleContainer = screen.getByRole("heading", { level: 2 }).closest("div");
expect(titleContainer).toHaveClass(
"lg:w-[50%]",
"lg:h-[var(--spacing-scale-120)]"
"lg:h-[var(--spacing-scale-120)]",
);
});
@@ -100,7 +100,7 @@ describe("SectionHeader Component", () => {
"flex",
"flex-col",
"lg:flex-row",
"lg:justify-between"
"lg:justify-between",
);
});
@@ -139,7 +139,7 @@ describe("SectionHeader Component", () => {
"text-[28px]",
"sm:text-[32px]",
"lg:text-[32px]",
"xl:text-[40px]"
"xl:text-[40px]",
);
});
@@ -151,7 +151,7 @@ describe("SectionHeader Component", () => {
"leading-[36px]",
"sm:leading-[40px]",
"lg:leading-[40px]",
"xl:leading-[52px]"
"xl:leading-[52px]",
);
});
@@ -179,7 +179,7 @@ describe("SectionHeader Component", () => {
"text-[18px]",
"sm:text-[18px]",
"lg:text-[24px]",
"xl:text-[32px]"
"xl:text-[32px]",
);
});
@@ -192,7 +192,7 @@ describe("SectionHeader Component", () => {
"text-[#484848]",
"sm:text-[var(--color-content-default-tertiary)]",
"lg:text-[var(--color-content-default-tertiary)]",
"xl:text-[var(--color-content-default-tertiary)]"
"xl:text-[var(--color-content-default-tertiary)]",
);
});
});