Commit Graph

15 Commits

Author SHA1 Message Date
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