diff --git a/src/components/select/select.e2e.ts b/src/components/select/select.e2e.ts index deb28a4b29..a1da786cad 100644 --- a/src/components/select/select.e2e.ts +++ b/src/components/select/select.e2e.ts @@ -125,6 +125,7 @@ describe('sbb-select', () => { `); element = root.querySelector('sbb-select'); + await waitForLitRender(element); const displayValue = element.shadowRoot.querySelector('.sbb-select__trigger'); const firstOption = element.querySelector('#option-1'); @@ -149,9 +150,9 @@ describe('sbb-select', () => { `); 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');