Bertocq
9a21734805
Update rubocop gem from 0.53.0 to 0.54.0
2018-04-05 00:08:13 +02:00
Alberto Calderón Queimadelos
288ec75fcd
Merge pull request #2524 from consul/rubocop_update
...
Rubocop & rubocop-rspec gem & config updates
2018-04-04 20:10:39 +02:00
Alberto Calderón Queimadelos
86d5fe3700
Merge pull request #2572 from consul/i18n_master
...
New Crowdin translations
2018-04-04 20:10:26 +02:00
Alberto Calderón Queimadelos
cb7e9f32f1
Merge pull request #2560 from consul/fix_route_deprecation_warning
...
Fix routes deprecation warning for `to:` usage
2018-04-04 20:10:11 +02:00
Alberto Calderón Queimadelos
d7d9f587da
Merge pull request #2559 from consul/fix_date_new_to_use_timezone
...
Fix date parsing to take the TimeZone in account
2018-04-04 19:45:15 +02:00
Bertocq
746fef60da
Add indonesian translations
2018-04-04 19:39:54 +02:00
Bertocq
3aaf466939
Update galician translations
2018-04-04 19:39:12 +02:00
Bertocq
3ef955101b
Add german translations
2018-04-04 19:38:20 +02:00
Bertocq
16bf8bcdd0
Update nl translation
2018-04-04 19:37:07 +02:00
Bertocq
c863b0724a
Update catalan translation
2018-04-04 19:36:42 +02:00
Bertocq
db02dd26ab
Update french translations
2018-04-04 19:36:26 +02:00
Bertocq
c1bfd99be5
Update hebrew translations
2018-04-04 19:35:16 +02:00
Bertocq
988e7d44ed
Update Valencian translations
2018-04-04 19:34:31 +02:00
Bertocq
2bf019f08b
Disable DynamicAttributeDefinedStatically cop
...
rubocop-rspec includes a FactoryBot cop DynamicAttributeDefinedStatically
that enforces declaring dynamic attribute values in a block. It was
decided not to follow this convention. Explicitly disabling it gives
more insight about current rubocop rules.
http://www.rubydoc.info/gems/rubocop-rspec/1.24.0/RuboCop/Cop/RSpec/FactoryBot/DynamicAttributeDefinedStatically
2018-04-04 19:28:15 +02:00
Bertocq
e2c42a3c63
Enable StaticAttributeDefinedDynamically cop & fix
...
rubocop-rspec gem includes cops for FactoryBot like the new
FactoryBot/StaticAttributeDefinedDynamically to enforce declaring
static attribute values without a block.
* http://www.rubydoc.info/gems/rubocop-rspec/1.24.0/RuboCop/Cop/RSpec/FactoryBot/StaticAttributeDefinedDynamically
2018-04-04 19:28:15 +02:00
Bertocq
d3d9573086
Enable new Rails/HttpStatus cop without issues
...
rubocop-rspec 1.23.0 release introduced the cop RSpec/Rails/HttpStatus
to enforce consistent usage of the status format (numeric or symbolic).
* https://github.com/rubocop-rspec/rubocop-rspec/pull/553
* https://github.com/rubocop-rspec/rubocop-rspec/releases/tag/v1.23.0
2018-04-04 19:28:15 +02:00
Bertocq
1d0bf77cca
Update rubocop-rspec gem to 1.24.0 from 1.22.1
2018-04-04 19:28:14 +02:00
Bertocq
b0c0578cbe
Remove deprecated Performance/HashEachMethods cop
...
At release https://github.com/bbatsov/rubocop/releases/tag/v0.53.0 it
has been removed with https://github.com/bbatsov/rubocop/issues/5589
2018-04-04 19:26:31 +02:00
Bertocq
b2951b120a
Update Rubocop gem to 0.53.0
2018-04-04 19:26:29 +02:00
Bertocq
633cc1283b
Fix Date & DateTime parsings to use default timezone
...
Date.new(...) does not take into account the current timezone, while other
parts of the application do. By default always parsing any date with the
default timezone and converting the resulting Time to Date would prevent
this kind of issues
DateTime.parse(...).in_time_zone gives an unexpected result, as the
DateTime.parse(...) will create a DateTime with +0000 time zone and the
`in_time_zone` will modify the DateTime to adjust to the default zone.
Maybe its better explained with an example, using 'Lima' as timezone:
DateTime.parse("2015-01-01")
> Thu, 01 Jan 2015 00:00:00 +0000
DateTime.parse("2015-01-01").in_time_zone
> Wed, 31 Dec 2014 19:00:00 -05 -05:00
And that's not the desired date but the previous day!
2018-04-04 14:21:39 +02:00
Bertocq
0e61d49800
Fix english phone note translation
2018-04-03 12:35:07 +02:00
María Checa
ff872db039
Update changelog
2018-03-28 12:06:37 +02:00
Bertocq
471fe52ecc
Replace deprecated to: for action: at routes
...
Running test suite the following appears: DEPRECATION WARNING: Defining
a route where `to` is a symbol is deprecated. Please change
`to: :json_data` to `action: :json_data`.
2018-03-28 09:21:00 +02:00
Bertocq
c4049efa4a
Fix notification expectations for read ones
2018-03-28 09:19:58 +02:00
Alberto Calderón Queimadelos
0de3c070ee
Merge pull request #2561 from consul/master_spec_fails
...
Improve README code syntax
2018-03-28 09:18:51 +02:00
Bertocq
53533e3809
Improve README code syntax
2018-03-28 09:13:56 +02:00
Raimond Garcia
ab1bb061e8
Merge pull request #2534 from wairbut-m2c/aperez-headless-chrome
...
Migration from PhantomJS to Headless Chrome
2018-03-27 21:53:46 +02:00
Angel Perez
257a338916
Refactor flaky tests to avoid interaction with the UI
2018-03-27 14:47:51 -04:00
Angel Perez
0fce8ca787
Fix incorrect assertion for nested imageable example
...
The example tests if a certain selector is hidden after adding
one image but the assertion expected said selector to be visible,
which made the scenario to fail at random
2018-03-27 14:47:51 -04:00
Angel Perez
dfbf4b8489
Refactor spec to use let syntax to DRY scenarios
2018-03-27 14:47:51 -04:00
Angel Perez
0a6ee897a7
Configure Capybara sessions to reset after each example
2018-03-27 14:47:51 -04:00
Angel Perez
92af93e8bd
Fix failing tests that simulated a click against the DOM
...
The now-deprecated `.trigger('click')` API simulated a click against
the DOM rather a click on the UI, which made our tests fragile and
wouldn't simulate actual user interaction
2018-03-27 14:47:51 -04:00
Angel Perez
ff74d66405
Remove unnecessary extra expectation for 'Voting in booth' scenario
2018-03-27 14:47:50 -04:00
Angel Perez
26f2f2fea6
Refactor test to avoid interaction with non-visible element
2018-03-27 14:47:50 -04:00
Angel Perez
4269627790
Include ChromeDriver as prerequisite
2018-03-27 14:47:50 -04:00
Angel Perez
765d273bdf
Fix failing scenario related to focused DOM element
2018-03-27 14:47:50 -04:00
Angel Perez
eb2926ab42
Fix failing scenario related to Headless Chrome window-size flag
2018-03-27 14:47:50 -04:00
Angel Perez
b3ce674ffc
Enable previously disabled test scenarios
2018-03-27 14:47:50 -04:00
Angel Perez
2d819c0b11
Fix failing spec on CI environments
2018-03-27 14:47:50 -04:00
Angel Perez
ea21fe859b
Format dates with .strftime('%d/%m/%Y') when filling datepickers
...
Advanced search scenarios for Budget::Investments, Debates and
Proposals need proper date formatting as they behave unexpectedly
when APIs such as `7.days.ago` are used
2018-03-27 14:47:49 -04:00
Angel Perez
375c43b5f1
Replace deprecated .trigger('mouseover') API with .hover
2018-03-27 14:47:49 -04:00
Angel Perez
5c53466e86
Remove unnecessary status code related assertion
2018-03-27 14:47:49 -04:00
Angel Perez
450e8597eb
Disable JavaScript on IE-specific scenarios
2018-03-27 14:47:49 -04:00
Angel Perez
ceb38739c7
Use absolute paths for fixtures
2018-03-27 14:47:49 -04:00
Angel Perez
122b17033b
Use Selenium API to accept/dismiss JS modals/browser alerts
...
JS modals/browser alerts are not automatically accepted now with
Selenium, events that trigger such events must be wrapped in one
of the following methods: `accept_alert`, `accept_confirm` or
`dismiss_confirm`
2018-03-27 14:47:49 -04:00
Angel Perez
38af45d450
Replace deprecated .trigger('click') API with .click
2018-03-27 14:47:49 -04:00
Angel Perez
6a55b720b8
Configure Travis CI to use Chrome addon, install ChromeDriver
2018-03-27 14:47:48 -04:00
Angel Perez
0bf4afe8bc
Replace PhantomJS/Poltergeist config with Headless Chrome
2018-03-27 14:47:48 -04:00
Angel Perez
e098e7b7bb
Replace poltergeist with selenium-webdriver
2018-03-27 14:47:48 -04:00
Raimond Garcia
0b4b896a6a
Merge pull request #2522 from wairbut-m2c/fix/dev_seed_flaky_spec_backport
...
Fix `rake db:dev_seed` task flaky spec
2018-03-27 20:22:28 +02:00