Javier Martín
b1996e5694
Check page between AJAX requests in proposals spec.
...
There was a flaky spec supporting proposals. It's hard to reproduce and
be sure about what was going on, so here is my best guess. Given the
code:
```
within(".proposals-list") { click_link proposal.title }
within("#proposal_#{proposal.id}_votes") { click_link('Support') }
```
The first clicked link generates an AJAX request. Usually, Capybara
would wait for the AJAX request to generate a "Support" link in the
element `#proposal_XX_votes`. However, there's already a
`#proposal_XX_votes` element with a "Support" link on the proposals
index page!
So Capybara doesn't have to wait for the AJAX request to finish before
clicking the "Support" link. From then on, anything can happen.
Another option that works:
```
within(".proposals-list") { click_link proposal.title }
within(".proposal-show #proposal_#{proposal.id}_votes") { click_link('Support') }
```
With this code, the link selector fails on the proposals index page, and
Capybara waits for the AJAX request to finish.
Related to issue #2558 .
2018-07-04 00:00:51 +02:00
Alberto
24e4f027b1
Merge pull request #2694 from consul/homepage-design
...
Homepage design
2018-06-22 18:40:20 +02:00
decabeza
de6d919ff0
Fixes scss lint warning
2018-06-22 18:01:39 +02:00
decabeza
6477983a85
Adds card hover effect
2018-06-22 18:01:28 +02:00
decabeza
79eea245a4
Adds gradient overlapping card image
2018-06-22 18:01:12 +02:00
decabeza
c710e31b4a
Replaces header and debates images
2018-06-22 18:00:39 +02:00
Alberto
5bada5bde6
Merge pull request #2692 from consul/admin-menu-toggle
...
Fixes admin menu toggle
2018-06-22 17:34:23 +02:00
Alberto
63f0a95f2b
Merge pull request #2693 from consul/homepage-cards
...
Homepage cards
2018-06-22 17:23:46 +02:00
Alberto
6133afa4ab
Merge pull request #2679 from PierreMesure/2667-Create-dev-seeds-to-homepage
...
Adding homepage header and cards seeds
2018-06-22 16:49:07 +02:00
decabeza
5afe255c1b
Adds data-equalizer to fix height on homepage cards
2018-06-22 14:02:51 +02:00
decabeza
804fabdc25
Fixes admin menu toggle
2018-06-22 13:56:25 +02:00
Pierre Mesure
1ebcf04186
Adding images and seeds for the homepage
2018-06-15 14:26:29 +02:00
rgarcia
a8178a6ca8
Fix specs
2018-06-12 15:11:06 +02:00
Raimond Garcia
399cc5ad06
Merge pull request #2653 from aamarill/fix-2644-split-spec-helpers
...
Split spec common actions support helper
2018-06-12 15:09:40 +02:00
Raimond Garcia
e93b8a5e8f
Merge branch 'master' into fix-2644-split-spec-helpers
2018-06-12 14:26:26 +02:00
Alberto
09bcf81ded
Merge pull request #2666 from consul/admin-ui
...
Admin UI
2018-06-11 17:23:08 +02:00
decabeza
56ee33d947
Removes content pending to backport
2018-06-08 19:46:07 +02:00
decabeza
85efdfbf47
Restores removed columns
2018-06-08 19:00:21 +02:00
rgarcia
3e330193d4
Fix select investment specs
...
The select button seems to be outside the window. Removing some columns
to make the select button visible by capybara
This is just a temporary fix, we have to find a better solution.
Playing with the css to find an appropriate length for the table
containing this select button, is probably the way to go
2018-06-08 18:59:57 +02:00
decabeza
55097ac643
Updates specs for show to valuators checkbox
2018-06-08 18:59:53 +02:00
decabeza
43b75b8356
Updates texts on admin legislation specs
2018-06-08 18:49:19 +02:00
decabeza
0858b3103a
Shows always show to valuators on investments table
2018-06-08 18:48:58 +02:00
decabeza
4fca07172c
Reorders and improve i18n for legislation processes form
2018-06-08 18:45:52 +02:00
decabeza
573a7e7c13
Moves content blocks info to index view
2018-06-08 18:45:45 +02:00
decabeza
bf4d1cd8e2
Adss missing th on legislation processes index table
2018-06-08 18:45:10 +02:00
decabeza
bcd678c646
Removes hollow class on moderators and valuators buttons
2018-06-08 18:40:26 +02:00
decabeza
6ce6b548b0
Updates i18n texts on specs
2018-06-08 18:40:07 +02:00
decabeza
a669bd86a8
Improves layout and i18n for admin newsletters
2018-06-08 18:38:21 +02:00
decabeza
954a315d70
Removes investments link on admin budgets heading
2018-06-08 18:37:03 +02:00
decabeza
3b08722e08
Removes duplicated link on admin budgets groups
2018-06-08 18:36:56 +02:00
decabeza
ee437e1706
Improves i18n on admin notifications form
2018-06-08 18:35:43 +02:00
decabeza
ca5d0f5e8c
Fixes styles of management layout header
2018-06-08 18:32:40 +02:00
decabeza
09c359fd46
Updates i18n of management menu
2018-06-08 18:32:35 +02:00
decabeza
156997d936
Removes old help on moderation dashboard
2018-06-08 18:32:26 +02:00
decabeza
28234b333f
Improves legislation questions form
2018-06-08 18:32:12 +02:00
decabeza
66376f8e95
Fixes tabs markup on poll booth assignments show
2018-06-08 18:32:01 +02:00
decabeza
20cf51c0bd
Updates texts on specs
2018-06-08 18:30:51 +02:00
decabeza
57ff65692f
Improves i18n texts
2018-06-08 18:29:47 +02:00
decabeza
8f6f22815e
Removes pending content to backport
2018-06-08 18:28:41 +02:00
decabeza
b3f41eb626
Reorders admin menu sections
2018-06-08 18:26:59 +02:00
Alberto
1e93487138
Merge pull request #2665 from consul/minor-fixes
...
Minor fixes
2018-06-08 17:04:45 +02:00
decabeza
28a7c03c21
Adds data-tabs on admin poll booth assignments show
2018-06-08 15:15:46 +02:00
decabeza
879b63ae5d
Fixes indentation on proposals show
2018-06-08 15:15:08 +02:00
decabeza
67713eb980
Fixes accesskey on subnavigation
2018-06-08 15:14:50 +02:00
decabeza
503a4e0395
Avoids show duplicated budget investment price
2018-06-08 15:14:04 +02:00
decabeza
cce1c82427
Prevents hide content on equalizer container
2018-06-08 15:13:45 +02:00
decabeza
b7fd0f3ab1
Adds debates_path on back link to on debates new
2018-06-08 15:13:15 +02:00
decabeza
354e42526f
Adds missing class on proposals show
2018-06-08 15:13:09 +02:00
decabeza
13d1de169d
Replaces foundation header-sizes to header-styles
2018-06-08 15:12:50 +02:00
decabeza
c816f4b01e
Adds missing features i18n and cleans i18n-tasks
2018-06-08 15:12:39 +02:00