Alberto
63f7c18399
Merge pull request #3123 from consul/admin-questions
...
[Backport] Admin poll questions index
2018-12-26 11:32:28 +01:00
decabeza
9c827d6ce0
Adds poll name on admin poll questions index
2018-12-19 21:00:09 +01:00
decabeza
aebd29f7e2
Adds create question button to admin proposals show
2018-12-19 16:08:57 +01:00
voodoorai2000
7917cea676
Change to_not for not_to
...
Eventhough some of us sentimentals still like the syntax `to_not` the current trend is to move to the new syntax `not_to`.
In this commit we are updating the references of expectations that used `to_not` to `not_to`.
2018-12-15 12:33:28 +01:00
Julian Herrero
d819a9ccbc
add missing spec
2018-12-02 17:12:57 +01:00
Javi Martín
f5bb3c64a1
Don't run specs if there are custom fallbacks
...
This spec depends on French falling back to Spanish and was failing on
forks using a different fallback.
2018-10-22 16:36:18 +02:00
Javi Martín
e0b9c1bfdd
Update poll question answers translatable fields
...
We needed to bring back support for CKEditor in our translatable form,
which we had temporarily remove.
And now we support CKEditor in our translatable specs, and so we can
remove the duplicated specs for poll question answers.
2018-10-22 16:13:48 +02:00
Javi Martín
d1249d0b4f
Update poll questions translatable fields
...
We need to replace ".title=" by ".title_#{locale}=" in one place because
for some reason globalize builds a new translation record when using the
latter but it doesn't build one when using the former.
2018-10-22 16:13:30 +02:00
Javi Martín
759de935ee
Update polls translatable fields
...
The `:name` attribute is still allowed in the controller because some
forks use it when creating a poll from a budget.
2018-10-22 15:52:58 +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
decabeza
20cf51c0bd
Updates texts on specs
2018-06-08 18:30:51 +02:00
Angel Perez
4c0deb0eca
Remove video_url attr from Admin::Poll::Question form
2018-05-23 07:27:12 -04:00
Angel Perez
44b1eb929a
Move 'Show stats and results' form to Admin::Poll#results tab
2018-05-23 07:27:12 -04:00
decabeza
f3ef5ae71e
Fixes poll questions answer images absolute path spec
2018-05-03 20:12:44 +02:00
Alberto
a709f846be
Merge pull request #2046 from wairbut-m2c/aperez-removable-admin-answer-images
...
Removable answer's associated images
2018-05-03 17:24:48 +02:00
Angel Perez
122b17033b
Use Selenium API to accept/dismiss JS modals/browser alerts
...
JS modals/browser alerts are not automatically accepted now with
Selenium, events that trigger such events must be wrapped in one
of the following methods: `accept_alert`, `accept_confirm` or
`dismiss_confirm`
2018-03-27 14:47:49 -04:00
Angel Perez
10fac6d2d1
Admins can delete an answer's associated images ( #1999 )
2018-01-19 15:29:18 -04:00
Bertocq
2fb1112066
Replace existing Time.zone.today.to_date for just Date.current
2018-01-17 00:45:30 +01:00
Bertocq
2f27a86034
Replace deprecated capybara only_path option for ignore_query
2018-01-11 00:07:56 +01: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
Bertocq
7f14544f71
Enable Capybara/CurrentPathExpectation cop & fix issues
...
Read cop description http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/CurrentPathExpectation to better understand reasons behind enforcing this rule
On some cases the `only_path: true` was needed as argument of `have_current_path` matcher to avoid comparing the url parameters and just checking the path.
2018-01-06 23:31:41 +01:00
Bertocq
c2b5083d4f
Fix missing and extra spacing
2017-12-16 17:59:16 +01:00
iagirre
4819d1b74e
Enabled one test disabled to run in local
2017-10-30 16:55:13 +01:00
iagirre
4b8a471d38
Specs added to test the functionality and some UI modified to make test pass
2017-10-30 16:50:25 +01:00
Raimond Garcia
8ca4d0fb7f
Merge pull request #2095 from consul/2052-admin_results_and_stats
...
Admin results and stats
2017-10-23 13:42:40 +02:00
María Checa
b1e91cdc03
Tests improvements
2017-10-23 12:57:52 +02:00
María Checa
6b5c29f23e
Added tests
2017-10-23 12:25:51 +02:00
Bertocq
17e6a66b80
Refactor booth assigment management feature specs to test new assign/unassign feature
2017-10-19 22:33:00 +02:00
rgarcia
98f5d70e6d
makes specs more robust
2017-10-19 11:28:09 +02:00
rgarcia
6a697bd6d0
adds specs
2017-10-19 11:28:09 +02:00
Bertocq
39f23d3b7b
Switch from valid_answers to question_answers on specs
2017-10-18 01:28:38 +02:00
Bertocq
60f2815010
Add missing total_results check on poll result specs
2017-10-18 01:27:39 +02:00
Bertocq
ce0a7f6fad
Rubocop autocorrections
2017-10-17 22:00:00 +02:00
Bertocq
68e09e8a9a
Fix vote collection date expectations
2017-10-17 12:16:09 +02:00
Bertocq
64db7e1dec
Merge branch 'master' into fix/shift_date_range_expired
2017-10-16 19:43:00 +02:00
María Checa
7d22b386b9
Added tests
2017-10-16 16:08:15 +02:00
Raimond Garcia
b75480a5c9
Merge pull request #2058 from consul/booth-shifts-back
...
Booth shifts back link
2017-10-16 10:48:56 +02:00
rgarcia
f2d99d6747
searches for officers assigned to a poll
2017-10-13 18:39:13 +02:00
decabeza
bf5021c6a5
changes back link to available booths when manage shifts
2017-10-13 18:11:41 +02:00
Bertocq
16f499d5fd
Force shift dates to start on current date at minimun
2017-10-13 17:19:51 +02:00
Bertocq
79c8c2f826
Add scope on shift creation date ranges to current/recounting/incoming polls, plus cover with test
2017-10-13 17:01:48 +02:00
BertoCQ
df5934e0c2
Merge pull request #2026 from consul/polls-admin-polish
...
Polls admin polish
2017-10-13 12:59:27 +02:00
decabeza
7a58b49851
updates specs
2017-10-11 20:14:25 +02:00
decabeza
bdc3538100
Merge branch 'master' into polls-admin-polish
2017-10-11 19:12:34 +02:00
Bertocq
34c278db74
Small fixes for Poll Question Answer ordering
2017-10-11 12:05:20 +02:00
iagirre
943c1f23af
Spects added to test the order of answers. Default order for question_answers set.
2017-10-10 16:38:55 +02:00
decabeza
090ff83cc1
updates edit texts on specs
2017-10-09 20:09:56 +02:00