diff --git a/packages/calcite-components/src/tests/commonTests/themed.ts b/packages/calcite-components/src/tests/commonTests/themed.ts index e2045c7fb90..5667ec25a84 100644 --- a/packages/calcite-components/src/tests/commonTests/themed.ts +++ b/packages/calcite-components/src/tests/commonTests/themed.ts @@ -174,7 +174,7 @@ export function themed(componentTestSetup: ComponentTestSetup, tokens: Component }); } -type ContextSelectByAttr = { attribute: string; value: string | RegExp }; +type ContextSelectByAttr = { attribute: string; value: string }; type CSSProp = Extract; @@ -303,16 +303,13 @@ async function assertThemedProps(page: E2EPage, options: TestTarget): Promise { const { attribute, value } = context as { attribute: string; - value: string | RegExp; + value: string; }; if (node.nodeType === 1) { const attr = (node as Element).getAttribute(attribute); if (typeof value === "string" && attr === value) { return node; } - if (value instanceof RegExp && attr && value.test(attr)) { - return node ?? undefined; - } if (attr === value) { return node; }