Commit 3f769e78 authored by Phil Hughes's avatar Phil Hughes

Increased scrolling speed when dragging issue

Fixed failing tests
parent 94673392
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
ghostClass: 'is-ghost', ghostClass: 'is-ghost',
filter: '.has-tooltip', filter: '.has-tooltip',
scrollSensitivity: 100, scrollSensitivity: 100,
scrollSpeed: 10, scrollSpeed: 20,
onStart: function () { onStart: function () {
document.body.classList.add('is-dragging'); document.body.classList.add('is-dragging');
}, },
......
...@@ -22,7 +22,7 @@ describe 'Issue Boards', feature: true, js: true do ...@@ -22,7 +22,7 @@ describe 'Issue Boards', feature: true, js: true do
expect(page).to have_content('Welcome to your Issue Board!') expect(page).to have_content('Welcome to your Issue Board!')
end end
it 'hides the blank state when clicking nermind button' do it 'hides the blank state when clicking nevermind button' do
page.within('.board-blank-state') do page.within('.board-blank-state') do
click_button('Nevermind, I\'ll use my own') click_button('Nevermind, I\'ll use my own')
end end
...@@ -158,10 +158,6 @@ describe 'Issue Boards', feature: true, js: true do ...@@ -158,10 +158,6 @@ describe 'Issue Boards', feature: true, js: true do
page.within(all('.board')[1]) do page.within(all('.board')[1]) do
expect(page.find('.board-header')).to have_content('3') expect(page.find('.board-header')).to have_content('3')
expect(page).to have_selector('.card', count: 3) expect(page).to have_selector('.card', count: 3)
all('.card').each do |card|
expect(card.all('.label').last).to have_content(planning.title)
end
end end
end end
end end
...@@ -220,7 +216,6 @@ describe 'Issue Boards', feature: true, js: true do ...@@ -220,7 +216,6 @@ describe 'Issue Boards', feature: true, js: true do
expect(all('.board')[1]).to have_selector('.card', count: 3) expect(all('.board')[1]).to have_selector('.card', count: 3)
expect(all('.board')[1]).to have_content(issue8.title) expect(all('.board')[1]).to have_content(issue8.title)
expect(all('.board')[1].all('.card').first).to have_content(planning.title)
end end
context 'issue card' do context 'issue card' do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment