The Omnibar guard test pins its glyphs' own sizing

Co-authored-by: Manjunath Paparaju <[email protected]>
This commit is contained in:
Sameh KhamisandManjunath Paparaju committed 2026-11-19 02:33:39 -08:00
1 parent be9d772b4d
commit 7dd27d4ff7
1 file changed
+4 -1
+4 -1
View File
@@ -20,7 +20,10 @@ test('the Omnibar hand-writes no button; each is a UiButton', () => {
test('the Omnibar hand-writes no Material glyph; each is a UiIcon', () => {
assert.deepEqual(template.match(/material-symbols-outlined/g) ?? [], []);
assert.equal(template.match(/<UiIcon\b/g)?.length, 3);
const icons = template.match(/<UiIcon\b[^>]*>/g) ?? [];
assert.equal(icons.length, 3);
// Without it the kit writes an 18px size that beats the Omnibar's own rules.
for (const icon of icons) assert.match(icon, /:size="null"/);
});
test('the only inline SVG glyphs are the mic and the chat row bubble', () => {