summaryrefslogtreecommitdiff
path: root/spec/javascripts/boards
diff options
context:
space:
mode:
authorDavid Kuri <info@davidkuri.de>2018-01-09 09:24:08 +0000
committerPhil Hughes <me@iamphill.com>2018-01-09 09:24:08 +0000
commit9452fd2b4818c63237c4e0172c4f7192be6b04e0 (patch)
tree1becaaa34ef5bb857330a8a5d3d4b2037954cda1 /spec/javascripts/boards
parentd2d634a9902d338b029c2b0662c24446b14bc3e0 (diff)
downloadgitlab-ce-9452fd2b4818c63237c4e0172c4f7192be6b04e0.tar.gz
Fixing re-ordering of an issue when dragging it to the bottom a long issue list in the board
Diffstat (limited to 'spec/javascripts/boards')
-rw-r--r--spec/javascripts/boards/board_list_spec.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/javascripts/boards/board_list_spec.js b/spec/javascripts/boards/board_list_spec.js
index 7c5888b6d82..b7cc3a8813e 100644
--- a/spec/javascripts/boards/board_list_spec.js
+++ b/spec/javascripts/boards/board_list_spec.js
@@ -154,6 +154,18 @@ describe('Board list component', () => {
});
});
+ it('sets data attribute with invalid id', (done) => {
+ component.showCount = true;
+
+ Vue.nextTick(() => {
+ expect(
+ component.$el.querySelector('.board-list-count').getAttribute('data-issue-id'),
+ ).toBe('-1');
+
+ done();
+ });
+ });
+
it('shows how many more issues to load', (done) => {
component.showCount = true;
component.list.issuesSize = 20;