From 84b7c424589b05b1e5c97a02c82ceac74cd87a2f Mon Sep 17 00:00:00 2001 From: ParleyMartins Date: Thu, 4 Sep 2014 09:29:10 -0300 Subject: [PATCH] verify_tests: Remove unnecessary selenium user tests. --- features/user_registration.feature | 215 +++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ 1 file changed, 5 insertions(+), 210 deletions(-) diff --git a/features/user_registration.feature b/features/user_registration.feature index 4231417..7594dd2 100644 --- a/features/user_registration.feature +++ b/features/user_registration.feature @@ -22,29 +22,9 @@ Feature: User Registration | environment | LoginBlock | And I go to /account/logout - @selenium - Scenario: Successfull registration with only required fields - Given I go to /account/signup - And I fill in the following within ".no-boxes": - | e-Mail | josesilva@example.com | - | Username | josesilva | - | Password | secret | - | Password confirmation | secret | - | Full name | José da Silva | - | State | Bahia | - | City | Salvador | - And I select "Brazil" from "profile_data[country]" - And wait for the captcha signup time - And I press "Create my account" - When José da Silva's account is activated - And I go to login page - And I fill in "Username" with "josesilva" - And I fill in "Password" with "secret" - And I press "Log in" - Then I should be logged in as "josesilva" @selenium - Scenario: Successfull registration with governmental e-mail typing the name of the organization + Scenario: Successful autocomplete with part of the institution name and adding institution Given I go to /account/signup And Institutions has initial default values on database And the following public institutions @@ -52,29 +32,12 @@ Feature: User Registration | Ministerio das Cidades | MC | BR | DF | Gama | 58.745.189/0001-21 | Autarquia | Executivo | Federal | | Governo do DF | GDF | BR | DF | Taguatinga | 12.645.166/0001-44 | Autarquia | Legislativo | Federal | | Ministerio do Planejamento | MP | BR | DF | Brasilia | 41.769.591/0001-43 | Autarquia | Judiciario | Federal | - And I fill in the following within ".no-boxes": - | e-Mail | josesilva@serpro.gov.br| - | Username | josesilva | - | Password | secret | - | Password confirmation | secret | - | Full name | José da Silva | - | State | Bahia | - | City | Salvador | - | Secondary e-Mail | josesilva@example.com | - And I select "Brazil" from "profile_data[country]" And I type in "Minis" into autocomplete list "input_institution" and I choose "Ministerio do Planejamento" - And wait for the captcha signup time And I follow "Add new institution" - And I press "Create my account" - When José da Silva's account is activated - And I go to login page - And I fill in "Username" with "josesilva" - And I fill in "Password" with "secret" - And I press "Log in" - Then I should be logged in as "josesilva" + Then I should see "Ministerio do Planejamento" within ".institutions_added" @selenium - Scenario: Successfull registration with governmental e-mail typing the acronym of the organization + Scenario: Successfull autocomplete with institution acronym Given I go to /account/signup And Institutions has initial default values on database And the following public institutions @@ -82,159 +45,10 @@ Feature: User Registration | Ministerio das Cidades | MC | BR | DF | Gama | 58.745.189/0001-21 | Autarquia | Executivo | Federal | | Governo do DF | GDF | BR | DF | Taguatinga | 12.645.166/0001-44 | Autarquia | Legislativo | Federal | | Ministerio do Planejamento | MP | BR | DF | Brasilia | 41.769.591/0001-43 | Autarquia | Judiciario | Federal | - And I fill in the following within ".no-boxes": - | e-Mail | josesilva@serpro.gov.br| - | Username | josesilva | - | Password | secret | - | Password confirmation | secret | - | Full name | José da Silva | - | State | Bahia | - | City | Salvador | - | Secondary e-Mail | josesilva@example.com | - And I select "Brazil" from "profile_data[country]" And I type in "MP" into autocomplete list "input_institution" and I choose "Ministerio do Planejamento" - And wait for the captcha signup time And I follow "Add new institution" - And I press "Create my account" - When José da Silva's account is activated - And I go to login page - And I fill in "Username" with "josesilva" - And I fill in "Password" with "secret" - And I press "Log in" - Then I should be logged in as "josesilva" - - @selenium - Scenario: Unsuccessfull registration due to the existance of e-mail as secondary another user's e-mail - Given the following users - | login | name | email | country | state | city | - | maria | Maria Silva | maria@example.com | Brazil | DF | Brasilia | - And the user "maria" has "user@example.com" as secondary e-mail - And I go to /account/signup - And I fill in the following within ".no-boxes": - | e-Mail | user@example.com | - | Username | josesilva | - | Password | secret | - | Password confirmation | secret | - | Full name | José da Silva | - | State | Bahia | - | City | Salvador | - And wait for the captcha signup time - And I select "Brazil" from "profile_data[country]" - When I press "Create my account" - Then I should see "E-mail or secondary e-mail already taken." - - @selenium - Scenario: Unsuccessfull registration due to the existance of secondary e-mail as another user's secondary e-mail - Given the following users - | login | name | email | country | state | city | - | maria | Maria Silva | maria@example.com | Brazil | DF | Brasilia | - And the user "maria" has "user@example.com" as secondary e-mail - And I go to /account/signup - And I fill in the following within ".no-boxes": - | e-Mail | josesilva@example.com | - | Username | josesilva | - | Password | secret | - | Password confirmation | secret | - | Full name | José da Silva | - | State | Bahia | - | City | Salvador | - | Secondary e-Mail | user@example.com | - And I select "Brazil" from "profile_data[country]" - And wait for the captcha signup time - When I press "Create my account" - Then I should see "E-mail or secondary e-mail already taken." - - @selenium - Scenario: Unsuccessfull registration due to the existance of secondary e-mail as another user's e-mail - Given the following users - | login | name | email | country | state | city | - | maria | Maria Silva | user@example.com | Brazil | DF | Brasilia | - And I go to /account/signup - And I fill in the following within ".no-boxes": - | e-Mail | josesilva@example.com | - | Username | josesilva | - | Password | secret | - | Password confirmation | secret | - | Full name | José da Silva | - | State | Bahia | - | City | Salvador | - | Secondary e-Mail | user@example.com | - And I select "Brazil" from "profile_data[country]" - And wait for the captcha signup time - When I press "Create my account" - Then I should see "E-mail or secondary e-mail already taken." - - @selenium - Scenario: Unsuccessfull registration due to both primary e-mail and secondary e-mail being equal - Given I go to /account/signup - And I fill in the following within ".no-boxes": - | Username | josesilva | - | e-Mail | josesilva@example.com | - | Password | secret | - | Password confirmation | secret | - | Full name | José da Silva | - | State | Bahia | - | City | Salvador | - | Secondary e-Mail | josesilva@example.com | - And I select "Brazil" from "profile_data[country]" - And wait for the captcha signup time - When I press "Create my account" - Then I should see "Email must be different from secondary email." - - @selenium - Scenario: Unsuccessfull registration due to government fields being blank - Given I go to /account/signup - And I fill in the following within ".no-boxes": - | Username | josesilva | - | e-Mail | josesilva@serpro.gov.br| - | Password | secret | - | Password confirmation | secret | - | Full name | José da Silva | - | Secondary e-Mail | josesilva@example.com | - And I select "Brazil" from "profile_data[country]" - And wait for the captcha signup time - When I press "Create my account" - And I should see "Institution is obligatory if user has a government email." - And I should see "State can't be blank" - And I should see "City can't be blank" - - @selenium - Scenario: Unsuccessfull registration due to secondary email is governmental and primary is not - Given I go to /account/signup - And I fill in the following within ".no-boxes": - | Username | josesilva | - | e-Mail | josesilva@example.com | - | Password | secret | - | Password confirmation | secret | - | Full name | José da Silva | - | State | Bahia | - | City | Salvador | - | Secondary e-Mail | josesilva@serpro.gov.br| - And wait for the captcha signup time - When I press "Create my account" - Then I should see "The governamental email must be the primary one." - - @selenium-fixme - Scenario: Show incomplete resgistration percentage - Given I go to /account/signup - And I fill in the following within ".no-boxes": - | e-Mail | josesilva@gmail.com | - | Password | secret | - | Password confirmation | secret | - | Full name | José da Silva | - | State | Bahia | - | City | Salvador | - | Secondary e-Mail | josesilva@example.com | - And I select "Brazil" from "profile_data[country]" - And I fill in "Username" with "josesilva" - And wait for the captcha signup time - And I press "Create my account" - When José da Silva's account is activated - And I go to login page - And I fill in "Username" with "josesilva" - And I fill in "Password" with "secret" - And I press "Log in" - Then I should see "Complete Profile: 37%" + Then I should see "Ministerio do Planejamento" within ".institutions_added" + @selenium Scenario: Remove the incomplete resgistration percentage message @@ -260,17 +74,6 @@ Feature: User Registration Then I should not see "Complete Profile: 37%" @selenium - Scenario: When the user log out and log in again, the percentage registration message must appear - Given the following users - | login | name | email | country | state | city | - | maria | Maria Silva | maria@example.com | Brazil | DF | Brasilia | - When I am logged in as "maria" - And I should see "Complete Profile:" - And I follow "Logout" - And I am logged in as "maria" - Then I should see "Complete Profile:" - - @selenium Scenario: When the user logged in and hide link of imcomplete percentage and user log out and log in again, the percentage registration link must appear Given the following users | login | name | email | country | state | city | @@ -300,11 +103,3 @@ Feature: User Registration And I go to /profile/maria Then I should not see "Complete Profile" - @selenium-fixme - Scenario: When the user press incomplete percentage link,he must be redirect to his edit profile page - Given the following users - | login | name | email | country | state | city | - | maria | Maria Silva | maria@example.com | Brazil | DF | Brasilia | - When I am logged in as "maria" - And I follow "Complete your profile" - Then I should see "Profile settings" -- libgit2 0.21.2