Commit 04b1bfd0ae196f3bd2d80d9890dd99dcd7d83ab0
1 parent
40da8f5a
Exists in
master
and in
29 other branches
Fixing test: features/login.feature
Showing
1 changed file
with
26 additions
and
13 deletions
Show diff stats
features/login.feature
| @@ -8,17 +8,20 @@ Feature: login | @@ -8,17 +8,20 @@ Feature: login | ||
| 8 | | login | name | | 8 | | login | name | |
| 9 | | joaosilva | Joao Silva | | 9 | | joaosilva | Joao Silva | |
| 10 | 10 | ||
| 11 | + @selenium | ||
| 11 | Scenario: login from portal homepage | 12 | Scenario: login from portal homepage |
| 12 | Given feature "allow_change_of_redirection_after_login" is disabled on environment | 13 | Given feature "allow_change_of_redirection_after_login" is disabled on environment |
| 13 | And I am not logged in | 14 | And I am not logged in |
| 14 | And I go to the homepage | 15 | And I go to the homepage |
| 16 | + And I follow "Login" | ||
| 15 | And I fill in the following: | 17 | And I fill in the following: |
| 16 | - | Username | joaosilva | | 18 | + | Username / Email | joaosilva | |
| 17 | | Password | 123456 | | 19 | | Password | 123456 | |
| 18 | When I press "Log in" | 20 | When I press "Log in" |
| 19 | Then I should be on the homepage | 21 | Then I should be on the homepage |
| 20 | And I should be logged in as "joaosilva" | 22 | And I should be logged in as "joaosilva" |
| 21 | 23 | ||
| 24 | + @selenium | ||
| 22 | Scenario: login from some profile page | 25 | Scenario: login from some profile page |
| 23 | Given feature "allow_change_of_redirection_after_login" is disabled on environment | 26 | Given feature "allow_change_of_redirection_after_login" is disabled on environment |
| 24 | And I am not logged in | 27 | And I am not logged in |
| @@ -31,7 +34,7 @@ Feature: login | @@ -31,7 +34,7 @@ Feature: login | ||
| 31 | And I go to mariasilva's homepage | 34 | And I go to mariasilva's homepage |
| 32 | And I follow "Login" | 35 | And I follow "Login" |
| 33 | And I fill in the following: | 36 | And I fill in the following: |
| 34 | - | Username | joaosilva | | 37 | + | Username / Email | joaosilva | |
| 35 | | Password | 123456 | | 38 | | Password | 123456 | |
| 36 | When I press "Log in" | 39 | When I press "Log in" |
| 37 | Then I should be on mariasilva's homepage | 40 | Then I should be on mariasilva's homepage |
| @@ -42,7 +45,7 @@ Feature: login | @@ -42,7 +45,7 @@ Feature: login | ||
| 42 | And I go to joaosilva's control panel | 45 | And I go to joaosilva's control panel |
| 43 | And I should be on login page | 46 | And I should be on login page |
| 44 | And I fill in the following: | 47 | And I fill in the following: |
| 45 | - | Username | joaosilva | | 48 | + | Username / Email | joaosilva | |
| 46 | | Password | 123456 | | 49 | | Password | 123456 | |
| 47 | When I press "Log in" | 50 | When I press "Log in" |
| 48 | Then I should be on joaosilva's control panel | 51 | Then I should be on joaosilva's control panel |
| @@ -52,6 +55,7 @@ Feature: login | @@ -52,6 +55,7 @@ Feature: login | ||
| 52 | And I go to login page | 55 | And I go to login page |
| 53 | Then I should be on joaosilva's control panel | 56 | Then I should be on joaosilva's control panel |
| 54 | 57 | ||
| 58 | + @selenium | ||
| 55 | Scenario: stay on the same page after login if this is the environment default | 59 | Scenario: stay on the same page after login if this is the environment default |
| 56 | Given feature "allow_change_of_redirection_after_login" is enabled on environment | 60 | Given feature "allow_change_of_redirection_after_login" is enabled on environment |
| 57 | And I am not logged in | 61 | And I am not logged in |
| @@ -65,11 +69,12 @@ Feature: login | @@ -65,11 +69,12 @@ Feature: login | ||
| 65 | And I go to mariasilva's homepage | 69 | And I go to mariasilva's homepage |
| 66 | And I follow "Login" | 70 | And I follow "Login" |
| 67 | And I fill in the following: | 71 | And I fill in the following: |
| 68 | - | Username | joaosilva | | 72 | + | Username / Email | joaosilva | |
| 69 | | Password | 123456 | | 73 | | Password | 123456 | |
| 70 | When I press "Log in" | 74 | When I press "Log in" |
| 71 | Then I should be on mariasilva's homepage | 75 | Then I should be on mariasilva's homepage |
| 72 | 76 | ||
| 77 | + @selenium | ||
| 73 | Scenario: go to site homepage if this is the environment default | 78 | Scenario: go to site homepage if this is the environment default |
| 74 | Given feature "allow_change_of_redirection_after_login" is enabled on environment | 79 | Given feature "allow_change_of_redirection_after_login" is enabled on environment |
| 75 | And I am not logged in | 80 | And I am not logged in |
| @@ -77,11 +82,12 @@ Feature: login | @@ -77,11 +82,12 @@ Feature: login | ||
| 77 | And I go to joaosilva's homepage | 82 | And I go to joaosilva's homepage |
| 78 | And I follow "Login" | 83 | And I follow "Login" |
| 79 | And I fill in the following: | 84 | And I fill in the following: |
| 80 | - | Username | joaosilva | | 85 | + | Username / Email | joaosilva | |
| 81 | | Password | 123456 | | 86 | | Password | 123456 | |
| 82 | When I press "Log in" | 87 | When I press "Log in" |
| 83 | Then I should be on the homepage | 88 | Then I should be on the homepage |
| 84 | 89 | ||
| 90 | + @selenium | ||
| 85 | Scenario: go to user profile after login if this is the environment default | 91 | Scenario: go to user profile after login if this is the environment default |
| 86 | Given feature "allow_change_of_redirection_after_login" is enabled on environment | 92 | Given feature "allow_change_of_redirection_after_login" is enabled on environment |
| 87 | And I am not logged in | 93 | And I am not logged in |
| @@ -89,11 +95,12 @@ Feature: login | @@ -89,11 +95,12 @@ Feature: login | ||
| 89 | And I go to the homepage | 95 | And I go to the homepage |
| 90 | And I follow "Login" | 96 | And I follow "Login" |
| 91 | And I fill in the following: | 97 | And I fill in the following: |
| 92 | - | Username | joaosilva | | 98 | + | Username / Email | joaosilva | |
| 93 | | Password | 123456 | | 99 | | Password | 123456 | |
| 94 | When I press "Log in" | 100 | When I press "Log in" |
| 95 | Then I should be on joaosilva's profile | 101 | Then I should be on joaosilva's profile |
| 96 | 102 | ||
| 103 | + @selenium | ||
| 97 | Scenario: go to profile homepage after login if this is the environment default | 104 | Scenario: go to profile homepage after login if this is the environment default |
| 98 | Given the following articles | 105 | Given the following articles |
| 99 | | owner | name | body | homepage | | 106 | | owner | name | body | homepage | |
| @@ -104,11 +111,12 @@ Feature: login | @@ -104,11 +111,12 @@ Feature: login | ||
| 104 | And I go to the homepage | 111 | And I go to the homepage |
| 105 | And I follow "Login" | 112 | And I follow "Login" |
| 106 | And I fill in the following: | 113 | And I fill in the following: |
| 107 | - | Username | joaosilva | | 114 | + | Username / Email | joaosilva | |
| 108 | | Password | 123456 | | 115 | | Password | 123456 | |
| 109 | When I press "Log in" | 116 | When I press "Log in" |
| 110 | Then I should be on joaosilva's homepage | 117 | Then I should be on joaosilva's homepage |
| 111 | 118 | ||
| 119 | + @selenium | ||
| 112 | Scenario: go to profile control panel after login if this is the environment default | 120 | Scenario: go to profile control panel after login if this is the environment default |
| 113 | Given feature "allow_change_of_redirection_after_login" is enabled on environment | 121 | Given feature "allow_change_of_redirection_after_login" is enabled on environment |
| 114 | And I am not logged in | 122 | And I am not logged in |
| @@ -116,11 +124,12 @@ Feature: login | @@ -116,11 +124,12 @@ Feature: login | ||
| 116 | And I go to the homepage | 124 | And I go to the homepage |
| 117 | And I follow "Login" | 125 | And I follow "Login" |
| 118 | And I fill in the following: | 126 | And I fill in the following: |
| 119 | - | Username | joaosilva | | 127 | + | Username / Email | joaosilva | |
| 120 | | Password | 123456 | | 128 | | Password | 123456 | |
| 121 | When I press "Log in" | 129 | When I press "Log in" |
| 122 | Then I should be on joaosilva's control panel | 130 | Then I should be on joaosilva's control panel |
| 123 | 131 | ||
| 132 | + @selenium | ||
| 124 | Scenario: stay on the same page after login if this is the profile default | 133 | Scenario: stay on the same page after login if this is the profile default |
| 125 | Given feature "allow_change_of_redirection_after_login" is enabled on environment | 134 | Given feature "allow_change_of_redirection_after_login" is enabled on environment |
| 126 | And I am not logged in | 135 | And I am not logged in |
| @@ -135,11 +144,12 @@ Feature: login | @@ -135,11 +144,12 @@ Feature: login | ||
| 135 | And I go to mariasilva's homepage | 144 | And I go to mariasilva's homepage |
| 136 | And I follow "Login" | 145 | And I follow "Login" |
| 137 | And I fill in the following: | 146 | And I fill in the following: |
| 138 | - | Username | joaosilva | | 147 | + | Username / Email | joaosilva | |
| 139 | | Password | 123456 | | 148 | | Password | 123456 | |
| 140 | When I press "Log in" | 149 | When I press "Log in" |
| 141 | Then I should be on mariasilva's homepage | 150 | Then I should be on mariasilva's homepage |
| 142 | 151 | ||
| 152 | + @selenium | ||
| 143 | Scenario: go to site homepage if this is the profile default | 153 | Scenario: go to site homepage if this is the profile default |
| 144 | Given feature "allow_change_of_redirection_after_login" is enabled on environment | 154 | Given feature "allow_change_of_redirection_after_login" is enabled on environment |
| 145 | And I am not logged in | 155 | And I am not logged in |
| @@ -148,11 +158,12 @@ Feature: login | @@ -148,11 +158,12 @@ Feature: login | ||
| 148 | And I go to joaosilva's homepage | 158 | And I go to joaosilva's homepage |
| 149 | And I follow "Login" | 159 | And I follow "Login" |
| 150 | And I fill in the following: | 160 | And I fill in the following: |
| 151 | - | Username | joaosilva | | 161 | + | Username / Email | joaosilva | |
| 152 | | Password | 123456 | | 162 | | Password | 123456 | |
| 153 | When I press "Log in" | 163 | When I press "Log in" |
| 154 | Then I should be on the homepage | 164 | Then I should be on the homepage |
| 155 | 165 | ||
| 166 | + @selenium | ||
| 156 | Scenario: go to user profile after login if this is the profile default | 167 | Scenario: go to user profile after login if this is the profile default |
| 157 | Given feature "allow_change_of_redirection_after_login" is enabled on environment | 168 | Given feature "allow_change_of_redirection_after_login" is enabled on environment |
| 158 | And I am not logged in | 169 | And I am not logged in |
| @@ -161,11 +172,12 @@ Feature: login | @@ -161,11 +172,12 @@ Feature: login | ||
| 161 | And I go to the homepage | 172 | And I go to the homepage |
| 162 | And I follow "Login" | 173 | And I follow "Login" |
| 163 | And I fill in the following: | 174 | And I fill in the following: |
| 164 | - | Username | joaosilva | | 175 | + | Username / Email | joaosilva | |
| 165 | | Password | 123456 | | 176 | | Password | 123456 | |
| 166 | When I press "Log in" | 177 | When I press "Log in" |
| 167 | Then I should be on joaosilva's profile | 178 | Then I should be on joaosilva's profile |
| 168 | 179 | ||
| 180 | + @selenium | ||
| 169 | Scenario: go to profile homepage after login if this is the profile default | 181 | Scenario: go to profile homepage after login if this is the profile default |
| 170 | Given the following articles | 182 | Given the following articles |
| 171 | | owner | name | body | homepage | | 183 | | owner | name | body | homepage | |
| @@ -177,11 +189,12 @@ Feature: login | @@ -177,11 +189,12 @@ Feature: login | ||
| 177 | And I go to the homepage | 189 | And I go to the homepage |
| 178 | And I follow "Login" | 190 | And I follow "Login" |
| 179 | And I fill in the following: | 191 | And I fill in the following: |
| 180 | - | Username | joaosilva | | 192 | + | Username / Email | joaosilva | |
| 181 | | Password | 123456 | | 193 | | Password | 123456 | |
| 182 | When I press "Log in" | 194 | When I press "Log in" |
| 183 | Then I should be on joaosilva's homepage | 195 | Then I should be on joaosilva's homepage |
| 184 | 196 | ||
| 197 | + @selenium | ||
| 185 | Scenario: go to profile control panel after login if this is the profile default | 198 | Scenario: go to profile control panel after login if this is the profile default |
| 186 | Given feature "allow_change_of_redirection_after_login" is enabled on environment | 199 | Given feature "allow_change_of_redirection_after_login" is enabled on environment |
| 187 | And I am not logged in | 200 | And I am not logged in |
| @@ -190,7 +203,7 @@ Feature: login | @@ -190,7 +203,7 @@ Feature: login | ||
| 190 | And I go to the homepage | 203 | And I go to the homepage |
| 191 | And I follow "Login" | 204 | And I follow "Login" |
| 192 | And I fill in the following: | 205 | And I fill in the following: |
| 193 | - | Username | joaosilva | | 206 | + | Username / Email | joaosilva | |
| 194 | | Password | 123456 | | 207 | | Password | 123456 | |
| 195 | When I press "Log in" | 208 | When I press "Log in" |
| 196 | Then I should be on joaosilva's control panel | 209 | Then I should be on joaosilva's control panel |