Rev 1 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
@core @core_userFeature: Edit a users passwordIn order edit a user password properlyAs an adminI need to be able to edit their profile and change their password@javascriptScenario: Verify the password field is enabled/disabled based on authentication selected, in user edit advanced page.Given I log in as "admin"When I navigate to "Users > Accounts > Add a new user" in site administrationThen the "New password" "field" should be enabledAnd I set the field "auth" to "Web services authentication"And the "New password" "field" should be disabledAnd I set the field "auth" to "Email-based self-registration"And the "New password" "field" should be enabled# We need to cancel/submit a form that has been modified.And I press "Create user"Scenario: Log out web apps field is not present if user doesn't have active tokenGiven the following "users" exist:| username | firstname | lastname | email || user01 | User | One | user01@example.com |When I am on the "user01" "user > editing" page logged in as "admin"Then "Log out of all web apps" "field" should not existScenario Outline: Log out web apps field is present based on expiry of active tokenGiven the following "users" exist:| username | firstname | lastname | email || user01 | User | One | user01@example.com |And the following "core_webservice > Service" exist:| shortname | name || mytestservice | My test service |And the following "core_webservice > Tokens" exist:| user | service | validuntil || user01 | mytestservice | <validuntil> |When I am on the "user01" "user > editing" page logged in as "admin"Then "Log out of all web apps" "field" <shouldornot> existExamples:| validuntil | shouldornot || ## -1 month ## | should not || 0 | should || ## +1 month ## | should |