Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/vue_shared/issuable/show/components/issuable_show_root_spec.js')
-rw-r--r--spec/frontend/vue_shared/issuable/show/components/issuable_show_root_spec.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/frontend/vue_shared/issuable/show/components/issuable_show_root_spec.js b/spec/frontend/vue_shared/issuable/show/components/issuable_show_root_spec.js
index f976e0499f0..ad7afefff12 100644
--- a/spec/frontend/vue_shared/issuable/show/components/issuable_show_root_spec.js
+++ b/spec/frontend/vue_shared/issuable/show/components/issuable_show_root_spec.js
@@ -1,3 +1,4 @@
+import { GlBadge } from '@gitlab/ui';
import { shallowMount } from '@vue/test-utils';
import IssuableBody from '~/vue_shared/issuable/show/components/issuable_body.vue';
@@ -72,7 +73,7 @@ describe('IssuableShowRoot', () => {
author,
taskCompletionStatus,
});
- expect(issuableHeader.find('.issuable-status-badge').text()).toContain('Open');
+ expect(issuableHeader.findComponent(GlBadge).text()).toBe('Open');
expect(issuableHeader.find('.detail-page-header-actions button.js-close').exists()).toBe(
true,
);