diff options
Diffstat (limited to 'spec/frontend/pages/admin/users/components')
-rw-r--r-- | spec/frontend/pages/admin/users/components/__snapshots__/delete_user_modal_spec.js.snap | 26 | ||||
-rw-r--r-- | spec/frontend/pages/admin/users/components/delete_user_modal_spec.js | 4 |
2 files changed, 18 insertions, 12 deletions
diff --git a/spec/frontend/pages/admin/users/components/__snapshots__/delete_user_modal_spec.js.snap b/spec/frontend/pages/admin/users/components/__snapshots__/delete_user_modal_spec.js.snap index 82589e5147c..fc37a545511 100644 --- a/spec/frontend/pages/admin/users/components/__snapshots__/delete_user_modal_spec.js.snap +++ b/spec/frontend/pages/admin/users/components/__snapshots__/delete_user_modal_spec.js.snap @@ -37,29 +37,35 @@ exports[`User Operation confirmation modal renders modal with form included 1`] value="" /> </form> - <gl-deprecated-button-stub - size="md" - variant="secondary" + <gl-button-stub + category="primary" + icon="" + size="medium" + variant="default" > Cancel - </gl-deprecated-button-stub> + </gl-button-stub> - <gl-deprecated-button-stub + <gl-button-stub + category="primary" disabled="true" - size="md" + icon="" + size="medium" variant="warning" > secondaryAction - </gl-deprecated-button-stub> + </gl-button-stub> - <gl-deprecated-button-stub + <gl-button-stub + category="primary" disabled="true" - size="md" + icon="" + size="medium" variant="danger" > action - </gl-deprecated-button-stub> + </gl-button-stub> </div> `; diff --git a/spec/frontend/pages/admin/users/components/delete_user_modal_spec.js b/spec/frontend/pages/admin/users/components/delete_user_modal_spec.js index 16b0bd305cd..3efefa8137f 100644 --- a/spec/frontend/pages/admin/users/components/delete_user_modal_spec.js +++ b/spec/frontend/pages/admin/users/components/delete_user_modal_spec.js @@ -1,5 +1,5 @@ import { shallowMount } from '@vue/test-utils'; -import { GlDeprecatedButton, GlFormInput } from '@gitlab/ui'; +import { GlButton, GlFormInput } from '@gitlab/ui'; import DeleteUserModal from '~/pages/admin/users/components/delete_user_modal.vue'; import ModalStub from './stubs/modal_stub'; @@ -13,7 +13,7 @@ describe('User Operation confirmation modal', () => { const findButton = variant => wrapper - .findAll(GlDeprecatedButton) + .findAll(GlButton) .filter(w => w.attributes('variant') === variant) .at(0); const findForm = () => wrapper.find('form'); |