diff options
Diffstat (limited to 'spec/frontend/terraform')
-rw-r--r-- | spec/frontend/terraform/components/states_table_spec.js | 6 | ||||
-rw-r--r-- | spec/frontend/terraform/components/terraform_list_spec.js | 14 |
2 files changed, 10 insertions, 10 deletions
diff --git a/spec/frontend/terraform/components/states_table_spec.js b/spec/frontend/terraform/components/states_table_spec.js index 12a44452717..0b3b169891b 100644 --- a/spec/frontend/terraform/components/states_table_spec.js +++ b/spec/frontend/terraform/components/states_table_spec.js @@ -160,8 +160,8 @@ describe('StatesTable', () => { const state = states.at(lineNumber); expect(state.text()).toContain(name); - expect(state.find(GlBadge).exists()).toBe(hasBadge); - expect(state.find(GlLoadingIcon).exists()).toBe(loading); + expect(state.findComponent(GlBadge).exists()).toBe(hasBadge); + expect(state.findComponent(GlLoadingIcon).exists()).toBe(loading); if (hasBadge) { const badge = wrapper.findByTestId(`state-badge-${name}`); @@ -198,7 +198,7 @@ describe('StatesTable', () => { const states = wrapper.findAll('[data-testid="terraform-states-table-pipeline"]'); const state = states.at(lineNumber); - expect(state.find(GlTooltip).exists()).toBe(toolTipAdded); + expect(state.findComponent(GlTooltip).exists()).toBe(toolTipAdded); expect(state.text()).toMatchInterpolatedText(pipelineText); }, ); 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); }); }); }); |