Raimond Garcia
ea72cd058b
Merge pull request #2876 from javierm/ckeditor4_update
...
Ckeditor4 update
2018-09-17 23:02:50 +02:00
Raimond Garcia
cae210c155
Merge pull request #2887 from wairbut-m2c/backport/db_queries
...
[Backport] Replace `.all.each` with `.find_each` to reduce memory usage
2018-09-17 19:06:46 +02:00
Raimond Garcia
eb435930db
Merge pull request #2888 from wairbut-m2c/backport/test-suite-maintenance
...
[Backport] Test suite maintenance
2018-09-17 19:06:07 +02:00
Javi Martín
f2bebca6be
Bring back and fix deleted test
...
It was removed in 755be96 because some tags were allowed, but we can
just update it to check it doesn't remove those tags.
2018-09-12 12:35:28 +02:00
Javi Martín
f917f5eed9
Filter image tags everywhere except in custom pages
...
Allowing image tags everywhere makes us vulnerable to CSRF attacks.
2018-09-12 12:35:28 +02:00
Raúl Fuentes
bf0472fd58
Fix test
...
now the <a> tag is permited, also the list of allowed tags is in
the configuration of ckeditor4
2018-09-12 12:35:28 +02:00
Javi Martín
29b9f172f6
Fix test for Portuguese
...
It fails because we try to follow a link without a Portuguese
translation. In Madrid they use Spanish as fallback, but in consul we
use English as fallback, and so the text in the link is different in
those repos.
A proper solution would be to update the Portuguese locales. However,
since this test is going to be removed in our next backport, I'm just
doing a quick patch.
2018-09-12 10:52:00 +02:00
Marko Lovic
d2dd5f2a58
Test Translatable logic with a locale with non-underscored name
...
In the past there have been issues with the `pt-BR` locale because
it has a hyphen `-` and a uppercase letters.
I am adding the test only to spec/features/translations_spec.rb (which
tests Milestones) for now. We might want to also add it to the other
translatable resource specs in the future (banners, etc.).
2018-09-11 18:48:23 +02:00
Angel Perez
1e1cb660e2
Add missing CommonActions#fill_in_signup_form method
...
This method allows to fill in CONSUL's signup form without interacting
with other UI elements, useful when using testing locales other than English
Backported from Decide Madrid
2018-09-10 16:05:55 -04:00
Angel Perez
7b95f4c320
Correct typos on nested documentable/imageable
2018-09-10 11:45:48 -04:00
Angel Perez
d86103db5a
Disable unnecessary JS usage on comments/topics specs
2018-09-10 11:45:41 -04:00
Angel Perez
19b0c410da
Remove JS driver usage for legislation/processes#update scenarios
2018-09-10 11:45:29 -04:00
Angel Perez
84b616256f
Fix spec to properly check emails are sent based on current locale
2018-09-10 11:45:13 -04:00
Angel Perez
08755524ef
Replace I18n calls with explicit text expectations
2018-09-10 11:44:00 -04:00
Angel Perez
601391954a
Refactor tests to interact directly with the UI rather than with the DOM
2018-09-10 11:41:37 -04:00
Angel Perez
fa9da9d573
Usage of let on emails specs to DRY scenarios
2018-09-10 11:41:25 -04:00
Angel Perez
bdda397bf1
Use new RSpec stub syntax to fix deprecation warnings
2018-09-10 11:41:20 -04:00
Angel Perez
ffe421ae69
Replace .all.each with .find_each on admin specs
2018-09-10 11:40:24 -04:00
Marko Lovic
9fdc8a8a35
Avoid checking DB records in feature spec
2018-09-10 17:34:02 +02:00
Marko Lovic
3aa53449c8
Fix Translatable when field values are changed to blank
...
If we ignore all params that are blank, there is no way to
"remove" an attribute (i.e. change its value to blank)
On the other hand, we don't want to create new translations
where all fields are empty, so the new code keeps only the
blank fields which belong to existing translations.
2018-09-10 17:16:42 +02:00
Raimond Garcia
4f2ed27f8c
Merge pull request #2865 from consul/backport_1585-make_banners_translatable
...
[Backport] Make banners translatable
2018-09-10 16:41:33 +02:00
Raimond Garcia
778b10d181
Merge pull request #2835 from wairbut-m2c/backport/fix-proposals-menu
...
Fix navigation menu under Legislation::Proposal show view
2018-09-07 18:44:31 +02:00
Raimond Garcia
c941d0fe67
Merge pull request #2838 from PierreMesure/refactor-factories-in-several-files
...
Split factories
2018-09-07 18:37:10 +02:00
Raimond Garcia
7014686b15
Merge pull request #2813 from javierv/2812-fix_admin_menu_not_showing
...
Fix admin menu not showing for high IDs
2018-09-07 15:52:02 +02:00
Raimond Garcia
09482aad09
Merge pull request #2785 from ziyan-junaideen/feature/1-nav-content-blocks
...
Configurable Top Right and Main Navigation Menus
2018-09-05 19:50:59 +02:00
Alberto
21f36e6be5
Merge branch 'master' into feature/1-nav-content-blocks
2018-09-05 12:41:07 +02:00
Marko Lovic
0fa4b60f39
Make Banners translatable
2018-08-30 16:29:29 +02:00
Pierre Mesure
cba6cc029e
Split factories
2018-08-08 07:20:47 +02:00
Angel Perez
43b040162d
fix(frontend): Only one menu element has 'active' CSS selector
2018-08-06 10:13:41 -04:00
Juan Fernandez
653d36c9e6
Translate static pages
2018-08-04 15:28:41 -04:00
decabeza
56bdcf4be2
Updates text on admin notifications spec
2018-07-31 13:25:53 +02:00
decabeza
3fee56e8fe
Updates admin site customization specs
2018-07-31 12:55:05 +02:00
decabeza
bb05f86156
Updates admin legislation specs
2018-07-31 12:54:59 +02:00
Alberto
5546f5b125
Merge pull request #2817 from consul/custom-content
...
Custom content
2018-07-31 12:43:21 +02:00
decabeza
c15769ba48
Updates logo header sizes and images for specs
2018-07-30 19:55:43 +02:00
decabeza
d80e7f9864
Updates emails specs
2018-07-30 19:35:21 +02:00
Raimond Garcia
33486f015c
Merge pull request #2563 from wairbut-m2c/test/docker-with-headless-chrome
...
Update Dockerfile to use Headless Chrome
2018-07-30 15:30:43 +02:00
Javier Martín
157cd001d5
Add spec to expose a bug finding manager logged in
...
I've moved the method to the User model in order to make it easier to
test. I'm not sure where it belongs, though.
There was already a failing spec in `spec/features/management_spec.rb`,
but it passed if run standalone because it only failed if previous tests
had already created nine users or more.
2018-07-28 22:03:33 +02:00
Raimond Garcia
2c79197a05
Merge pull request #2809 from wairbut-m2c/backport/translatable-content-for-admin
...
Basic content for I18n on Admin panel
2018-07-27 18:01:00 +02:00
Alberto
65e4435822
Merge pull request #2137 from wairbut-m2c/iagirre-admin-menu-in-management
...
Add admin menu in management view (if user is admin)
2018-07-27 12:35:07 +02:00
Alberto
fb19aafee7
Merge pull request #2778 from wairbut-m2c/backport/investments-moderation
...
Allow budget investments to be moderated
2018-07-27 12:34:17 +02:00
Angel Perez
a943c24aa7
Replace Madrid-specific texts with CONSUL ones
2018-07-26 21:13:53 -04:00
Angel Perez
1255389ef7
Remove redundant translation specs
2018-07-26 20:49:12 -04:00
rgarcia
78a5c0356e
Add globalization javascript interface specs
2018-07-26 20:49:00 -04:00
Angel Perez
9c74fa393d
Translations can be removed
2018-07-26 20:49:00 -04:00
Angel Perez
ad252ca835
Translations can be updated correctly
2018-07-26 20:49:00 -04:00
rgarcia
82f496ccfa
Fix globalization for information texts
...
Refactoring and making similar specs to the milestones globalization specs
2018-07-26 20:48:56 -04:00
Angel Perez
42eb784922
Add specs for basic Admin Globalize feature
2018-07-26 19:08:42 -04:00
rgarcia
f521188cd0
Fix specs with recently updated I18n values
2018-07-26 19:07:38 -04:00
Ziyan Junaideen
ffe7465b86
Spec adjustments
2018-07-26 22:55:49 +05:30