summaryrefslogtreecommitdiff
path: root/spec/frontend/monitoring/router_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/monitoring/router_spec.js')
-rw-r--r--spec/frontend/monitoring/router_spec.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/monitoring/router_spec.js b/spec/frontend/monitoring/router_spec.js
index 7758dd351b7..368bd955fb3 100644
--- a/spec/frontend/monitoring/router_spec.js
+++ b/spec/frontend/monitoring/router_spec.js
@@ -61,8 +61,8 @@ describe('Monitoring router', () => {
currentDashboard,
});
- expect(wrapper.find(DashboardPage).exists()).toBe(true);
- expect(wrapper.find(DashboardPage).find(Dashboard).exists()).toBe(true);
+ expect(wrapper.findComponent(DashboardPage).exists()).toBe(true);
+ expect(wrapper.findComponent(DashboardPage).findComponent(Dashboard).exists()).toBe(true);
});
});
@@ -84,8 +84,8 @@ describe('Monitoring router', () => {
currentDashboard,
});
- expect(wrapper.find(DashboardPage).exists()).toBe(true);
- expect(wrapper.find(DashboardPage).find(Dashboard).exists()).toBe(true);
+ expect(wrapper.findComponent(DashboardPage).exists()).toBe(true);
+ expect(wrapper.findComponent(DashboardPage).findComponent(Dashboard).exists()).toBe(true);
});
});
@@ -100,7 +100,7 @@ describe('Monitoring router', () => {
const wrapper = createWrapper(BASE_PATH, path);
expect(wrapper.vm.$route.params.dashboard).toBe(currentDashboard);
- expect(wrapper.find(PanelNewPage).exists()).toBe(true);
+ expect(wrapper.findComponent(PanelNewPage).exists()).toBe(true);
});
});
});