Add interactive component catalog and browser regression tests
This commit is contained in:
@@ -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.`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user