diff options
author | Phil Hughes <me@iamphill.com> | 2018-01-09 09:25:42 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-01-09 09:25:42 +0000 |
commit | 639cfdc221617f13ee08e673e0b5e51efc344744 (patch) | |
tree | 1becaaa34ef5bb857330a8a5d3d4b2037954cda1 /spec | |
parent | d2d634a9902d338b029c2b0662c24446b14bc3e0 (diff) | |
parent | 9452fd2b4818c63237c4e0172c4f7192be6b04e0 (diff) | |
download | gitlab-ce-639cfdc221617f13ee08e673e0b5e51efc344744.tar.gz |
Merge branch '36906_Reordering_issues_to_the_bottom' into 'master'
Fixing re-ordering of an issue when dragging it to the bottom a long issue list in the board
Closes #36906
See merge request gitlab-org/gitlab-ce!16250
Diffstat (limited to 'spec')
-rw-r--r-- | spec/javascripts/boards/board_list_spec.js | 12 |
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; |