diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-20 12:40:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-20 12:40:42 +0300 |
commit | ee664acb356f8123f4f6b00b73c1e1cf0866c7fb (patch) | |
tree | f8479f94a28f66654c6a4f6fb99bad6b4e86a40e /spec/frontend/terraform | |
parent | 62f7d5c5b69180e82ae8196b7b429eeffc8e7b4f (diff) |
Add latest changes from gitlab-org/gitlab@15-5-stable-eev15.5.0-rc42
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); }); }); }); |