From e1599d5dbb8779e49a12a2efd739620236489658 Mon Sep 17 00:00:00 2001 From: emyarod Date: Thu, 27 Feb 2020 17:34:33 -0600 Subject: [PATCH] test: clean up container div --- packages/react/src/components/Checkbox/Checkbox-test.js | 1 + packages/react/src/components/Select/Select-test.js | 1 + .../src/components/TextInput/ControlledPasswordInput-test.js | 1 + packages/react/src/components/TextInput/TextInput-test.js | 1 + 4 files changed, 4 insertions(+) diff --git a/packages/react/src/components/Checkbox/Checkbox-test.js b/packages/react/src/components/Checkbox/Checkbox-test.js index a432799a0f6e..85fc66bb5b45 100644 --- a/packages/react/src/components/Checkbox/Checkbox-test.js +++ b/packages/react/src/components/Checkbox/Checkbox-test.js @@ -140,6 +140,7 @@ describe('refs', () => { expect(document.activeElement.type).toBeUndefined(); wrapper.instance().focus(); expect(document.activeElement.type).toEqual('checkbox'); + document.body.removeChild(container); }); it('should set indeterminate when accepting refs', () => { diff --git a/packages/react/src/components/Select/Select-test.js b/packages/react/src/components/Select/Select-test.js index 10559bb5de25..697fb468079f 100644 --- a/packages/react/src/components/Select/Select-test.js +++ b/packages/react/src/components/Select/Select-test.js @@ -173,6 +173,7 @@ describe('refs', () => { expect(document.activeElement.type).toBeUndefined(); wrapper.instance().focus(); expect(document.activeElement.type).toEqual('select-one'); + document.body.removeChild(container); }); }); diff --git a/packages/react/src/components/TextInput/ControlledPasswordInput-test.js b/packages/react/src/components/TextInput/ControlledPasswordInput-test.js index 7093643ef111..15959b445805 100644 --- a/packages/react/src/components/TextInput/ControlledPasswordInput-test.js +++ b/packages/react/src/components/TextInput/ControlledPasswordInput-test.js @@ -56,6 +56,7 @@ describe('TextInput', () => { expect(document.activeElement.type).toBeUndefined(); wrapper.instance().focus(); expect(document.activeElement.type).toEqual('text'); + document.body.removeChild(container); }); it('has the expected classes', () => { diff --git a/packages/react/src/components/TextInput/TextInput-test.js b/packages/react/src/components/TextInput/TextInput-test.js index 7ff1cd0737df..873d8c49201b 100644 --- a/packages/react/src/components/TextInput/TextInput-test.js +++ b/packages/react/src/components/TextInput/TextInput-test.js @@ -56,6 +56,7 @@ describe('TextInput', () => { expect(document.activeElement.type).toBeUndefined(); wrapper.instance().focus(); expect(document.activeElement.type).toEqual('text'); + document.body.removeChild(container); }); it('has the expected classes', () => {