Commit 291c2937 authored by Mark Florian's avatar Mark Florian

Migrate CE MrWidgetOptions spec to @vue/test-utils

This is a mostly-straight-forward and nearly minimal migration; there
are a lot of issues with the existing suite, e.g., mutating props
directly; making assertions against component internals; inconsistent
use of async/done/promise chains. Fixing these problems is well outside
the scope of this, and can be addressed later.

Partly addresses https://gitlab.com/gitlab-org/gitlab/-/issues/220476.
parent 7701e88d
......@@ -26,7 +26,11 @@ export default () => {
registerExtension(issueExtension);
const vm = new Vue({ ...MrWidgetOptions, apolloProvider });
const vm = new Vue({
el: '#js-vue-mr-widget',
...MrWidgetOptions,
apolloProvider,
});
window.gl.mrWidget = {
checkStatus: vm.checkStatus,
......
......@@ -48,7 +48,6 @@ import GroupedAccessibilityReportsApp from '../reports/accessibility_report/grou
import getStateQuery from './queries/get_state.query.graphql';
export default {
el: '#js-vue-mr-widget',
// False positive i18n lint: https://gitlab.com/gitlab-org/frontend/eslint-plugin-i18n/issues/25
// eslint-disable-next-line @gitlab/require-i18n-strings
name: 'MRWidget',
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment