Commit Graph

60 Commits

Author SHA1 Message Date
Julian Herrero
31ac8b7f55 Change single quotes to double quotes 2019-02-15 11:40:39 +01:00
decabeza
6b62ba0e91 Show cached_votes_score on admin legislation proposals 2019-02-12 18:42:44 +01:00
Javier Martín
32504b8840 Make Capybara check the page between votes.
As pointed out in PR #2734:

"After clicking the first link, there's an AJAX request which replaces
the existing `.in-favor a` and `.against a` links with new elements. So
if Capybara tries to click the existing `.against a` link at the same
moment it's being replaced, clicking the link won't generate a new
request".

Making Capybara check the page for new content before clicking the
second link solves the problem, in the same way 4ddc869 solved the same
problem in the comments section.
2018-07-13 22:58:12 +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
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
rgarcia
20ca60732b fixes flaky spec
Using correct resource in path
2017-09-19 15:14:28 +02:00
Bertocq
798b646135 Cleanup Settings values modified after specs are run 2017-06-07 20:55:42 +02:00
rgarcia
53c5ea7e90 fixes specs 2017-01-10 21:30:38 +01:00
kikito
2a2179d0f3 Merge branch 'master' into budget 2016-11-28 11:41:49 +01:00
kikito
f0b8cfd4a2 Time.now -> Time.current 2016-11-23 19:19:19 +01:00
rgarcia
53d53ea9fb moves vote specs to budget scoped folder 2016-09-10 16:22:40 +02:00
rgarcia
29cad341f5 Adds voting in selecting phase 2016-09-10 16:22:40 +02:00
Juanjo Bazán
e6a9cb4fcc disable voting on sps if setting disabled
refactors hover messages on sps votes
2016-04-15 23:01:00 +02:00
Juanjo Bazán
c536a12e3d adds voting to spending proposals index 2016-03-30 18:47:40 +02:00
rgarcia
a6d7f9b323 runs all specs 2016-03-29 16:44:15 +02:00
rgarcia
ed1ec1c553 adds votes to spending proposals 2016-03-29 14:53:46 +02:00
palomahnhp
837da1b6b2 show link to sign in for no connect users 2016-02-04 10:40:13 +01:00
Juanjo Bazán
ff03f20f4e refactors spec to avoid flaky test errors 2016-01-29 11:41:41 +01:00
Josep Jaume Rey Peroy
5de3d700e4 Simplify Settings API 2016-01-18 12:43:34 +01:00
Alberto Garcia Cabeza
2b5a184bfe Updates texts for tests 2015-10-28 14:03:02 +01:00
Alberto Garcia Cabeza
abad54d01a Updates tests with new texts 2015-10-28 12:47:51 +01:00
Juanjo Bazán
b5c1f4f237 removes uri parsing in favor of current_path 2015-10-23 13:19:03 +02:00
Juanjo Bazán
1136c5546a adds featured proposals
via new action featured_vote
Featured proposals are never duplicated in the filtered lists
Featured are not calculated/shown in searches.
2015-10-22 11:54:17 +02:00
kikito
49e1204140 refactors votes_spec 2015-10-20 19:44:46 +02:00
kikito
1e08217b91 adds another refactor to votes 2015-10-20 19:20:48 +02:00
kikito
b4c4bda8a7 refactors votes_spec 2015-10-20 18:46:47 +02:00
Alberto Garcia Cabeza
5dde8428cf Changes tests for new texts 2015-09-22 17:16:25 +02:00
rgarcia
eea3b0922e adds already supported proposals 2015-09-14 21:21:34 +02:00
rgarcia
fff099e72d removes obsolete feature spec 2015-09-14 21:21:05 +02:00
rgarcia
f74b176de3 removes obsolete spec 2015-09-14 20:56:11 +02:00
rgarcia
58357dad2c removes featured debates and proposals 2015-09-14 19:06:16 +02:00
rgarcia
47ebc41c69 fixes random failing spec 2015-09-14 13:30:33 +02:00
Juanjo Bazán
d60f342928 fix votes spec 2015-09-14 13:24:45 +02:00
rgarcia
10b168ed71 fixing conflicts 2015-09-14 13:12:52 +02:00
rgarcia
6f7a6dcf3b removes possibility of taking away support for proposals 2015-09-14 13:11:47 +02:00
kikito
94a6e14769 adds tests for proposals comments 2015-09-14 12:57:52 +02:00
rgarcia
8787f4b5a8 adds pending vote spec 2015-09-13 22:02:16 +02:00
rgarcia
6641c380bc fixing conflicts 2015-09-13 22:00:59 +02:00
rgarcia
ad8880d02c adds proposal votes 2015-09-13 21:56:52 +02:00
Juanjo Bazán
0062ea13e9 fixes build 2015-09-13 14:26:09 +02:00
Juanjo Bazán
c8d4a0088a removes url parsing in favor of current_path 2015-09-12 21:46:38 +02:00
kikito
de4706ffd4 Refactors votes_spec
* Some backgrounds created variables which were never used (@debates).
This made the tests fail when the debate orders changed.
* Some backgrounds visited pages when they didn’t need to
* Pablo and Manuela are now created at the beginning
2015-09-04 11:53:22 +02:00
Juanjo Bazán
bbf96259fc adds controller check for anonymous votes 2015-09-01 17:49:02 +02:00
rgarcia
bea38226fe fixes spacing 2015-08-16 22:45:43 +02:00
David Gil
d134284774 background is the new before(:each) 2015-08-12 14:59:54 +02:00
David Gil
1ee3378768 adding a few tests 2015-08-12 14:59:54 +02:00
David Gil
caa0c3eaab change background by before(:each) in tests - background is evil! 2015-08-12 14:59:22 +02:00
rgarcia
4dd7e14ac4 moves featured debates to home page 2015-08-11 17:26:25 +02:00
Juanjo Bazán
e34ae1a805 adds tests for :js vote specs 2015-08-07 09:21:29 +02:00
Juanjo Bazán
33489e7b0c adds css classes to voted options in debates
for logged users.
Closes #88
2015-08-06 18:53:05 +02:00