From 7c936d2e853dc4c9fec51d8552970355ee67e99c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sascha=20I=C3=9Fbr=C3=BCcker?= Date: Wed, 16 Mar 2022 10:48:45 +0100 Subject: [PATCH] chore: fix flaky shadow focus mixin test (#3573) --- packages/field-base/test/shadow-focus-mixin.test.js | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/field-base/test/shadow-focus-mixin.test.js b/packages/field-base/test/shadow-focus-mixin.test.js index 2cd672d8b4..e6ddd4fb3f 100644 --- a/packages/field-base/test/shadow-focus-mixin.test.js +++ b/packages/field-base/test/shadow-focus-mixin.test.js @@ -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;