diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-21 00:10:18 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-21 00:10:18 +0300 |
commit | 5c42c9355afa2bd5f95000b294ae6053f1d9219f (patch) | |
tree | e295f0dc31fbe1c51fba2a9db50ef088dfcf514a /spec/frontend/deploy_keys | |
parent | 694555850c08df0e98209b49b9c26d4c0428ad31 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/frontend/deploy_keys')
-rw-r--r-- | spec/frontend/deploy_keys/components/key_spec.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/spec/frontend/deploy_keys/components/key_spec.js b/spec/frontend/deploy_keys/components/key_spec.js index 7d942d969bb..0b1cbd28274 100644 --- a/spec/frontend/deploy_keys/components/key_spec.js +++ b/spec/frontend/deploy_keys/components/key_spec.js @@ -55,20 +55,20 @@ describe('Deploy keys key', () => { it('shows pencil button for editing', () => { createComponent({ deployKey }); - expect(wrapper.find('.btn .ic-pencil')).toExist(); + expect(wrapper.find('.btn [data-testid="pencil-icon"]')).toExist(); }); it('shows disable button when the project is not deletable', () => { createComponent({ deployKey }); - expect(wrapper.find('.btn .ic-cancel')).toExist(); + expect(wrapper.find('.btn [data-testid="cancel-icon"]')).toExist(); }); it('shows remove button when the project is deletable', () => { createComponent({ deployKey: { ...deployKey, destroyed_when_orphaned: true, almost_orphaned: true }, }); - expect(wrapper.find('.btn .ic-remove')).toExist(); + expect(wrapper.find('.btn [data-testid="remove-icon"]')).toExist(); }); }); @@ -147,7 +147,7 @@ describe('Deploy keys key', () => { it('shows pencil button for editing', () => { createComponent({ deployKey }); - expect(wrapper.find('.btn .ic-pencil')).toExist(); + expect(wrapper.find('.btn [data-testid="pencil-icon"]')).toExist(); }); it('shows disable button when key is enabled', () => { @@ -155,7 +155,7 @@ describe('Deploy keys key', () => { createComponent({ deployKey }); - expect(wrapper.find('.btn .ic-cancel')).toExist(); + expect(wrapper.find('.btn [data-testid="cancel-icon"]')).toExist(); }); }); }); |