Línea 14... |
Línea 14... |
14 |
And I set the field "auth" to "Email-based self-registration"
|
14 |
And I set the field "auth" to "Email-based self-registration"
|
15 |
And the "New password" "field" should be enabled
|
15 |
And the "New password" "field" should be enabled
|
16 |
# We need to cancel/submit a form that has been modified.
|
16 |
# We need to cancel/submit a form that has been modified.
|
17 |
And I press "Create user"
|
17 |
And I press "Create user"
|
Línea 18... |
Línea 18... |
18 |
|
18 |
|
19 |
Scenario: Sign out everywhere field is not present if user doesn't have active token
|
19 |
Scenario: Log out web apps field is not present if user doesn't have active token
|
20 |
Given the following "users" exist:
|
20 |
Given the following "users" exist:
|
21 |
| username | firstname | lastname | email |
|
21 |
| username | firstname | lastname | email |
|
22 |
| user01 | User | One | user01@example.com |
|
22 |
| user01 | User | One | user01@example.com |
|
23 |
When I am on the "user01" "user > editing" page logged in as "admin"
|
23 |
When I am on the "user01" "user > editing" page logged in as "admin"
|
Línea 24... |
Línea 24... |
24 |
Then "Sign out everywhere" "field" should not exist
|
24 |
Then "Log out of all web apps" "field" should not exist
|
25 |
|
25 |
|
26 |
Scenario Outline: Sign out everywhere field is present based on expiry of active token
|
26 |
Scenario Outline: Log out web apps field is present based on expiry of active token
|
27 |
Given the following "users" exist:
|
27 |
Given the following "users" exist:
|
28 |
| username | firstname | lastname | email |
|
28 |
| username | firstname | lastname | email |
|
29 |
| user01 | User | One | user01@example.com |
|
29 |
| user01 | User | One | user01@example.com |
|
30 |
And the following "core_webservice > Service" exist:
|
30 |
And the following "core_webservice > Service" exist:
|
31 |
| shortname | name |
|
31 |
| shortname | name |
|
32 |
| mytestservice | My test service |
|
32 |
| mytestservice | My test service |
|
33 |
And the following "core_webservice > Tokens" exist:
|
33 |
And the following "core_webservice > Tokens" exist:
|
34 |
| user | service | validuntil |
|
34 |
| user | service | validuntil |
|
35 |
| user01 | mytestservice | <validuntil> |
|
35 |
| user01 | mytestservice | <validuntil> |
|
36 |
When I am on the "user01" "user > editing" page logged in as "admin"
|
36 |
When I am on the "user01" "user > editing" page logged in as "admin"
|
37 |
Then "Sign out everywhere" "field" <shouldornot> exist
|
37 |
Then "Log out of all web apps" "field" <shouldornot> exist
|
38 |
Examples:
|
38 |
Examples:
|
39 |
| validuntil | shouldornot |
|
39 |
| validuntil | shouldornot |
|
40 |
| ## -1 month ## | should not |
|
40 |
| ## -1 month ## | should not |
|