summaryrefslogtreecommitdiff
path: root/spec/javascripts
diff options
context:
space:
mode:
authorDonald Cook <dcook@gitlab.com>2019-04-02 20:23:23 +0000
committerClement Ho <clemmakesapps@gmail.com>2019-04-02 20:23:23 +0000
commit2378dde2e2fa0de41f4f578e56209dc96b5a82c1 (patch)
tree6cdb7381231b45874e140d64cf337a7db1f29289 /spec/javascripts
parent5570ce7dde55f477e463aab6d9a0de0836816279 (diff)
downloadgitlab-ce-2378dde2e2fa0de41f4f578e56209dc96b5a82c1.tar.gz
Remove non-functional add issue button on welcome list
Diffstat (limited to 'spec/javascripts')
-rw-r--r--spec/javascripts/boards/components/board_spec.js14
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();
+ });
+ });
});