Skip to content

Commit

Permalink
chore: fix flaky shadow focus mixin test (#3573)
Browse files Browse the repository at this point in the history
  • Loading branch information
sissbruecker committed Mar 16, 2022
1 parent 66f5e32 commit 7c936d2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/field-base/test/shadow-focus-mixin.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,7 @@ describe('shadow-focus-mixin', () => {
});

it('should delegate focus if the focus is received from outside using keyboard navigation', async () => {
document.body.focus();
const spy = sinon.spy(focusElement, 'focus');
await sendKeys({ press: 'Tab' });
expect(spy.called).to.be.true;
Expand Down

0 comments on commit 7c936d2

Please sign in to comment.