Skip to content

Commit 5d49eaa

Browse files
author
Jonny Muir
committed
test: create failing test to show webkit failing on svg size
1 parent 338ca32 commit 5d49eaa

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

packages/uui-icon/lib/uui-icon.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,5 +224,13 @@ describe('UUIIconElement', () => {
224224
it('Child uui-icon passes the a11y audit', async () => {
225225
await expect(testElement.iconElement).shadowDom.to.be.accessible();
226226
});
227+
228+
it('svg has a size of 18px for both width and height', () => {
229+
const svgElement =
230+
testElement.iconElement.shadowRoot!.querySelector('svg')!;
231+
const computedStyle = getComputedStyle(svgElement);
232+
expect(computedStyle.width).to.equal('18px');
233+
expect(computedStyle.height).to.equal('18px');
234+
});
227235
});
228236
});

0 commit comments

Comments
 (0)