Javi Martín
7b0771106e
Remove isolated useless assignments
...
These variables are not surrounded by other assignments, and so they can
safely be removed without making it harder to read the code vertically.
2019-09-25 12:43:44 +02:00
Javi Martín
44d137a4c0
Simplify translatable tests in admin section
...
These feature tests were taking too long, we can't run them for every
single model.
I'm taking the approach of using one different model for each test, but
in theory only using a few models covering every possible scenario
would be enough.
2019-09-23 18:01:44 +02:00
Senén Rodero Rodríguez
12d20b481d
Fix error during rebase
2019-07-01 16:40:24 +02:00
Senén Rodero Rodríguez
f7417d6479
Adapt specs to new translations interface markup
2019-07-01 14:49:43 +02:00
Senén Rodero Rodríguez
3176be43d9
Rename "translatable" shared example to "edit_translatable"
...
Also rename all specs calls
2019-06-27 09:20:25 +02:00
Senén Rodero Rodríguez
7c137faf53
Fix broken spec
...
Use existing I18n translations in broken spec.
2019-06-27 09:19:37 +02:00
German Galia
9d1ca3bfd4
Report generation. Download csv
2019-06-12 10:17:31 +02:00
Javi Martín
307cf24846
Use describe on feature tests
...
The `type: :feature` is automatically detected by RSpec because these
tests are inside the `spec/features` folder. Using `feature` re-adds a
`type: :feature` to these files, which will result in a conflict when we
upgrade to Rails 5.1's system tests.
Because of this change, we also need to change `background` to `before`
or else these tests will fail.
2019-05-28 16:36:54 +02:00
Alberto
ac1d8195f2
Merge pull request #3488 from consul/basic-yml
...
Admin basic customization texts
2019-05-21 21:43:07 +02:00
decabeza
a2cb7501f7
Create new basic tab for admin information texts
2019-05-21 14:06:58 +02:00
decabeza
43dd3d2169
Include mailer header logo on custom images list
2019-05-21 11:22:04 +02:00
Alberto
60c02cc19a
Merge pull request #3466 from consul/admin-documents
...
Add document uploads from admin section
2019-05-10 17:57:22 +02:00
decabeza
a57397dd6c
Always use map image from admin site customization images
2019-05-07 14:43:04 +02:00
decabeza
367c2e7b78
Fix hound warnings
2019-04-30 12:06:56 +02:00
decabeza
b023ceabdd
Fixes not_to hound warnings
2019-04-30 12:00:54 +02:00
decabeza
62a29e2cf9
Adds missing i18n
2019-04-30 12:00:46 +02:00
voodoorai2000
19b7526421
Add document upload from admin section
2019-04-30 11:59:08 +02:00
Julian Herrero
87be6f302c
Add default site customization pages
...
From now on these static pages:
`/privacy'
`/conditions'
`/accesibility'
`/help/faq'
`/welcome'
have been moved to the DB and can be modified easily by any
administrator in `/admin/site_customization/pages'
2019-03-14 18:35:51 +01:00
Julian Herrero
31ac8b7f55
Change single quotes to double quotes
2019-02-15 11:40:39 +01:00
decabeza
045c4eca64
Allow change map image from admin site customization
...
Also adds on site customization image.rb jpeg content type to allow replace this image.
2019-01-24 14:55:01 +01:00
Javi Martín
4770217373
Add proposals index in admin
2018-12-11 20:09:30 +01:00
Milber Champutiz Burbano
9f455b9165
Added feature to add content block to headings in sidebar -- rebase
2018-11-27 09:37:35 -05: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
decabeza
884580206a
Fixes houndci-bot warnings
2018-10-31 14:22:10 +01:00
Javi Martín
3c170f47d2
Update site customization pages translatable fields
2018-10-22 16:13:48 +02:00
Alberto
3878946c9e
Merge pull request #2823 from consul/remove-guides
...
Removes guide feature
2018-10-18 13:19:33 +02:00
Javi Martín
6f96265a0b
Bring back CKEditor images button
...
It was accidentally deleted in commit 914bfa6 .
Note the following spec passes on my machine if we add a `sleep 0.1`
call in the `:wait_readable` part of ruby's `Net::Protocol#rbuf_fill`.
Otherwise, it hangs forever after clicking the `.fileupload-file` div,
which closes its window. It might be solved when upgrading rails,
capybara, selenium or chromedriver.
scenario "Allows images in CKEditor", :js do
visit edit_admin_site_customization_page_path(custom_page)
within(".ckeditor") do
within_frame(0) { expect(page).not_to have_css("img") }
expect(page).to have_css(".cke_toolbar .cke_button__image_icon")
find(".cke_toolbar .cke_button__image_icon").click
end
within_window(window_opened_by { click_link "Browse Server" }) do
attach_file :file,
Rails.root.join('spec/fixtures/files/clippy.jpg'),
visible: false
find(".fileupload-file").click
end
click_link "OK"
within(".ckeditor") do
within_frame(0) { expect(page).to have_css("img") }
end
end
2018-10-17 19:39:37 +02:00
decabeza
dbf41421ed
Removes guide feature
2018-10-17 14:58:29 +02:00
Pierre Mesure
f586190651
Removed icon_home and fixed corresponding test
2018-10-12 09:52:53 +02:00
Papaya Labs
3f9dea080b
Check title and slug in spec
2018-09-28 09:43:00 +02:00
Papaya Labs
914bfa645e
Updates translatable custom pages
2018-09-27 13:46:17 +02:00
Raimond Garcia
1fbb428004
Merge pull request #2898 from papayalabs/2889-show-active-tab-in-custom-info-texts
...
Show active tab in custom info texts
2018-09-24 21:11:25 +02:00
Papaya Labs
45da512ce9
Add Spec
2018-09-24 20:38:42 +02:00
Javi Martín
726110c91e
Share Globalize JavaScript interface specs
2018-09-17 20:34:20 +02:00
Alberto
21f36e6be5
Merge branch 'master' into feature/1-nav-content-blocks
2018-09-05 12:41:07 +02:00
decabeza
3fee56e8fe
Updates admin site customization specs
2018-07-31 12:55:05 +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
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
decabeza
1b3292690a
updates spec of admin logo_header
2017-09-20 11:02:13 +02:00
Bertocq
7b0d3093e5
Fix social media icon expectation
2017-07-18 12:04:35 +02:00
decabeza
2844c03e43
adds consistency on social media filenames
2017-07-18 11:40:19 +02:00
María Checa
dca346bd4c
Fixed tests
...
Added new custom pages attribute to tests to make them run properly.
2017-07-02 22:13:40 +02:00