Commit Graph

15242 Commits

Author SHA1 Message Date
Javi Martín
893f29a27a Fix flaky legislation question spec
The test was failing sometimes because of the sequence:

within('#side_menu') do
  click_link "Collaborative Legislation"
end

click_link "All"
expect(page).to have_content 'An example legislation process'
click_link 'An example legislation process'

Right after clicking the "Collaborative Legislation" link, the link 'An
example legislation process' is already available. So sometimes Capybara
might click the links "All" and 'An example legislation process' at more
or less the same time, causing the second link not to be correctly
clicked.

Making sure the "All" link doesn't exist anymore we guarantee Capybara
will wait for the previous AJAX request to finish before clicking the
next link.

Note the test to "Create Valid legislation question" is almost identical
but it doesn't fail because it doesn't use Capybara's JavaScript driver.
2018-10-17 15:54:59 +02:00
decabeza
dbf41421ed Removes guide feature 2018-10-17 14:58:29 +02:00
Raimond Garcia
74925a7022 Merge pull request #2964 from consul/i18n_all_language_names
Add all available languages
2018-10-17 13:34:26 +02:00
voodoorai2000
3976b2f4f2 Fix pluralization spec when using different default locale
This spec was failing due to using :es as the default_locale in application.rb[1], but using :en as the default_locale in the test environment[2]

The fallback rules where getting a little confused and not including the default locale, for the test environment, in the fallback rules

With this commit we are making sure that rule is created, as it would in a production environment that uses the default_locale in application.rb

[1] https://github.com/AyuntamientoMadrid/consul/blob/master/config/application.rb#L22

[2] https://github.com/AyuntamientoMadrid/consul/blob/master/spec/rails_helper.rb#L15
2018-10-17 13:26:47 +02:00
voodoorai2000
8eb399150e Remove fallback rules for locales not yet added 2018-10-17 12:47:35 +02:00
voodoorai2000
e771440d18 Remove duplicate language names 2018-10-17 12:47:35 +02:00
voodoorai2000
3b8bb5038d Add fallback i18n locales
All other languages will fallback to the default locale

Rails also, seems to pick up dialect fallbacks, for locales with this format: es-CO, es-PE, etc, which will fallback to "es", so that is great 😌
2018-10-17 12:47:35 +02:00
voodoorai2000
f2fe230a15 Add all available locales
Only addding those with significant number of translations
2018-10-17 12:47:35 +02:00
voodoorai2000
d8fa322763 Remove obsolete language name translations 2018-10-17 12:47:35 +02:00
voodoorai2000
7fb6f6a7a6 Add all language names 2018-10-17 12:47:35 +02:00
Raimond Garcia
2f5fc5d863 Merge pull request #2963 from consul/locale_names
Fix locale folder names
2018-10-17 12:46:28 +02:00
Raimond Garcia
8864168e3c Merge pull request #2962 from consul/flaky_i18n
Fix flaky spec for translations
2018-10-17 12:45:51 +02:00
Consul Bot
f3be8835bc New translations legislation.yml (Chinese Simplified) 2018-10-17 07:30:26 +02:00
Consul Bot
d591f20841 New translations mailers.yml (Chinese Simplified) 2018-10-17 02:55:39 +02:00
Consul Bot
6831967746 New translations legislation.yml (Chinese Simplified) 2018-10-17 02:50:33 +02:00
Consul Bot
84a3beaf7e New translations mailers.yml (Chinese Simplified) 2018-10-17 02:50:32 +02:00
Consul Bot
0ad14944d5 New translations legislation.yml (Chinese Simplified) 2018-10-17 02:30:27 +02:00
Consul Bot
3d35bffc96 New translations images.yml (Chinese Simplified) 2018-10-17 02:20:35 +02:00
Consul Bot
29e86772db New translations legislation.yml (Chinese Simplified) 2018-10-17 02:20:34 +02:00
Consul Bot
b4798f6149 New translations kaminari.yml (Chinese Simplified) 2018-10-17 02:20:32 +02:00
Consul Bot
68ee4d5ed1 New translations i18n.yml (Chinese Simplified) 2018-10-17 02:10:34 +02:00
Consul Bot
43f0448a61 New translations guides.yml (Chinese Simplified) 2018-10-17 02:10:33 +02:00
Consul Bot
c99bc3cc83 New translations images.yml (Chinese Simplified) 2018-10-17 02:10:32 +02:00
Consul Bot
0159ee36f5 New translations guides.yml (Chinese Simplified) 2018-10-17 02:00:42 +02:00
Alberto
e08f031be6 Merge pull request #2971 from consul/dashboard-mailer
Dashboard mailer
2018-10-17 01:18:13 +02:00
Alberto
c049f7a9da Merge pull request #2968 from consul/dashboard-admin
Dashboard admin design
2018-10-17 01:17:27 +02:00
decabeza
52b515134f Updates i18n 2018-10-17 01:12:45 +02:00
decabeza
f4d9fe2417 Updates dashboard poster controller 2018-10-17 01:12:34 +02:00
decabeza
bd1ba2bc78 Adds styles to dashboard poster 2018-10-17 01:12:09 +02:00
decabeza
35dca0a17a Removes dashboard poster css file 2018-10-17 01:11:11 +02:00
Consul Bot
cc61e65d6c New translations legislation.yml (Swedish) 2018-10-16 15:32:43 +02:00
Consul Bot
82fb1a2f1f New translations budgets.yml (Swedish) 2018-10-16 15:32:42 +02:00
Consul Bot
03c80ab59d New translations admin.yml (Swedish) 2018-10-16 13:50:44 +02:00
Consul Bot
1efc8e10fc New translations general.yml (Swedish) 2018-10-16 13:50:40 +02:00
Consul Bot
055a8895ed New translations legislation.yml (Swedish) 2018-10-16 13:50:37 +02:00
Consul Bot
404d3d47f0 New translations legislation.yml (Swedish) 2018-10-16 11:55:33 +02:00
Consul Bot
67b7e83502 New translations devise_views.yml (Swedish) 2018-10-16 11:01:02 +02:00
Consul Bot
e4040c3c14 New translations admin.yml (Swedish) 2018-10-16 10:50:41 +02:00
Consul Bot
7610af3a7c New translations general.yml (Chinese Simplified) 2018-10-16 01:10:25 +02:00
Consul Bot
c49ac9ce60 New translations i18n.yml (Finnish) 2018-10-15 18:22:04 +02:00
Consul Bot
fa875adbfd New translations budgets.yml (Finnish) 2018-10-15 18:22:03 +02:00
Consul Bot
3d665faac5 New translations devise.yml (Finnish) 2018-10-15 18:22:02 +02:00
Consul Bot
5f3c17f27a New translations pages.yml (Finnish) 2018-10-15 18:22:00 +02:00
Consul Bot
10449fb46a New translations devise_views.yml (Finnish) 2018-10-15 18:21:59 +02:00
Consul Bot
79eaf8bac5 New translations mailers.yml (Finnish) 2018-10-15 18:21:58 +02:00
Consul Bot
b64df2567c New translations activemodel.yml (Finnish) 2018-10-15 18:21:57 +02:00
Consul Bot
d3d4fdc760 New translations verification.yml (Finnish) 2018-10-15 18:21:55 +02:00
Consul Bot
7dea375480 New translations activerecord.yml (Finnish) 2018-10-15 18:21:54 +02:00
Consul Bot
b9d61e6b24 New translations valuation.yml (Finnish) 2018-10-15 18:21:52 +02:00
Consul Bot
20695d6884 New translations social_share_button.yml (Finnish) 2018-10-15 18:21:51 +02:00