diff options
author | Donald Cook <dcook@gitlab.com> | 2019-04-02 23:23:23 +0300 |
---|---|---|
committer | Clement Ho <clemmakesapps@gmail.com> | 2019-04-02 23:23:23 +0300 |
commit | 2378dde2e2fa0de41f4f578e56209dc96b5a82c1 (patch) | |
tree | 6cdb7381231b45874e140d64cf337a7db1f29289 /spec/javascripts/boards | |
parent | 5570ce7dde55f477e463aab6d9a0de0836816279 (diff) |
Remove non-functional add issue button on welcome list
Diffstat (limited to 'spec/javascripts/boards')
-rw-r--r-- | spec/javascripts/boards/components/board_spec.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/spec/javascripts/boards/components/board_spec.js b/spec/javascripts/boards/components/board_spec.js index 6e6b3e6950b..d08ee41802b 100644 --- a/spec/javascripts/boards/components/board_spec.js +++ b/spec/javascripts/boards/components/board_spec.js @@ -103,4 +103,18 @@ describe('Board component', () => { }) .catch(done.fail); }); + + it('does render add issue button', () => { + expect(vm.$el.querySelector('.issue-count-badge-add-button')).not.toBeNull(); + }); + + it('does not render add issue button when list type is blank', done => { + vm.list.type = 'blank'; + + Vue.nextTick(() => { + expect(vm.$el.querySelector('.issue-count-badge-add-button')).toBeNull(); + + done(); + }); + }); }); |