Flaky jest test: spec/frontend/ide/components/repo_editor_spec.js
As seen in https://gitlab.com/gitlab-org/gitlab/-/jobs/603724425:
FAIL spec/frontend/ide/components/repo_editor_spec.js (6.78s)
● RepoEditor › default › populates editor with the fetched content › after opening multiple files at the same time
expect(received).toBe(expected) // Object.is equality
- Expected
+ Received
- fileB-rawContent
+
584 | // use the real timer to accurately simulate the race condition
585 | await waitUsingRealTimer(20);
> 586 | expect(vm.model.getModel().getValue()).toBe('fileB-rawContent\n');
| ^
587 | });
588 | });
589 |
at Object.toBe (spec/frontend/ide/components/repo_editor_spec.js:586:48)
● RepoEditor › default › populates editor with the fetched content › after opening multiple files at the same time
Unexpected call of console.error() with:
[Vue warn]: Error in nextTick: "TypeError: Cannot read property 'addEventListener' of undefined"
(found in <Root>)
at warn (node_modules/vue/dist/vue.runtime.common.dev.js:621:15)
at logError (node_modules/vue/dist/vue.runtime.common.dev.js:1880:5)
at globalHandleError (node_modules/vue/dist/vue.runtime.common.dev.js:1875:3)
at handleError (node_modules/vue/dist/vue.runtime.common.dev.js:1835:5)
at Array.<anonymous> (node_modules/vue/dist/vue.runtime.common.dev.js:1978:9)
at flushCallbacks (node_modules/vue/dist/vue.runtime.common.dev.js:1902:14)
Introduced in !33391 (merged).
/cc: @viktomas, @afontaine