summaryrefslogtreecommitdiff
path: root/spec/frontend/terraform/components/terraform_list_spec.js
diff options
context:
space:
mode:
Diffstat (limited to 'spec/frontend/terraform/components/terraform_list_spec.js')
-rw-r--r--spec/frontend/terraform/components/terraform_list_spec.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/frontend/terraform/components/terraform_list_spec.js b/spec/frontend/terraform/components/terraform_list_spec.js
index cfd82768098..580951e799a 100644
--- a/spec/frontend/terraform/components/terraform_list_spec.js
+++ b/spec/frontend/terraform/components/terraform_list_spec.js
@@ -57,11 +57,11 @@ describe('TerraformList', () => {
});
};
- const findBadge = () => wrapper.find(GlBadge);
- const findEmptyState = () => wrapper.find(EmptyState);
- const findPaginationButtons = () => wrapper.find(GlKeysetPagination);
- const findStatesTable = () => wrapper.find(StatesTable);
- const findTab = () => wrapper.find(GlTab);
+ const findBadge = () => wrapper.findComponent(GlBadge);
+ const findEmptyState = () => wrapper.findComponent(EmptyState);
+ const findPaginationButtons = () => wrapper.findComponent(GlKeysetPagination);
+ const findStatesTable = () => wrapper.findComponent(StatesTable);
+ const findTab = () => wrapper.findComponent(GlTab);
afterEach(() => {
wrapper.destroy();
@@ -182,7 +182,7 @@ describe('TerraformList', () => {
});
it('displays an alert message', () => {
- expect(wrapper.find(GlAlert).exists()).toBe(true);
+ expect(wrapper.findComponent(GlAlert).exists()).toBe(true);
});
});
@@ -195,7 +195,7 @@ describe('TerraformList', () => {
});
it('displays a loading icon', () => {
- expect(wrapper.find(GlLoadingIcon).exists()).toBe(true);
+ expect(wrapper.findComponent(GlLoadingIcon).exists()).toBe(true);
});
});
});