Alberto Garcia Cabeza
54fbae6339
adds links to login or verification on question answers
2018-12-05 14:31:58 +01:00
Javier Martín
4f9ca04a84
Merge pull request #3057 from consul/backport-make-milestones-polymorphic
...
[Backport] Make milestones polymorphic
2018-12-05 12:12:04 +01:00
Julian Nicolas Herrero
99abc712fe
Merge pull request #3065 from microweb10/poll_question_create_from_proposal_show
...
Add missing feature spec: Admin poll questions Create from successful proposal show
2018-12-05 10:11:08 +01:00
Julian Nicolas Herrero
14d4d175d4
Merge pull request #3064 from microweb10/budget_investments_valuator_group_spec
...
Add missing feature spec Admin budget investments Edit Do not display valuators of an assigned group
2018-12-05 10:10:09 +01:00
decabeza
04e3bf5797
Removes references to deleted general terms page
2018-12-04 17:25:34 +01:00
Julian Nicolas Herrero
6fbd51618a
Merge pull request #3066 from microweb10/proposal_notifications_group_for_same_proposal
...
Add missing feature spec: Proposal Notifications In-app notifications from the proposal's author group notifications for the same proposal
2018-12-04 09:17:25 +01:00
Julian Herrero
c413497094
add missing spec
2018-12-03 17:12:47 +01:00
Julian Herrero
aa41ce2c96
use Capybara.using_session method for multiple browsers specs
2018-12-02 18:12:30 +01:00
Julian Herrero
333098502e
fix typo
2018-12-02 18:12:03 +01:00
Julian Herrero
43dac8d276
add missing spec
2018-12-02 17:45:39 +01:00
Julian Herrero
d819a9ccbc
add missing spec
2018-12-02 17:12:57 +01:00
Javi Martín
ea9576096b
Don't load tasks if they're already loaded
...
We were having problems under certain conditions with Travis and
Knapsack where tasks were still being loaded twice and so they were
being executed twice.
2018-11-30 17:28:59 +01:00
Javi Martín
85ac4e6c22
Use Date.current instead of Date.today
...
Using `Date.today` was making the spec fail around midnight.
2018-11-30 16:04:40 +01:00
Javi Martín
d3882df437
Fix milestones migration not updating ID sequence
...
When we insert a record in PostgreSQL and we specify the ID, the
internal ID sequence for that table isn't updated.
In order to keep the original IDs so we didn't break any foreign keys,
we specified the IDs when copying the table, resulting in a table having
its ID sequence with a value of an existing record. When trying to
insert a new record, we got a `PG::UniqueViolation` exception.
Updating the sequence after the data migration might not be the most
elegant solution, but it's easy to do and it's already been tested on a
production environment.
2018-11-30 14:15:21 +01:00
Javi Martín
87b073cbca
Migrate milestones images and documents
2018-11-30 14:15:21 +01:00
Javi Martín
1a5b73a0bd
Don't load tasks several times in specs
...
Calling `load_tasks` in several files made rails load the tasks several
times, and so they were executed several times when called.
Since the milestone migration can't be executed twice in a row (it would
fail with duplicated ID records), loading the tasks several times made
the milestone migrations task specs fail.
2018-11-30 14:15:21 +01:00
Javi Martín
a6adc0b5ab
Reduce I18n.t usage in spec
...
We also make the line shorter so rubocop doesn't complain.
2018-11-30 14:15:21 +01:00
Javi Martín
9a093d5f8a
Use let instead of instance variables
2018-11-30 14:15:21 +01:00
Marko Lovic
4c3dadf1fb
Add Rake task to migrate milestone data to new tables
2018-11-30 14:15:21 +01:00
Marko Lovic
c0f6fa182f
Make Milestones general, and not specific to Budget Investments
...
Generalize the Budget::Investment::Milestone model to a
polymorphic Milestone model so it can be used for entities
other than Budget::Investment.
2018-11-30 14:15:21 +01:00
Marko Lovic
81f516efd7
Change BudgetInvestmentStatus to Milestone::Status
...
Generalize the BudgetInvestmentStatus model to Milestone::Status so it
is not specific to budget investments, but can be used for any entity
which has milestones. This is in preparation to make the Milestone
model polymorphic and usable by entities other than budget investments.
2018-11-30 14:15:21 +01:00
Javi Martín
dc65c0cdb1
Fix space differences with Madrid's fork
2018-11-30 14:06:33 +01:00
Javi Martín
b153f5f902
Remove redundant Capybara actions
...
Resetting sessions and driver is automatically done by requiring
'capybara/rspec', as shown by the (lack of) that configuration for RSpec
in the Capybara README, manual testing of those settings, and Capybara's
code itself.
2018-11-30 13:37:16 +01:00
Javi Martín
2f860236a5
Reset page driver after every spec using it
...
There were some issues because some specs directly used the driver but
didn't reset it after the test.
2018-11-30 13:34:01 +01:00
Raimond Garcia
e23fbc8d58
Merge pull request #2970 from PierreMesure/Remove-icon-png-from-settings
...
Removed icon_home and fixed corresponding test
2018-11-27 11:11:51 +01:00
Raimond Garcia
181918330c
Merge pull request #3029 from clairezed/patch-1
...
Update debates_spec.rb
2018-11-27 11:09:15 +01:00
Raimond Garcia
1b7a2adf56
Merge pull request #3034 from behraaang/bugfix/pagination-after-select
...
Fix pagination after selecting/unselecting budget investment
2018-11-27 11:04:41 +01:00
Raimond Garcia
2ef83619c3
Merge pull request #3048 from jaflutz/2930-draft-phase-processes
...
Adds draft phase functionality in legislation processes
2018-11-27 11:01:27 +01:00
decabeza
6d7c5f1b78
Refactors admin administrators spec
...
This refactoring avoids "Use let instead of an instance variable" rubocop warning
2018-11-22 11:41:59 +01:00
decabeza
ae3a2ed3f3
Adds administrator id on admin administrators index page
2018-11-22 11:41:54 +01:00
João Lutz
34b58a5208
Adds draft phase functionality in legislation processes
2018-11-19 22:18:50 -02:00
behraaang
88f01fb999
fix spec
2018-11-16 01:12:14 +03:30
behraaang
7a9888a793
Fix failed spec, add pagination spec for unselecting an investemnt
2018-11-15 23:30:08 +03:30
decabeza
46671fe447
Removes unnecessary pages
2018-11-15 11:52:57 +01:00
decabeza
9284453e69
Adds spec when no message is displayed
2018-11-14 13:56:22 +01:00
Javier Martín
40224fed39
Merge pull request #3008 from consul/backport-1194-fix_flaky_valuators_specs
...
Fix flaky spec: Admin budget investment mark/unmark visible to valuators
2018-11-14 13:34:45 +01:00
decabeza
5abeeb8588
Fixes date format on legislation helper
2018-11-14 12:41:22 +01:00
Raimond Garcia
6cfd0c2e13
Merge pull request #3030 from consul/fix-poll-results-accuracy
...
Fix poll results accuracy
2018-11-13 14:03:49 +01:00
Alberto
56a2978b87
Merge pull request #3033 from consul/budgets-unselected-message
...
[Backport] Budgets unselected message
2018-11-12 18:22:54 +01:00
decabeza
dfa7148406
Shows unselected message only on balloting or later phase
2018-11-12 17:23:58 +01:00
decabeza
13b3d9cebc
Fixes admin menu link when create a new widget
2018-11-12 17:11:17 +01:00
Juanjo Bazán
d8df2c1fa8
adds proper accuracy to spec
2018-11-11 14:54:58 +01:00
Claire Zuliani
3b5319508c
Update debates_spec.rb
...
If I trust https://github.com/consul/consul/blob/master/db/seeds.rb#L85 , debates recommendations Setting title is `recommendations_on_debates`, and not `recommendations_for_debates`.
2018-11-10 13:48:53 +01:00
Alberto
c25eb694bc
Merge pull request #3023 from consul/budget-executions
...
[Backport] Budget executions
2018-11-08 13:01:27 +01:00
decabeza
c8f49644ce
Fixes english translations
2018-11-08 12:07:13 +01:00
decabeza
0c5ac8cba6
Removes custom path on budgets executions specs
2018-11-08 11:59:29 +01:00
decabeza
1d5335c782
Display last milestones image
...
Also adds a second order to ensure the order to display milestones with same publication date is always the same
2018-11-07 18:25:02 +01:00
decabeza
ba1a6b4cc8
Display first image available for milestones
2018-11-07 18:09:23 +01:00
voodoorai2000
5856af03a5
Fix exception when no available milestones
...
We were getting an exception when quering[1] for milestones which were not present, due to for example having a publication date later than today
Adding a `try` statement and spec to avoid this situation
[1] 82efc3dd66/app/controllers/budgets/executions_controller.rb (L16)
2018-11-07 18:08:10 +01:00
Javier Martín
bad750a896
Merge pull request #2864 from consul/backport_1543-budget_execution_list
...
Budget execution list
2018-11-07 15:44:57 +01:00