diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-14 18:08:05 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-03-14 18:08:05 +0300 |
commit | 3e764061b3209d4deee2a55851d5d564a9f19d8b (patch) | |
tree | 9b6bd5edff70694e9426a86c15f355dab3a2c06d /spec/frontend/terraform | |
parent | 363a1ea13879c755f9cd8018763d3a7bdf4bf1c7 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/terraform')
-rw-r--r-- | spec/frontend/terraform/components/states_table_actions_spec.js | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/spec/frontend/terraform/components/states_table_actions_spec.js b/spec/frontend/terraform/components/states_table_actions_spec.js index 004cd480c42..31a644b39b4 100644 --- a/spec/frontend/terraform/components/states_table_actions_spec.js +++ b/spec/frontend/terraform/components/states_table_actions_spec.js @@ -1,4 +1,4 @@ -import { GlDropdown, GlModal, GlSprintf } from '@gitlab/ui'; +import { GlDropdown, GlModal, GlSprintf, GlFormInput } from '@gitlab/ui'; import { shallowMount } from '@vue/test-utils'; import Vue, { nextTick } from 'vue'; import VueApollo from 'vue-apollo'; @@ -85,6 +85,7 @@ describe('StatesTableActions', () => { const findDownloadBtn = () => wrapper.find('[data-testid="terraform-state-download"]'); const findRemoveBtn = () => wrapper.find('[data-testid="terraform-state-remove"]'); const findRemoveModal = () => wrapper.findComponent(GlModal); + const findFormInput = () => wrapper.findComponent(GlFormInput); beforeEach(() => { return createComponent(); @@ -295,9 +296,7 @@ describe('StatesTableActions', () => { describe('when state name is present', () => { beforeEach(async () => { - // setData usage is discouraged. See https://gitlab.com/groups/gitlab-org/-/epics/7330 for details - // eslint-disable-next-line no-restricted-syntax - await wrapper.setData({ removeConfirmText: defaultProps.state.name }); + await findFormInput().vm.$emit('input', defaultProps.state.name); findRemoveModal().vm.$emit('ok'); |