Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--webapp/webapp/features/upload_poll_result.feature17
1 files changed, 12 insertions, 5 deletions
diff --git a/webapp/webapp/features/upload_poll_result.feature b/webapp/webapp/features/upload_poll_result.feature
index 76e861e..d295069 100644
--- a/webapp/webapp/features/upload_poll_result.feature
+++ b/webapp/webapp/features/upload_poll_result.feature
@@ -14,8 +14,15 @@ Feature: Upload .poll_result files
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: "encuestador1"
- And "not_mine.poll_result" is authored by "other_pollster"
- When I visit the "upload" page
- And I upload "not_mine.poll_result"
- Then I should see a message that says "not_mine.poll_result" and "no pertence a una encuesta realizada por usted"
+ 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