diff options
Diffstat (limited to 'spec/frontend/work_items_hierarchy')
-rw-r--r-- | spec/frontend/work_items_hierarchy/components/app_spec.js | 4 | ||||
-rw-r--r-- | spec/frontend/work_items_hierarchy/components/hierarchy_spec.js | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/spec/frontend/work_items_hierarchy/components/app_spec.js b/spec/frontend/work_items_hierarchy/components/app_spec.js index 1426fbfab80..124ff5f1608 100644 --- a/spec/frontend/work_items_hierarchy/components/app_spec.js +++ b/spec/frontend/work_items_hierarchy/components/app_spec.js @@ -32,7 +32,7 @@ describe('WorkItemsHierarchy App', () => { it('shows when the banner is visible', () => { createComponent({}, { bannerVisible: true }); - expect(wrapper.find(GlBanner).exists()).toBe(true); + expect(wrapper.findComponent(GlBanner).exists()).toBe(true); }); it('hide when close is called', async () => { @@ -42,7 +42,7 @@ describe('WorkItemsHierarchy App', () => { await nextTick(); - expect(wrapper.find(GlBanner).exists()).toBe(false); + expect(wrapper.findComponent(GlBanner).exists()).toBe(false); }); }); diff --git a/spec/frontend/work_items_hierarchy/components/hierarchy_spec.js b/spec/frontend/work_items_hierarchy/components/hierarchy_spec.js index dca016dc317..084aaa754ab 100644 --- a/spec/frontend/work_items_hierarchy/components/hierarchy_spec.js +++ b/spec/frontend/work_items_hierarchy/components/hierarchy_spec.js @@ -57,7 +57,7 @@ describe('WorkItemsHierarchy Hierarchy', () => { }); it('does not render badges', () => { - expect(wrapper.find(GlBadge).exists()).toBe(false); + expect(wrapper.findComponent(GlBadge).exists()).toBe(false); }); }); |