From 04ce2795d2b56365b6a35005b9b6e0c94240623e Mon Sep 17 00:00:00 2001 From: marcelloclv Date: Wed, 21 May 2014 19:19:22 -0300 Subject: [PATCH] Update Visit.feature MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Correções pós revisão do professor Paulo. --- test/cucumber/Visit.feature | 29 +++++++++++++++++------------ 1 file changed, 17 insertions(+), 12 deletions(-) diff --git a/test/cucumber/Visit.feature b/test/cucumber/Visit.feature index 3509cc5f..1643d7a4 100644 --- a/test/cucumber/Visit.feature +++ b/test/cucumber/Visit.feature @@ -78,32 +78,37 @@ Feature: Visit Scenario: list existing visits and periods Given the system has visits with initial or final date greater than or equal "01/01/2011" - When I view the list of visits - Then the list is returned with a list of visits with initial or final date greater than or equal "01/01/2011" + When I list the visits for the period from "01/01/2011" to today + Then no data is stored by the system Scenario: visit for a stored visitor - Given the system has visitor named "Person" - When I try to create the visit for the visitor "Person" - Then the system asks if this visitor is the already registered visitor "Person" - And the visit for the visitor "Person" is not properly stored by the system + Given the system has a visitor named "Person" + When I try to create a visit for the visitor "Person" + Then the visit for the visitor "Person" is not properly stored by the system Scenario: asking identification for a visitor that already exists - Given I am logged as "admin" and at the Add Visit Page - And the system has visitor named "Person" + Given I am logged as "admin" + And I am at the Add Visit Page + And the system has a visitor named "Person" When I try to create a visitor named "Person" Then the Confirm Identification Page is open Scenario: confirming identification for a visitor that already exists - Given I am logged as "admin" and at the Confirm Identification Page + Given I am logged as "admin" + And I have tried to create a visit for a visitor that already exists + And I am at the Confirm Identification Page When I press the "Yes" button Then the visit for the visitor is properly stored by the system Scenario: changing the name of a visitor that already exists - Given I am logged as "admin" and at the Confirm Identification Page + Given I am logged as "admin" + And I have tried to create a visit for a visitor that already exists + And I am at the Confirm Identification Page When I press the "No" button - Then a new visitor is created with a different name and properly stored by the system + Then a new visitor is created with a different name + And the new visitor is properly stored by the system And the visit for the new visitor is properly stored by the system - + #if( $Twitter ) Scenario: Add a new visit twitting it Given I am logged as "admin" and at the Add Visit Page