Broken master in karma test "RelatedItemsTreeApp"
Job #380144208 failed for 53df0d9a:
9855 SUMMARY:
9856 ✔ 6445 tests completed
9857 ℹ 7 tests skipped
9858 ✖ 4 tests failed
9859 FAILED TESTS:
9860 RelatedItemsTreeApp
9861 with epicNewIssue feature flag enabled
9862 after split button emitted showCreateIssueForm event
9863 ✖ shows create item form
9864 Chrome
9865 Expected false to be true.
9866 at webpack:///builds/gitlab-org/gitlab/ee/spec/javascripts/related_items_tree/components/related_items_tree_app_spec.js:3731:1 <- spec/javascripts/test_bundle.js:470890:33
9867 after create issue form emitted cancel event
9868 ✖ hides the form
9869 Chrome
9870 Failed: Network Error
9871 Error: Network Error
9872 at createError (webpack:///builds/gitlab-org/gitlab/node_modules/axios/lib/core/createError.js:16:1 <- spec/javascripts/test_bundle.js:691340:15)
9873 at XMLHttpRequest.handleError (webpack:///builds/gitlab-org/gitlab/node_modules/axios/lib/adapters/xhr.js:81:1 <- spec/javascripts/test_bundle.js:690875:14)
9874 after create issue form emitted submit event
9875 ✖ dispatches createNewIssue action
9876 Chrome
9877 TypeError: Cannot read property '$emit' of undefined
9878 at UserContext.<anonymous> (webpack:///builds/gitlab-org/gitlab/ee/spec/javascripts/related_items_tree/components/related_items_tree_app_spec.js:3796:1 <- spec/javascripts/test_bundle.js:470955:33)
9879 test errors
9880 ✖ has no Vue error
9881 Chrome
9882 Expected true to be false.
9883 at UserContext.<anonymous> (webpack:///builds/gitlab-org/gitlab/spec/javascripts/test_bundle.js:153:1 <- spec/javascripts/test_bundle.js:1925695:36)
9884 TOTAL: 4 FAILED, 6445 SUCCESS
First similar issue happened at https://gitlab.com/gitlab-org/gitlab/-/jobs/380133060.
Then it happened again here: https://gitlab.com/gitlab-org/gitlab/-/jobs/380140099
Edited by Rémy Coutable