blob: d2950692e4588b29a5576207e240844e7cf94a11 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
Feature: Upload .poll_result files
As a pollster
I want to upload .poll_result files
So that researcher can compute them like a chunk of the whole poll result
Scenario: Upload one valid .poll_result file
Given I am a pollster: "encuestador1"
And "poll1" is "Cerrada"
And "encuestador1" is binded to "poll1"
And "valid.poll_result" is authored by "encuestador1"
When I visit the "upload" page
And I upload "valid.poll_result" on "31/12/1999 23:59hs"
Then I should see a message that says "valid.poll_result" and "éxito"
And "valid.poll_result" has the time string "31/12/1999 23:59hs"
Scenario: Upload .poll_result file authored by other pollster
Given I am a pollster: "encuestador2"
And "valid.poll_result" is authored by "encuestador2"
And "not_mine.poll_result" is authored by "encuestador1" #other_pollster
When I visit the "upload" page
And I upload:
| file |
| valid.poll_result |
| not_mine.poll_result |
Then I should see a message that says "no pertence a una encuesta realizada por usted"
And I should see a message that says "Usuario esperado: encuestador1"
And I should see a message that says "not_mine.poll_result"
And There is no new .poll_result on server
|