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:
Javi Martín
2018-09-21 13:48:29 +02:00
parent dc9cf5da55
commit 7d69f2aaab

View File

@@ -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"