Skip to content

Commit

Permalink
Wait for sendKeysElem instead
Browse files Browse the repository at this point in the history
  • Loading branch information
svanherk committed Jun 30, 2023
1 parent 75c6437 commit c09d239
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions mixins/interactive/test/interactive-mixin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,7 @@ describe('InteractiveMixin', () => {
toggle.click();
await new Promise(resolve => setTimeout(resolve, 0));
expect(getComposedActiveElement()).to.equal(elem.shadowRoot.querySelector('.content-button'));
sendKeysElem(toggle, 'press', 'Escape');
await waitUntil(() => getComposedActiveElement().classList.contains('interactive-toggle'));
await sendKeysElem(toggle, 'press', 'Escape');
expect(getComposedActiveElement()).to.equal(toggle);
});

Expand Down

0 comments on commit c09d239

Please sign in to comment.