FAIL legacy/plugins/index_management/__jest__/client_integration/template_create.test.tsx (16.091s)
● <TemplateCreate /> › on component mount › form payload & api errors › should send the correct payload
Method “simulate” is meant to be run on 1 node. 0 found instead.
139 |
140 | if (aliases) {
> 141 | find('mockCodeEditor').simulate('change', {
| ^
142 | jsonString: aliases,
143 | }); // Using mocked EuiCodeEditor
144 | await nextTick(50);
at ReactWrapper.single (../node_modules/enzyme/src/ReactWrapper.js:1166:13)
at ReactWrapper.simulate (../node_modules/enzyme/src/ReactWrapper.js:665:17)
at Object.completeStepFour (legacy/plugins/index_management/__jest__/client_integration/helpers/template_form.helpers.ts:141:30)
at legacy/plugins/index_management/__jest__/client_integration/template_create.test.tsx:322:25
● <TemplateCreate /> › on component mount › form payload & api errors › should send the correct payload
Method “simulate” is meant to be run on 1 node. 0 found instead.
47 |
48 | const clickSubmitButton = () => {
> 49 | testBed.find('submitButton').simulate('click');
| ^
50 | };
51 |
52 | const clickEditButtonAtField = (index: number) => {
at ReactWrapper.single (../node_modules/enzyme/src/ReactWrapper.js:1166:13)
at ReactWrapper.simulate (../node_modules/enzyme/src/ReactWrapper.js:665:17)
at Object.clickSubmitButton (legacy/plugins/index_management/__jest__/client_integration/helpers/template_form.helpers.ts:49:34)
at legacy/plugins/index_management/__jest__/client_integration/template_create.test.tsx:330:19
at batchedUpdates$1 (../node_modules/react-dom/cjs/react-dom.development.js:24386:12)
at act (../node_modules/react-dom/cjs/react-dom-test-utils.development.js:1092:14)
at Object.it (legacy/plugins/index_management/__jest__/client_integration/template_create.test.tsx:329:15)