From 9452fd2b4818c63237c4e0172c4f7192be6b04e0 Mon Sep 17 00:00:00 2001 From: David Kuri Date: Tue, 9 Jan 2018 09:24:08 +0000 Subject: [PATCH] Fixing re-ordering of an issue when dragging it to the bottom a long issue list in the board --- .../javascripts/boards/components/board_list.js | 2 +- .../36906-reordering-issues-to-the-bottom.yml | 5 +++++ spec/javascripts/boards/board_list_spec.js | 12 ++++++++++++ 3 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 changelogs/unreleased/36906-reordering-issues-to-the-bottom.yml diff --git a/app/assets/javascripts/boards/components/board_list.js b/app/assets/javascripts/boards/components/board_list.js index 84b76a6f1b1..d8cf532fe78 100644 --- a/app/assets/javascripts/boards/components/board_list.js +++ b/app/assets/javascripts/boards/components/board_list.js @@ -187,7 +187,7 @@ export default {
  • + data-issue-id="-1"> { }); }); + 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;