Properly test order by ID
By default records are already ordered by ID, so we weren't checking the ordering by ID functionality was working properly. Making the records be ordered by title first makes the test a bit more reliable.
This commit is contained in:
@@ -73,7 +73,7 @@ feature 'Admin legislation processes' do
|
||||
proposal1 = create(:legislation_proposal, title: 'bbbb', cached_votes_up: 10, legislation_process_id: legislation_process.id)
|
||||
proposal2 = create(:legislation_proposal, title: 'aaaa', cached_votes_up: 20, legislation_process_id: legislation_process.id)
|
||||
proposal3 = create(:legislation_proposal, title: 'cccc', cached_votes_up: 30, legislation_process_id: legislation_process.id)
|
||||
visit admin_legislation_process_proposals_path(legislation_process.id)
|
||||
visit admin_legislation_process_proposals_path(legislation_process.id, order: :title)
|
||||
|
||||
select "Id", from: "order-selector-participation"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user