diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-09-20 02:18:09 +0300 |
commit | 6ed4ec3e0b1340f96b7c043ef51d1b33bbe85fde (patch) | |
tree | dc4d20fe6064752c0bd323187252c77e0a89144b /spec/frontend/reports/components/grouped_issues_list_spec.js | |
parent | 9868dae7fc0655bd7ce4a6887d4e6d487690eeed (diff) |
Add latest changes from gitlab-org/gitlab@15-4-stable-eev15.4.0-rc42
Diffstat (limited to 'spec/frontend/reports/components/grouped_issues_list_spec.js')
-rw-r--r-- | spec/frontend/reports/components/grouped_issues_list_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/frontend/reports/components/grouped_issues_list_spec.js b/spec/frontend/reports/components/grouped_issues_list_spec.js index 95ef0bcbcc7..6c0275dc47d 100644 --- a/spec/frontend/reports/components/grouped_issues_list_spec.js +++ b/spec/frontend/reports/components/grouped_issues_list_spec.js @@ -30,7 +30,7 @@ describe('Grouped Issues List', () => { }, }); - expect(wrapper.find(SmartVirtualList).props()).toMatchSnapshot(); + expect(wrapper.findComponent(SmartVirtualList).props()).toMatchSnapshot(); }); describe('without data', () => { @@ -43,7 +43,7 @@ describe('Grouped Issues List', () => { }); it.each(['resolved', 'unresolved'])('does not render report items for %s issues', () => { - expect(wrapper.find(ReportItem).exists()).toBe(false); + expect(wrapper.findComponent(ReportItem).exists()).toBe(false); }); }); @@ -67,7 +67,7 @@ describe('Grouped Issues List', () => { propsData: { [`${issueName}Issues`]: issues }, }); - expect(wrapper.findAll(ReportItem)).toHaveLength(issues.length); + expect(wrapper.findAllComponents(ReportItem)).toHaveLength(issues.length); }); it('renders a report item with the correct props', () => { @@ -81,7 +81,7 @@ describe('Grouped Issues List', () => { }, }); - expect(wrapper.find(ReportItem).props()).toMatchSnapshot(); + expect(wrapper.findComponent(ReportItem).props()).toMatchSnapshot(); }); }); }); |