Failing test: Jest Tests.x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks - useActionStatus should report error on cancel upgrade failure #201600
TypeError: Cannot read properties of null (reading 'abortUpgrade')
at abortUpgrade (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_action_status.test.tsx:105:28)
at /opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/@testing-library/react/dist/act-compat.js:48:24
at batchedUpdates$1 (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom.development.js:22380:12)
at act (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/react-dom/cjs/react-dom-test-utils.development.js:1042:14)
at /opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/@testing-library/react/dist/act-compat.js:47:25
at Object.<anonymous> (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/x-pack/plugins/fleet/public/applications/fleet/sections/agents/agent_list_page/hooks/use_action_status.test.tsx:104:14)
at Promise.then.completed (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/utils.js:298:28)
at new Promise (<anonymous>)
at callAsyncCircusFn (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/utils.js:231:10)
at _callCircusTest (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:316:40)
at runNextTicks (node:internal/process/task_queues:60:5)
at processTimers (node:internal/timers:511:9)
at _runTest (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:252:3)
at _runTestsForDescribeBlock (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:126:9)
at _runTestsForDescribeBlock (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:121:9)
at run (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/run.js:71:3)
at runAndTransformResultsToJestFormat (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapterInit.js:122:21)
at jestAdapter (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:79:19)
at runTestInternal (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:367:16)
at runTest (/opt/buildkite-agent/builds/bk-agent-prod-gcp-1732541032429989793/elastic/kibana-on-merge/kibana/node_modules/jest-runner/build/runTest.js:444:34)
A test failed on a tracked branch
First failure: kibana-on-merge - main