Make test passwords valid for the password_policy app

As requested by Morris Jobke, the passwords in the acceptance tests were
modified to make them valid both for a clean Nextcloud server and one
with the password_policy app enabled.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
This commit is contained in:
Daniel Calviño Sánchez 2017-04-21 14:47:44 +02:00
parent 2f80025ec2
commit e970b5261f
3 changed files with 7 additions and 7 deletions

View File

@ -111,7 +111,7 @@ class LoginPageContext implements Context, ActorAwareInterface {
*/
public function iAmLoggedIn() {
$this->featureContext->iVisitTheHomePage();
$this->iLogInWithUserAndPassword("user0", "123456");
$this->iLogInWithUserAndPassword("user0", "123456acb");
$this->filesAppContext->iSeeThatTheCurrentPageIsTheFilesApp();
}

View File

@ -2,7 +2,7 @@ Feature: login
Scenario: log in with valid user and password
Given I visit the Home page
When I log in with user user0 and password 123456
When I log in with user user0 and password 123456acb
Then I see that the current page is the Files app
Scenario: try to log in with valid user and invalid password
@ -25,20 +25,20 @@ Feature: login
Scenario: try to log in with invalid user
Given I visit the Home page
When I log in with user unknownUser and password 123456
When I log in with user unknownUser and password 123456acb
Then I see that the current page is the Login page
And I see that a wrong password message is shown
Scenario: log in with invalid user once fixed by admin
Given I act as John
And I can not log in with user unknownUser and password 123456
And I can not log in with user unknownUser and password 123456acb
When I act as Jane
And I am logged in as the admin
And I open the User settings
And I create user unknownUser with password 123456
And I create user unknownUser with password 123456acb
And I see that the list of users contains the user unknownUser
And I act as John
And I log in with user unknownUser and password 123456
And I log in with user unknownUser and password 123456acb
Then I see that the current page is the Files app
Scenario: log out

View File

@ -27,4 +27,4 @@ set -o errexit
php occ maintenance:install --admin-pass=admin
OC_PASS=123456 php occ user:add --password-from-env user0
OC_PASS=123456acb php occ user:add --password-from-env user0