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

Failing test: Jest Tests.x-pack/plugins/cases/public/components/markdown_editor - EditableMarkdown Cancel button click calls only onChangeEditable #171179

Closed
kibanamachine opened this issue Nov 14, 2023 · 8 comments · Fixed by #174755
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Feature:Cases Cases feature Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)

Comments

@kibanamachine
Copy link
Contributor

kibanamachine commented Nov 14, 2023

A test failed on a tracked branch

TestingLibraryElementError: Unable to find an element by: [data-test-subj="editable-cancel-markdown"]

Ignored nodes: comments, script, style
<body>
  <div />
</body>
    at Object.getElementError (/var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/@testing-library/dom/dist/config.js:40:19)
    at /var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/@testing-library/dom/dist/query-helpers.js:90:38
    at /var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/@testing-library/dom/dist/query-helpers.js:62:17
    at /var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/@testing-library/dom/dist/query-helpers.js:111:19
    at Object.getByTestId (/var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/x-pack/plugins/cases/public/components/markdown_editor/editable_markdown_renderer.test.tsx:131:28)
    at Promise.then.completed (/var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/utils.js:300:28)
    at new Promise (<anonymous>)
    at callAsyncCircusFn (/var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/utils.js:233:10)
    at _callCircusTest (/var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:314:40)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at processTimers (node:internal/timers:509:9)
    at _runTest (/var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:250:3)
    at _runTestsForDescribeBlock (/var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:125:9)
    at _runTestsForDescribeBlock (/var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:120:9)
    at run (/var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:70:3)
    at runAndTransformResultsToJestFormat (/var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
    at jestAdapter (/var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
    at runTestInternal (/var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/var/lib/buildkite-agent/builds/kb-n2-4-spot-21d6044ec4c1fe86/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:444:34)

First failure: CI Build - main

@kibanamachine kibanamachine added the failed-test A test failure on a tracked branch, potentially flaky-test label Nov 14, 2023
@botelastic botelastic bot added the needs-team Issues missing a team label label Nov 14, 2023
@kibanamachine kibanamachine added the Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) label Nov 14, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops (Team:ResponseOps)

@botelastic botelastic bot removed the needs-team Issues missing a team label label Nov 14, 2023
@cnasikas cnasikas added the Feature:Cases Cases feature label Nov 14, 2023
@elasticmachine
Copy link
Contributor

Pinging @elastic/response-ops-cases (Feature:Cases)

@cnasikas
Copy link
Member

cnasikas commented Dec 4, 2023

Closing as it failed due to the nodejs upgrade to v20.

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

mistic added a commit that referenced this issue Jan 12, 2024
@mistic
Copy link
Member

mistic commented Jan 12, 2024

Skipped.

main: 9985f86

@kibanamachine
Copy link
Contributor Author

New failure: CI Build - main

eokoneyo pushed a commit to eokoneyo/kibana that referenced this issue Jan 12, 2024
semd pushed a commit to semd/kibana that referenced this issue Jan 12, 2024
fkanout pushed a commit to fkanout/kibana that referenced this issue Jan 17, 2024
Fixes elastic#171177
Fixes elastic#171178
Fixes elastic#171179
Fixes elastic#171180
Fixes elastic#171181
Fixes elastic#171182
Fixes elastic#171183
Fixes elastic#171184
Fixes elastic#171185

## Summary

Fixes the `EditableMarkdown` flaky tests.

Successful builds:
https://buildkite.com/elastic/kibana-pull-request/builds?branch=adcoelho%3Afix-editable-markdown-tests

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this issue Feb 15, 2024
CoenWarmer pushed a commit to CoenWarmer/kibana that referenced this issue Feb 15, 2024
Fixes elastic#171177
Fixes elastic#171178
Fixes elastic#171179
Fixes elastic#171180
Fixes elastic#171181
Fixes elastic#171182
Fixes elastic#171183
Fixes elastic#171184
Fixes elastic#171185

## Summary

Fixes the `EditableMarkdown` flaky tests.

Successful builds:
https://buildkite.com/elastic/kibana-pull-request/builds?branch=adcoelho%3Afix-editable-markdown-tests

---------

Co-authored-by: Kibana Machine <42973632+kibanamachine@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
failed-test A test failure on a tracked branch, potentially flaky-test Feature:Cases Cases feature Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams)
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants