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