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
decabeza
cbbe188d6a
Move officing link inside header dropdown menu
...
Also include the condition to hide this link on officing namespace.
2019-05-17 17:48:43 +02:00
rgarcia
88c801d6c5
fixes specs
2019-03-28 15:47:52 +01:00
Julian Herrero
31ac8b7f55
Change single quotes to double quotes
2019-02-15 11:40:39 +01:00
Javi Martín
ec3d4c4449
Fix flaky officing dashboard spec
...
It was failing when executed right before midnight due to today's
officer assigments changing during the test.
2018-09-19 14:12:32 +02:00
Raúl Fuentes
b9bd121655
Added test using have_content before selecting DNI or passport, the existence of the container is assured because have_conten waits for js to finish loading before checking
2018-03-21 17:24:00 +01:00
Angel Perez
9a0eca73d7
Fix: Deprecation warnings when running test suite ( #2287 )
2018-01-09 17:54:46 -04:00
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
Bertocq
7f14544f71
Enable Capybara/CurrentPathExpectation cop & fix issues
...
Read cop description http://www.rubydoc.info/gems/rubocop-rspec/RuboCop/Cop/RSpec/Capybara/CurrentPathExpectation to better understand reasons behind enforcing this rule
On some cases the `only_path: true` was needed as argument of `have_current_path` matcher to avoid comparing the url parameters and just checking the path.
2018-01-06 23:31:41 +01:00
decabeza
47d626619f
adds specs for admin access to officing
2017-10-21 17:37:37 +02:00
María Checa
5589c2d8a0
Tests improvements
2017-10-18 13:40:04 +02:00
María Checa
fb1a0904cb
Tests improvements
2017-10-18 13:17:50 +02:00
María Checa
6c5ad49a3c
Tests improvements
2017-10-18 11:52:42 +02:00
María Checa
e2b06ef259
Minor change
2017-10-17 20:43:42 +02:00
María Checa
20fd8c0515
Officing tests improvements
2017-10-17 20:41:48 +02:00
María Checa
c24fab427e
Completed tests
2017-10-17 10:20:36 +02:00
María Checa
580c57e71b
Added officing tests
...
Added new tests to officing section to ensure that multiple sessions (different users) can be initialized at the same time without crashing.
2017-10-16 19:02:27 +02:00
Senén Rodero Rodríguez
bb4e4dc084
Fix almost all broken specs
2017-08-01 16:28:01 +02:00
Juanjo Bazán
ca0e6d6694
adds authorization for poll officers
2016-12-28 20:54:02 +01:00