Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix flaky client integration tests for index template creation #52940

Open
cjcenizal opened this issue Dec 12, 2019 · 2 comments
Open

Fix flaky client integration tests for index template creation #52940

cjcenizal opened this issue Dec 12, 2019 · 2 comments
Labels
chore Feature:Mappings Editor Index mappings editor UI Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more

Comments

@cjcenizal
Copy link
Contributor

 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)
@cjcenizal cjcenizal added chore Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more Feature:Mappings Editor Index mappings editor UI labels Dec 12, 2019
@cjcenizal cjcenizal self-assigned this Dec 12, 2019
@elasticmachine
Copy link
Contributor

Pinging @elastic/es-ui (Team:Elasticsearch UI)

@cjcenizal
Copy link
Contributor Author

@alisonelizabeth FYI I'm disabling these in #52835.

@cjcenizal cjcenizal removed their assignment Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Feature:Mappings Editor Index mappings editor UI Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Projects
None yet
Development

No branches or pull requests

2 participants