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
Javier Martín
132fea9c94
Merge pull request #2913 from papayalabs/2741-updates-translatable-custom-pages-reloaded
...
Updates translatable custom pages
2018-10-03 13:23:13 +02:00
Papaya Labs
3f9dea080b
Check title and slug in spec
2018-09-28 09:43:00 +02:00
Papaya Labs
914bfa645e
Updates translatable custom pages
2018-09-27 13:46:17 +02:00
Juan Salvador Pérez García
488e7e081f
Merge branch 'dashboard' into rebase_consul_master
2018-09-27 09:18:27 +02:00
Javi Martín
5bb5cfa7fb
Make Widget::Card translatable
2018-09-26 16:09:09 +02:00
Raimond Garcia
4086220ebf
Merge pull request #2914 from microweb10/make_polls_translatable
...
Make polls translatable
2018-09-26 13:19:17 +02:00
Raimond Garcia
1fbb428004
Merge pull request #2898 from papayalabs/2889-show-active-tab-in-custom-info-texts
...
Show active tab in custom info texts
2018-09-24 21:11:25 +02:00
Papaya Labs
45da512ce9
Add Spec
2018-09-24 20:38:42 +02:00
Javier Martín
ef0192c3ff
Merge pull request #2912 from consul/backport-make-collaborative-legislation-translatable
...
Make collaborative legislation translatable
2018-09-24 17:45:59 +02:00
Javier Martín
758d3f8541
Merge pull request #2911 from consul/backport-fix_time_related_specs
...
Fix time related specs
2018-09-24 17:43:22 +02:00
Julian Herrero
df9955e0c6
make use of the new spec helper it_behaves_like translatable
2018-09-21 20:52:35 +02:00
Julian Herrero
673ec075eb
Make answers translatable
2018-09-20 17:13:40 +02:00
Julian Herrero
5e6248d2ac
Make questions translatable
2018-09-20 17:11:53 +02:00
Julian Herrero
9495208518
Make polls translatable
2018-09-20 17:07:43 +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
Javi Martín
c1bb1fb2e1
Fix flaky admin notifications spec
...
It was failing when executed right before midnight due to the date
changing between the moment the notification is created and the moment
the test checks the notification shows the current date.
2018-09-19 14:21:47 +02:00
Marko Lovic
f6749049c9
Make Admin Notifications translatable
2018-09-19 12:15:26 +02:00
Marko Lovic
5ff85d33d6
Fix submit button text for Admin Notifications admin form
...
In Madrid, the button text didn't change depending on whether the form
is for the "new" page or for the "edit" page.
In consul, the buttons texts were "create admin notification" and
"update admin notification" instead of "create notification" and "update
notification".
Also change translation key from "submit" to "submit_button" to
match other instances.
2018-09-19 12:05:18 +02:00
Javi Martín
612fdb09dd
Share translatable specs
2018-09-17 20:34:43 +02:00
Javi Martín
726110c91e
Share Globalize JavaScript interface specs
2018-09-17 20:34:20 +02:00
Raimond Garcia
cae210c155
Merge pull request #2887 from wairbut-m2c/backport/db_queries
...
[Backport] Replace `.all.each` with `.find_each` to reduce memory usage
2018-09-17 19:06:46 +02:00
Angel Perez
19b0c410da
Remove JS driver usage for legislation/processes#update scenarios
2018-09-10 11:45:29 -04:00
Angel Perez
601391954a
Refactor tests to interact directly with the UI rather than with the DOM
2018-09-10 11:41:37 -04:00
Angel Perez
ffe421ae69
Replace .all.each with .find_each on admin specs
2018-09-10 11:40:24 -04:00
Raimond Garcia
4f2ed27f8c
Merge pull request #2865 from consul/backport_1585-make_banners_translatable
...
[Backport] Make banners translatable
2018-09-10 16:41:33 +02:00
Alberto
21f36e6be5
Merge branch 'master' into feature/1-nav-content-blocks
2018-09-05 12:41:07 +02:00
Marko Lovic
0fa4b60f39
Make Banners translatable
2018-08-30 16:29:29 +02:00
Juan Salvador Pérez García
5b5095b37b
Bugfixing and several enhancements
...
* Added missing specs
* Removed models that were refactored previously
* Added simplecov when executing specs locally
* Fixed bug in poll model validation that was causing an 500 error.
2018-08-01 13:26:30 +02:00
decabeza
56bdcf4be2
Updates text on admin notifications spec
2018-07-31 13:25:53 +02:00
decabeza
3fee56e8fe
Updates admin site customization specs
2018-07-31 12:55:05 +02:00
decabeza
bb05f86156
Updates admin legislation specs
2018-07-31 12:54:59 +02:00
Raimond Garcia
2c79197a05
Merge pull request #2809 from wairbut-m2c/backport/translatable-content-for-admin
...
Basic content for I18n on Admin panel
2018-07-27 18:01:00 +02:00
Alberto
fb19aafee7
Merge pull request #2778 from wairbut-m2c/backport/investments-moderation
...
Allow budget investments to be moderated
2018-07-27 12:34:17 +02:00
Angel Perez
a943c24aa7
Replace Madrid-specific texts with CONSUL ones
2018-07-26 21:13:53 -04:00
Angel Perez
1255389ef7
Remove redundant translation specs
2018-07-26 20:49:12 -04:00
rgarcia
78a5c0356e
Add globalization javascript interface specs
2018-07-26 20:49:00 -04:00
Angel Perez
9c74fa393d
Translations can be removed
2018-07-26 20:49:00 -04:00