diff options
author | Fatih Acet <acetfatih@gmail.com> | 2017-11-29 12:43:25 +0300 |
---|---|---|
committer | Fatih Acet <acetfatih@gmail.com> | 2017-11-29 12:43:25 +0300 |
commit | e74ef3acea2c8f6fdb81524b78970a5fc57f845c (patch) | |
tree | a81c73eabaa5005d6f4876054b57c3814d8519e9 /spec/javascripts/issue_show | |
parent | 59f93de0ba7c12575f95e4b7e6c313a09f98d52c (diff) | |
parent | 27d64f5baa3c05d39e8b8e0827df3bd1f39539b5 (diff) |
Merge branch 'backport-border-inline-edit' into 'master'
Backport - Add border for epic edit button
See merge request gitlab-org/gitlab-ce!15637
Diffstat (limited to 'spec/javascripts/issue_show')
-rw-r--r-- | spec/javascripts/issue_show/components/title_spec.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/javascripts/issue_show/components/title_spec.js b/spec/javascripts/issue_show/components/title_spec.js index c1edc785d0f..5370f4e1fea 100644 --- a/spec/javascripts/issue_show/components/title_spec.js +++ b/spec/javascripts/issue_show/components/title_spec.js @@ -80,19 +80,19 @@ describe('Title component', () => { }); it('should not show by default', () => { - expect(vm.$el.querySelector('.note-action-button')).toBeNull(); + expect(vm.$el.querySelector('.btn-edit')).toBeNull(); }); it('should not show if canUpdate is false', () => { vm.showInlineEditButton = true; vm.canUpdate = false; - expect(vm.$el.querySelector('.note-action-button')).toBeNull(); + expect(vm.$el.querySelector('.btn-edit')).toBeNull(); }); it('should show if showInlineEditButton and canUpdate', () => { vm.showInlineEditButton = true; vm.canUpdate = true; - expect(vm.$el.querySelector('.note-action-button')).toBeDefined(); + expect(vm.$el.querySelector('.btn-edit')).toBeDefined(); }); it('should trigger open.form event when clicked', () => { @@ -100,7 +100,7 @@ describe('Title component', () => { vm.canUpdate = true; Vue.nextTick(() => { - vm.$el.querySelector('.note-action-button').click(); + vm.$el.querySelector('.btn-edit').click(); expect(eventHub.$emit).toHaveBeenCalledWith('open.form'); }); }); |