Add interactive component catalog and browser regression tests

This commit is contained in:
2026-11-20 00:57:23 +01:00
parent 443cbbc23c
commit 6206c687ad
82 changed files with 799 additions and 166 deletions
+8 -3
View File
@@ -13,8 +13,13 @@ const required = [
"frost-accordion",
"frost-table",
"frost-spinner",
"#theme-toggle",
"#menu-trigger",
"id=\"theme-toggle\"",
"id=\"menu-trigger\"",
"id=\"component-search\"",
"data-component=\"buttons\"",
"data-component=\"modal\"",
"data-copy-html",
"catalog-a11y",
];
const errors = required.filter((value) => !html.includes(value)).map((value) => `examples/index.html: missing demo marker ${value}`);
if (!html.includes("aria-selected") || !html.includes("aria-expanded")) errors.push("examples/index.html: interactive ARIA state markers are missing");
@@ -22,5 +27,5 @@ if (errors.length) {
console.error(errors.join("\n"));
process.exitCode = 1;
} else {
console.log(`Checked ${required.length} utility, component, and interaction markers in examples/index.html.`);
console.log(`Checked ${required.length} catalog, component, and interaction markers in examples/index.html.`);
}