Javi Martín
0945f046a3
Avoid using xpath in specs
...
Using xpath is usually harder to read and more fragile.
2018-10-04 16:31:00 +02:00
Javi Martín
959270b0bb
Separate setup, actions and expections in specs
2018-10-04 16:31:00 +02:00
Javi Martín
2fb5fb5fb2
Add missing newline characters
2018-10-04 16:31:00 +02:00
Javi Martín
81871a56f8
Simplify legislation process specs
...
We kill two birds with one stone and also make each line less than 100
characters long.
2018-10-04 16:30:59 +02:00
Javi Martín
7d69f2aaab
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.
2018-10-04 16:29:01 +02:00
Javi Martín
dc9cf5da55
Order by supports in descending order
...
Just as we do with confidence score, and as admins expect when they
order by received supports: the ones with more supports appear first.
2018-10-04 16:29:01 +02:00
Javi Martín
75d1ab1e52
Use AJAX requests to select legislation proposals
...
Now the interface is more similar to the one in budget investments.
2018-10-04 16:29:01 +02:00
Raúl Fuentes
a859de5d16
Test the selectable proposals
2018-10-04 16:29:01 +02:00
Javi Martín
4d238c5d07
Fix crash updating legislation process categories
...
We were expecting translation parameters in legislation processes
`update` action. However, those parameters aren't sent when we get to
that action through the "proposals" tab.
2018-09-19 14:54:52 +02:00
Javi Martín
58ad333791
Remove duplicate lines
2018-09-19 14:54:52 +02:00
Marko Lovic
64d72ca8e7
Enable JS in shared translatable test
...
Due to its markdown editor, the admin draft version page
requires JS to correctly render the draft version form.
2018-09-19 14:54:24 +02:00
Marko Lovic
05bfa193cd
Make Legislation Draft Versions translatable
2018-09-19 14:54:24 +02:00
Marko Lovic
06347062dd
Make Legislation Questions translatable
2018-09-19 14:54:24 +02:00
Marko Lovic
d78aea1fd3
Make Legistlation Processes translatable
2018-09-19 14:54:24 +02:00
Angel Perez
19b0c410da
Remove JS driver usage for legislation/processes#update scenarios
2018-09-10 11:45:29 -04:00
decabeza
bb05f86156
Updates admin legislation specs
2018-07-31 12:54:59 +02:00
decabeza
43b75b8356
Updates texts on admin legislation specs
2018-06-08 18:49:19 +02:00
Bertocq
34bb9d65b1
Enable RSpec/NotToNot cop and fix all issues
...
Read about cop at http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/NotToNot
2018-01-07 17:39:48 +01:00
rgarcia
a7ce8d5c70
fixes flaky spec
...
Reactivates feature setting after spec
2017-09-19 15:14:28 +02:00
Eduardo Martinez Echevarria
0bc318c823
Add tests to check visibility of processes depending on published attribute
2017-06-30 15:08:23 +02:00
Juanjo Bazán
d165116b5e
fixes draft spec
2017-06-16 15:19:38 +02:00
Bertocq
8440f6c749
Increase coverage of admin feature spec for legislation process dates enabling
2017-06-14 08:52:11 +02:00
Bertocq
1dac73eb48
Fix debate phase checkbox name on admin legislation process feature spec, as well as expectations
2017-06-14 00:29:15 +02:00
Bertocq
0c27f1ffde
Rename Legislation Process final_publication_date field to more descriptive result_publication_date
2017-06-13 22:04:36 +02:00
Bertocq
2c82eec0fd
Remove target and how_to_participate columns from legislation_processes table, no longer used
2017-06-11 00:04:50 +02:00
Bertocq
02d31953be
Remove Target field from Legislative Process from views, i18n, factories and specs
2017-06-10 23:16:13 +02:00
Bertocq
d624a08abc
Remove How To Participate field from Legislative Process from views, i18n, factories and specs
2017-06-10 23:11:55 +02:00
Bertocq
a33341ec52
Increase admin legislative process feature spec to also check detail and list views
2017-06-07 18:43:34 +02:00
rgarcia
f66102abdc
fixes specs
2017-06-07 10:32:25 +02:00
Fernando Blat
04ad8bb6c7
Refactor JS and add update test
2017-02-10 09:48:28 +01:00
Fernando Blat
f7a6f8399b
Add pending translations
2017-01-23 14:58:12 +01:00
Amaia Castro
99e3afd6ca
Merge branch 'legislation-module-stable' into 13-draft-version-page
2017-01-03 09:28:26 +01:00
Fernando Blat
c47993ec91
Merge pull request #49 from medialab-prado/47-fix-bug-deleting-questions
...
Fix stack level too deep bug when deleting questions with answers
2017-01-03 09:23:56 +01:00
Amaia Castro
98b6dd75ea
Fix stack level too deep bug when deleting questions with answers
2017-01-02 20:45:20 +01:00
Amaia Castro
5627b18be2
Draft Version page
2017-01-02 18:05:15 +01:00
Amaia Castro
0cd2b62e2c
Integrate admin html and css from sandbox
2016-12-30 11:00:34 +01:00
Amaia Castro
d25d6c178c
Legislation Questions model and basic admin
2016-12-20 18:52:43 +01:00
Amaia Castro
400b510b71
Store the processed html from the markdown text body field
2016-12-14 11:32:28 +01:00
Amaia Castro
e4fe499e66
DraftVersion base model and very basic admin pages
2016-12-06 12:10:20 +01:00
Amaia Castro
369804a2ba
Base Legislation::Process model and admin page
2016-12-05 13:24:23 +01:00