diff options
author | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-04-21 14:47:44 +0200 |
---|---|---|
committer | Daniel Calviño Sánchez <danxuliu@gmail.com> | 2017-04-21 14:47:44 +0200 |
commit | e970b5261fd0ae126db788d514ab4c7770688356 (patch) | |
tree | a98ee31245efbc3814ae91669362173c862ddd4e /tests/acceptance/features | |
parent | 2f80025ec25dd3ce19c0664f07073399e9bf99e9 (diff) | |
download | nextcloud-server-e970b5261fd0ae126db788d514ab4c7770688356.tar.gz nextcloud-server-e970b5261fd0ae126db788d514ab4c7770688356.zip |
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>
Diffstat (limited to 'tests/acceptance/features')
-rw-r--r-- | tests/acceptance/features/bootstrap/LoginPageContext.php | 2 | ||||
-rw-r--r-- | tests/acceptance/features/login.feature | 10 |
2 files changed, 6 insertions, 6 deletions
diff --git a/tests/acceptance/features/bootstrap/LoginPageContext.php b/tests/acceptance/features/bootstrap/LoginPageContext.php index 55db8c33bb7..4b0672f652c 100644 --- a/tests/acceptance/features/bootstrap/LoginPageContext.php +++ b/tests/acceptance/features/bootstrap/LoginPageContext.php @@ -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(); } diff --git a/tests/acceptance/features/login.feature b/tests/acceptance/features/login.feature index c4cd2add8e6..e414209206e 100644 --- a/tests/acceptance/features/login.feature +++ b/tests/acceptance/features/login.feature @@ -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 |