Refresh HiveGrid Cloud reference snapshot
This commit is contained in:
1 parent
5e99e14772
commit
7f88026f79
5955 files changed
+1177325
-188362
No files matched your search
+18
@@ -0,0 +1,18 @@
|
||||
import { readFileSync } from "node:fs";
|
||||
import path from "node:path";
|
||||
|
||||
import { describe, expect, it } from "vitest";
|
||||
|
||||
describe("carousel accessibility copy", () => {
|
||||
it("uses translation keys for ARIA role descriptions", () => {
|
||||
const source = readFileSync(
|
||||
path.resolve(process.cwd(), "apps/web/app/components/ui/carousel.tsx"),
|
||||
"utf8",
|
||||
);
|
||||
|
||||
expect(source).toContain('aria-roledescription={t("shared.carousel")}');
|
||||
expect(source).toContain('aria-roledescription={t("shared.slide")}');
|
||||
expect(source).not.toContain('aria-roledescription="carousel"');
|
||||
expect(source).not.toContain('aria-roledescription="slide"');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user