Skip to content

Commit 00ad83d

Browse files
committed
add test for lowercase content
1 parent 200bb5f commit 00ad83d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

packages/uui-keyboard-shortcut/lib/uui-keyboard-shortcut.test.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import '.';
66
describe('UUIKey', () => {
77
let element: UUIKeyElement;
88
beforeEach(async () => {
9-
element = await fixture(html`<uui-key>z</uui-key> `);
9+
element = await fixture(html`<uui-key>ESC</uui-key> `);
1010
});
1111

1212
it('is defined', () => {
@@ -16,6 +16,10 @@ describe('UUIKey', () => {
1616
it('passes the a11y audit', async () => {
1717
await expect(element).shadowDom.to.be.accessible();
1818
});
19+
20+
it('lowercase text content of element', async () => {
21+
expect(element.innerText).to.equal('esc');
22+
});
1923
});
2024

2125
describe('UUIKeyboardShortcut', () => {

0 commit comments

Comments
 (0)