mirror of
https://github.com/shoelace-style/webawesome.git
synced 2026-01-12 12:09:26 +00:00
Fix select tests
This commit is contained in:
@@ -248,7 +248,7 @@ describe('<wa-select>', () => {
|
||||
<wa-option value="option-3">Option 3</wa-option>
|
||||
</wa-select>
|
||||
`);
|
||||
const displayInput = el.shadowRoot!.querySelector<HTMLSelectElement>('.select__display-input')!;
|
||||
const displayInput = el.shadowRoot!.querySelector<HTMLSelectElement>('.display-input')!;
|
||||
|
||||
el.focus();
|
||||
await sendKeys({ press: 'r' });
|
||||
@@ -265,7 +265,7 @@ describe('<wa-select>', () => {
|
||||
<wa-option value="option-3">Option 3</wa-option>
|
||||
</wa-select>
|
||||
`);
|
||||
const displayInput = el.shadowRoot!.querySelector<HTMLSelectElement>('.select__display-input')!;
|
||||
const displayInput = el.shadowRoot!.querySelector<HTMLSelectElement>('.display-input')!;
|
||||
|
||||
el.focus();
|
||||
await sendKeys({ down: 'Control' });
|
||||
@@ -519,7 +519,7 @@ describe('<wa-select>', () => {
|
||||
<wa-option value="option-3">Option 3</wa-option>
|
||||
</wa-select>
|
||||
`);
|
||||
const displayInput = el.shadowRoot!.querySelector<HTMLSelectElement>('.select__display-input')!;
|
||||
const displayInput = el.shadowRoot!.querySelector<HTMLSelectElement>('.display-input')!;
|
||||
const option = el.querySelector('wa-option')!;
|
||||
|
||||
expect(displayInput.value).to.equal('Option 1');
|
||||
|
||||
Reference in New Issue
Block a user