From 7dd27d4ff78ada3c2c630d8fb9df79408b46a257 Mon Sep 17 00:00:00 2001 From: Sameh Khamis Date: Thu, 19 Nov 2026 02:33:39 -0800 Subject: [PATCH] The Omnibar guard test pins its glyphs' own sizing Co-authored-by: Manjunath Paparaju --- src/ui/kit/omnibarControls.test.mjs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ui/kit/omnibarControls.test.mjs b/src/ui/kit/omnibarControls.test.mjs index 033412d0a0..ee20355c45 100644 --- a/src/ui/kit/omnibarControls.test.mjs +++ b/src/ui/kit/omnibarControls.test.mjs @@ -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(/]*>/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', () => {