Add icon to sortable table

This commit is contained in:
decabeza
2019-02-19 13:58:54 +01:00
committed by Javi Martín
parent 70a1b7d1ff
commit 9e9eb1359b
3 changed files with 52 additions and 14 deletions

View File

@@ -641,7 +641,7 @@ feature 'Admin budget investments' do
expect('B First Investment').to appear_before('A Second Investment')
expect('A Second Investment').to appear_before('C Third Investment')
within('th', text: 'ID') do
expect(page).to have_css(".icon-arrow-top")
expect(page).to have_css(".icon-sortable.desc")
end
end
@@ -651,7 +651,7 @@ feature 'Admin budget investments' do
expect('A Second Investment').to appear_before('B First Investment')
expect('B First Investment').to appear_before('C Third Investment')
within('th', text: 'Title') do
expect(page).to have_css(".icon-arrow-top")
expect(page).to have_css(".icon-sortable.desc")
end
end
@@ -661,7 +661,7 @@ feature 'Admin budget investments' do
expect('C Third Investment').to appear_before('A Second Investment')
expect('A Second Investment').to appear_before('B First Investment')
within('th', text: 'Supports') do
expect(page).to have_css(".icon-arrow-top")
expect(page).to have_css(".icon-sortable.desc")
end
end
end
@@ -673,7 +673,7 @@ feature 'Admin budget investments' do
expect('C Third Investment').to appear_before('A Second Investment')
expect('A Second Investment').to appear_before('B First Investment')
within('th', text: 'ID') do
expect(page).to have_css(".icon-arrow-down")
expect(page).to have_css(".icon-sortable.asc")
end
end
@@ -683,7 +683,7 @@ feature 'Admin budget investments' do
expect('C Third Investment').to appear_before('B First Investment')
expect('B First Investment').to appear_before('A Second Investment')
within('th', text: 'Title') do
expect(page).to have_css(".icon-arrow-down")
expect(page).to have_css(".icon-sortable.asc")
end
end
@@ -693,7 +693,7 @@ feature 'Admin budget investments' do
expect('B First Investment').to appear_before('A Second Investment')
expect('A Second Investment').to appear_before('C Third Investment')
within('th', text: 'Supports') do
expect(page).to have_css(".icon-arrow-down")
expect(page).to have_css(".icon-sortable.asc")
end
end
end
@@ -705,7 +705,7 @@ feature 'Admin budget investments' do
expect('B First Investment').to appear_before('A Second Investment')
expect('A Second Investment').to appear_before('C Third Investment')
within('th', text: 'ID') do
expect(page).to have_css(".icon-arrow-top")
expect(page).to have_css(".icon-sortable.desc")
end
end
@@ -715,7 +715,7 @@ feature 'Admin budget investments' do
expect('A Second Investment').to appear_before('B First Investment')
expect('B First Investment').to appear_before('C Third Investment')
within('th', text: 'Title') do
expect(page).to have_css(".icon-arrow-top")
expect(page).to have_css(".icon-sortable.desc")
end
end
@@ -725,7 +725,7 @@ feature 'Admin budget investments' do
expect('C Third Investment').to appear_before('A Second Investment')
expect('A Second Investment').to appear_before('B First Investment')
within('th', text: 'Supports') do
expect(page).to have_css(".icon-arrow-top")
expect(page).to have_css(".icon-sortable.desc")
end
end
end
@@ -737,7 +737,7 @@ feature 'Admin budget investments' do
expect('B First Investment').to appear_before('A Second Investment')
expect('A Second Investment').to appear_before('C Third Investment')
within('th', text: 'ID') do
expect(page).to have_css(".icon-arrow-top")
expect(page).to have_css(".icon-sortable.desc")
end
end
end