Commit 84b7c424589b05b1e5c97a02c82ceac74cd87a2f
Committed by
Gust
1 parent
05eaa3f1
Exists in
master
and in
5 other branches
verify_tests: Remove unnecessary selenium user tests.
Signed-off-by: Gabriela Navarro <navarro1703@gmail.com> Signed-off-by: Parley Martins <parley@outlook.com>
Showing
1 changed file
with
5 additions
and
210 deletions
Show diff stats
features/user_registration.feature
| @@ -22,29 +22,9 @@ Feature: User Registration | @@ -22,29 +22,9 @@ Feature: User Registration | ||
| 22 | | environment | LoginBlock | | 22 | | environment | LoginBlock | |
| 23 | And I go to /account/logout | 23 | And I go to /account/logout |
| 24 | 24 | ||
| 25 | - @selenium | ||
| 26 | - Scenario: Successfull registration with only required fields | ||
| 27 | - Given I go to /account/signup | ||
| 28 | - And I fill in the following within ".no-boxes": | ||
| 29 | - | e-Mail | josesilva@example.com | | ||
| 30 | - | Username | josesilva | | ||
| 31 | - | Password | secret | | ||
| 32 | - | Password confirmation | secret | | ||
| 33 | - | Full name | José da Silva | | ||
| 34 | - | State | Bahia | | ||
| 35 | - | City | Salvador | | ||
| 36 | - And I select "Brazil" from "profile_data[country]" | ||
| 37 | - And wait for the captcha signup time | ||
| 38 | - And I press "Create my account" | ||
| 39 | - When José da Silva's account is activated | ||
| 40 | - And I go to login page | ||
| 41 | - And I fill in "Username" with "josesilva" | ||
| 42 | - And I fill in "Password" with "secret" | ||
| 43 | - And I press "Log in" | ||
| 44 | - Then I should be logged in as "josesilva" | ||
| 45 | 25 | ||
| 46 | @selenium | 26 | @selenium |
| 47 | - Scenario: Successfull registration with governmental e-mail typing the name of the organization | 27 | + Scenario: Successful autocomplete with part of the institution name and adding institution |
| 48 | Given I go to /account/signup | 28 | Given I go to /account/signup |
| 49 | And Institutions has initial default values on database | 29 | And Institutions has initial default values on database |
| 50 | And the following public institutions | 30 | And the following public institutions |
| @@ -52,29 +32,12 @@ Feature: User Registration | @@ -52,29 +32,12 @@ Feature: User Registration | ||
| 52 | | Ministerio das Cidades | MC | BR | DF | Gama | 58.745.189/0001-21 | Autarquia | Executivo | Federal | | 32 | | Ministerio das Cidades | MC | BR | DF | Gama | 58.745.189/0001-21 | Autarquia | Executivo | Federal | |
| 53 | | Governo do DF | GDF | BR | DF | Taguatinga | 12.645.166/0001-44 | Autarquia | Legislativo | Federal | | 33 | | Governo do DF | GDF | BR | DF | Taguatinga | 12.645.166/0001-44 | Autarquia | Legislativo | Federal | |
| 54 | | Ministerio do Planejamento | MP | BR | DF | Brasilia | 41.769.591/0001-43 | Autarquia | Judiciario | Federal | | 34 | | Ministerio do Planejamento | MP | BR | DF | Brasilia | 41.769.591/0001-43 | Autarquia | Judiciario | Federal | |
| 55 | - And I fill in the following within ".no-boxes": | ||
| 56 | - | e-Mail | josesilva@serpro.gov.br| | ||
| 57 | - | Username | josesilva | | ||
| 58 | - | Password | secret | | ||
| 59 | - | Password confirmation | secret | | ||
| 60 | - | Full name | José da Silva | | ||
| 61 | - | State | Bahia | | ||
| 62 | - | City | Salvador | | ||
| 63 | - | Secondary e-Mail | josesilva@example.com | | ||
| 64 | - And I select "Brazil" from "profile_data[country]" | ||
| 65 | And I type in "Minis" into autocomplete list "input_institution" and I choose "Ministerio do Planejamento" | 35 | And I type in "Minis" into autocomplete list "input_institution" and I choose "Ministerio do Planejamento" |
| 66 | - And wait for the captcha signup time | ||
| 67 | And I follow "Add new institution" | 36 | And I follow "Add new institution" |
| 68 | - And I press "Create my account" | ||
| 69 | - When José da Silva's account is activated | ||
| 70 | - And I go to login page | ||
| 71 | - And I fill in "Username" with "josesilva" | ||
| 72 | - And I fill in "Password" with "secret" | ||
| 73 | - And I press "Log in" | ||
| 74 | - Then I should be logged in as "josesilva" | 37 | + Then I should see "Ministerio do Planejamento" within ".institutions_added" |
| 75 | 38 | ||
| 76 | @selenium | 39 | @selenium |
| 77 | - Scenario: Successfull registration with governmental e-mail typing the acronym of the organization | 40 | + Scenario: Successfull autocomplete with institution acronym |
| 78 | Given I go to /account/signup | 41 | Given I go to /account/signup |
| 79 | And Institutions has initial default values on database | 42 | And Institutions has initial default values on database |
| 80 | And the following public institutions | 43 | And the following public institutions |
| @@ -82,159 +45,10 @@ Feature: User Registration | @@ -82,159 +45,10 @@ Feature: User Registration | ||
| 82 | | Ministerio das Cidades | MC | BR | DF | Gama | 58.745.189/0001-21 | Autarquia | Executivo | Federal | | 45 | | Ministerio das Cidades | MC | BR | DF | Gama | 58.745.189/0001-21 | Autarquia | Executivo | Federal | |
| 83 | | Governo do DF | GDF | BR | DF | Taguatinga | 12.645.166/0001-44 | Autarquia | Legislativo | Federal | | 46 | | Governo do DF | GDF | BR | DF | Taguatinga | 12.645.166/0001-44 | Autarquia | Legislativo | Federal | |
| 84 | | Ministerio do Planejamento | MP | BR | DF | Brasilia | 41.769.591/0001-43 | Autarquia | Judiciario | Federal | | 47 | | Ministerio do Planejamento | MP | BR | DF | Brasilia | 41.769.591/0001-43 | Autarquia | Judiciario | Federal | |
| 85 | - And I fill in the following within ".no-boxes": | ||
| 86 | - | e-Mail | josesilva@serpro.gov.br| | ||
| 87 | - | Username | josesilva | | ||
| 88 | - | Password | secret | | ||
| 89 | - | Password confirmation | secret | | ||
| 90 | - | Full name | José da Silva | | ||
| 91 | - | State | Bahia | | ||
| 92 | - | City | Salvador | | ||
| 93 | - | Secondary e-Mail | josesilva@example.com | | ||
| 94 | - And I select "Brazil" from "profile_data[country]" | ||
| 95 | And I type in "MP" into autocomplete list "input_institution" and I choose "Ministerio do Planejamento" | 48 | And I type in "MP" into autocomplete list "input_institution" and I choose "Ministerio do Planejamento" |
| 96 | - And wait for the captcha signup time | ||
| 97 | And I follow "Add new institution" | 49 | And I follow "Add new institution" |
| 98 | - And I press "Create my account" | ||
| 99 | - When José da Silva's account is activated | ||
| 100 | - And I go to login page | ||
| 101 | - And I fill in "Username" with "josesilva" | ||
| 102 | - And I fill in "Password" with "secret" | ||
| 103 | - And I press "Log in" | ||
| 104 | - Then I should be logged in as "josesilva" | ||
| 105 | - | ||
| 106 | - @selenium | ||
| 107 | - Scenario: Unsuccessfull registration due to the existance of e-mail as secondary another user's e-mail | ||
| 108 | - Given the following users | ||
| 109 | - | login | name | email | country | state | city | | ||
| 110 | - | maria | Maria Silva | maria@example.com | Brazil | DF | Brasilia | | ||
| 111 | - And the user "maria" has "user@example.com" as secondary e-mail | ||
| 112 | - And I go to /account/signup | ||
| 113 | - And I fill in the following within ".no-boxes": | ||
| 114 | - | e-Mail | user@example.com | | ||
| 115 | - | Username | josesilva | | ||
| 116 | - | Password | secret | | ||
| 117 | - | Password confirmation | secret | | ||
| 118 | - | Full name | José da Silva | | ||
| 119 | - | State | Bahia | | ||
| 120 | - | City | Salvador | | ||
| 121 | - And wait for the captcha signup time | ||
| 122 | - And I select "Brazil" from "profile_data[country]" | ||
| 123 | - When I press "Create my account" | ||
| 124 | - Then I should see "E-mail or secondary e-mail already taken." | ||
| 125 | - | ||
| 126 | - @selenium | ||
| 127 | - Scenario: Unsuccessfull registration due to the existance of secondary e-mail as another user's secondary e-mail | ||
| 128 | - Given the following users | ||
| 129 | - | login | name | email | country | state | city | | ||
| 130 | - | maria | Maria Silva | maria@example.com | Brazil | DF | Brasilia | | ||
| 131 | - And the user "maria" has "user@example.com" as secondary e-mail | ||
| 132 | - And I go to /account/signup | ||
| 133 | - And I fill in the following within ".no-boxes": | ||
| 134 | - | e-Mail | josesilva@example.com | | ||
| 135 | - | Username | josesilva | | ||
| 136 | - | Password | secret | | ||
| 137 | - | Password confirmation | secret | | ||
| 138 | - | Full name | José da Silva | | ||
| 139 | - | State | Bahia | | ||
| 140 | - | City | Salvador | | ||
| 141 | - | Secondary e-Mail | user@example.com | | ||
| 142 | - And I select "Brazil" from "profile_data[country]" | ||
| 143 | - And wait for the captcha signup time | ||
| 144 | - When I press "Create my account" | ||
| 145 | - Then I should see "E-mail or secondary e-mail already taken." | ||
| 146 | - | ||
| 147 | - @selenium | ||
| 148 | - Scenario: Unsuccessfull registration due to the existance of secondary e-mail as another user's e-mail | ||
| 149 | - Given the following users | ||
| 150 | - | login | name | email | country | state | city | | ||
| 151 | - | maria | Maria Silva | user@example.com | Brazil | DF | Brasilia | | ||
| 152 | - And I go to /account/signup | ||
| 153 | - And I fill in the following within ".no-boxes": | ||
| 154 | - | e-Mail | josesilva@example.com | | ||
| 155 | - | Username | josesilva | | ||
| 156 | - | Password | secret | | ||
| 157 | - | Password confirmation | secret | | ||
| 158 | - | Full name | José da Silva | | ||
| 159 | - | State | Bahia | | ||
| 160 | - | City | Salvador | | ||
| 161 | - | Secondary e-Mail | user@example.com | | ||
| 162 | - And I select "Brazil" from "profile_data[country]" | ||
| 163 | - And wait for the captcha signup time | ||
| 164 | - When I press "Create my account" | ||
| 165 | - Then I should see "E-mail or secondary e-mail already taken." | ||
| 166 | - | ||
| 167 | - @selenium | ||
| 168 | - Scenario: Unsuccessfull registration due to both primary e-mail and secondary e-mail being equal | ||
| 169 | - Given I go to /account/signup | ||
| 170 | - And I fill in the following within ".no-boxes": | ||
| 171 | - | Username | josesilva | | ||
| 172 | - | e-Mail | josesilva@example.com | | ||
| 173 | - | Password | secret | | ||
| 174 | - | Password confirmation | secret | | ||
| 175 | - | Full name | José da Silva | | ||
| 176 | - | State | Bahia | | ||
| 177 | - | City | Salvador | | ||
| 178 | - | Secondary e-Mail | josesilva@example.com | | ||
| 179 | - And I select "Brazil" from "profile_data[country]" | ||
| 180 | - And wait for the captcha signup time | ||
| 181 | - When I press "Create my account" | ||
| 182 | - Then I should see "Email must be different from secondary email." | ||
| 183 | - | ||
| 184 | - @selenium | ||
| 185 | - Scenario: Unsuccessfull registration due to government fields being blank | ||
| 186 | - Given I go to /account/signup | ||
| 187 | - And I fill in the following within ".no-boxes": | ||
| 188 | - | Username | josesilva | | ||
| 189 | - | e-Mail | josesilva@serpro.gov.br| | ||
| 190 | - | Password | secret | | ||
| 191 | - | Password confirmation | secret | | ||
| 192 | - | Full name | José da Silva | | ||
| 193 | - | Secondary e-Mail | josesilva@example.com | | ||
| 194 | - And I select "Brazil" from "profile_data[country]" | ||
| 195 | - And wait for the captcha signup time | ||
| 196 | - When I press "Create my account" | ||
| 197 | - And I should see "Institution is obligatory if user has a government email." | ||
| 198 | - And I should see "State can't be blank" | ||
| 199 | - And I should see "City can't be blank" | ||
| 200 | - | ||
| 201 | - @selenium | ||
| 202 | - Scenario: Unsuccessfull registration due to secondary email is governmental and primary is not | ||
| 203 | - Given I go to /account/signup | ||
| 204 | - And I fill in the following within ".no-boxes": | ||
| 205 | - | Username | josesilva | | ||
| 206 | - | e-Mail | josesilva@example.com | | ||
| 207 | - | Password | secret | | ||
| 208 | - | Password confirmation | secret | | ||
| 209 | - | Full name | José da Silva | | ||
| 210 | - | State | Bahia | | ||
| 211 | - | City | Salvador | | ||
| 212 | - | Secondary e-Mail | josesilva@serpro.gov.br| | ||
| 213 | - And wait for the captcha signup time | ||
| 214 | - When I press "Create my account" | ||
| 215 | - Then I should see "The governamental email must be the primary one." | ||
| 216 | - | ||
| 217 | - @selenium-fixme | ||
| 218 | - Scenario: Show incomplete resgistration percentage | ||
| 219 | - Given I go to /account/signup | ||
| 220 | - And I fill in the following within ".no-boxes": | ||
| 221 | - | e-Mail | josesilva@gmail.com | | ||
| 222 | - | Password | secret | | ||
| 223 | - | Password confirmation | secret | | ||
| 224 | - | Full name | José da Silva | | ||
| 225 | - | State | Bahia | | ||
| 226 | - | City | Salvador | | ||
| 227 | - | Secondary e-Mail | josesilva@example.com | | ||
| 228 | - And I select "Brazil" from "profile_data[country]" | ||
| 229 | - And I fill in "Username" with "josesilva" | ||
| 230 | - And wait for the captcha signup time | ||
| 231 | - And I press "Create my account" | ||
| 232 | - When José da Silva's account is activated | ||
| 233 | - And I go to login page | ||
| 234 | - And I fill in "Username" with "josesilva" | ||
| 235 | - And I fill in "Password" with "secret" | ||
| 236 | - And I press "Log in" | ||
| 237 | - Then I should see "Complete Profile: 37%" | 50 | + Then I should see "Ministerio do Planejamento" within ".institutions_added" |
| 51 | + | ||
| 238 | 52 | ||
| 239 | @selenium | 53 | @selenium |
| 240 | Scenario: Remove the incomplete resgistration percentage message | 54 | Scenario: Remove the incomplete resgistration percentage message |
| @@ -260,17 +74,6 @@ Feature: User Registration | @@ -260,17 +74,6 @@ Feature: User Registration | ||
| 260 | Then I should not see "Complete Profile: 37%" | 74 | Then I should not see "Complete Profile: 37%" |
| 261 | 75 | ||
| 262 | @selenium | 76 | @selenium |
| 263 | - Scenario: When the user log out and log in again, the percentage registration message must appear | ||
| 264 | - Given the following users | ||
| 265 | - | login | name | email | country | state | city | | ||
| 266 | - | maria | Maria Silva | maria@example.com | Brazil | DF | Brasilia | | ||
| 267 | - When I am logged in as "maria" | ||
| 268 | - And I should see "Complete Profile:" | ||
| 269 | - And I follow "Logout" | ||
| 270 | - And I am logged in as "maria" | ||
| 271 | - Then I should see "Complete Profile:" | ||
| 272 | - | ||
| 273 | - @selenium | ||
| 274 | 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 | 77 | 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 |
| 275 | Given the following users | 78 | Given the following users |
| 276 | | login | name | email | country | state | city | | 79 | | login | name | email | country | state | city | |
| @@ -300,11 +103,3 @@ Feature: User Registration | @@ -300,11 +103,3 @@ Feature: User Registration | ||
| 300 | And I go to /profile/maria | 103 | And I go to /profile/maria |
| 301 | Then I should not see "Complete Profile" | 104 | Then I should not see "Complete Profile" |
| 302 | 105 | ||
| 303 | - @selenium-fixme | ||
| 304 | - Scenario: When the user press incomplete percentage link,he must be redirect to his edit profile page | ||
| 305 | - Given the following users | ||
| 306 | - | login | name | email | country | state | city | | ||
| 307 | - | maria | Maria Silva | maria@example.com | Brazil | DF | Brasilia | | ||
| 308 | - When I am logged in as "maria" | ||
| 309 | - And I follow "Complete your profile" | ||
| 310 | - Then I should see "Profile settings" |