Skip to content

Commit a710048

Browse files
committed
fix: handle CSSUnparsedValue structure variation in theming test
1 parent 70d42b9 commit a710048

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/theming/__integ__/tokens.test.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ class ColorTokensMosaikPage extends BasePageObject {
1515
for (const [prop, value] of (document.body as any).computedStyleMap()) {
1616
// Custom Property
1717
if (prop.startsWith('--')) {
18-
result[prop] = value[0][0].trim();
18+
// Try legacy nested array structure first (older Chrome), fallback to toString()
19+
const legacyValue = value[0]?.[0];
20+
result[prop] = typeof legacyValue === 'string' ? legacyValue.trim() : value.toString().trim();
1921
}
2022
}
2123
return result;

0 commit comments

Comments
 (0)