Skip to content

Commit

Permalink
fix(select): enhance test robustness (#2256)
Browse files Browse the repository at this point in the history
  • Loading branch information
TomMenga committed Dec 4, 2023
1 parent f18da8f commit a8c4d21
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/select/select.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ describe('sbb-select', () => {
</div>
`);
element = root.querySelector('sbb-select');
await waitForLitRender(element);

const displayValue = element.shadowRoot.querySelector('.sbb-select__trigger');
const firstOption = element.querySelector('#option-1');
Expand All @@ -149,9 +150,9 @@ describe('sbb-select', () => {
</div>
`);
element = root.querySelector('sbb-select');
await waitForLitRender(element);
comboBoxElement = root.querySelector('[role="combobox"]');
focusableElement = comboBoxElement;
await waitForLitRender(element);

const displayValue = element.shadowRoot.querySelector('.sbb-select__trigger');
expect(displayValue).to.have.trimmed.text('First');
Expand Down

0 comments on commit a8c4d21

Please sign in to comment.