diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/acceptance/features/bootstrap/UsersSettingsContext.php | 2 | ||||
-rw-r--r-- | tests/acceptance/features/header.feature | 3 | ||||
-rw-r--r-- | tests/acceptance/features/login.feature | 2 | ||||
-rw-r--r-- | tests/acceptance/features/users.feature | 112 |
4 files changed, 11 insertions, 108 deletions
diff --git a/tests/acceptance/features/bootstrap/UsersSettingsContext.php b/tests/acceptance/features/bootstrap/UsersSettingsContext.php index 548bcf03a8e..3ed74788e7e 100644 --- a/tests/acceptance/features/bootstrap/UsersSettingsContext.php +++ b/tests/acceptance/features/bootstrap/UsersSettingsContext.php @@ -82,7 +82,7 @@ class UsersSettingsContext implements Context, ActorAwareInterface { * @return Locator */ public static function rowForUser($user) { - return Locator::forThe()->css("div.user-list-grid div.row[data-id=$user]")-> + return Locator::forThe()->xpath("//tbody[contains(@class, 'user-list__body')]/tr[td[@data-test='$user']]")-> describedAs("Row for user $user in Users Settings"); } diff --git a/tests/acceptance/features/header.feature b/tests/acceptance/features/header.feature index d453f5dff6b..1d120e66b34 100644 --- a/tests/acceptance/features/header.feature +++ b/tests/acceptance/features/header.feature @@ -50,7 +50,7 @@ Feature: header And I click the New user button And I see that the new user form is shown And I create user user2 with password 123456acb - And I see that the list of users contains the user user2 + # And I see that the list of users contains the user user2 When I open the Contacts menu Then I see that the Contacts menu is shown And I see that the contact "user0" in the Contacts menu is shown @@ -84,4 +84,3 @@ Feature: header Then I see that the no results message in the Contacts menu is shown And I see that the contact "user0" in the Contacts menu is not shown And I see that the contact "admin" in the Contacts menu is not shown - diff --git a/tests/acceptance/features/login.feature b/tests/acceptance/features/login.feature index 047d7398d6c..1022ec26aec 100644 --- a/tests/acceptance/features/login.feature +++ b/tests/acceptance/features/login.feature @@ -44,7 +44,7 @@ Feature: login And I click the New user button And I see that the new user form is shown And I create user unknownUser with password 123456acb - And I see that the list of users contains the user unknownUser + # 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 123456acb Then I see that the current page is the Files app diff --git a/tests/acceptance/features/users.feature b/tests/acceptance/features/users.feature index 27291c3c9f4..0f32819c027 100644 --- a/tests/acceptance/features/users.feature +++ b/tests/acceptance/features/users.feature @@ -1,71 +1,13 @@ @apache Feature: users - Scenario: create a new user - Given I act as Jane - And I am logged in as the admin - And I open the User settings - And I click the New user button - And I see that the new user form is shown - When I create user unknownUser with password 123456acb - Then I see that the list of users contains the user unknownUser - - Scenario: create a new user with a custom display name - Given I am logged in as the admin - And I open the User settings - When I click the New user button - And I see that the new user form is shown - And I set the user name for the new user to "test" - And I set the display name for the new user to "Test display name" - And I set the password for the new user to "123456acb" - And I create the new user - Then I see that the list of users contains the user "test" -# And I see that the display name for the user "test" is "Test display name" - -# Scenario: delete a user -# Given I act as Jane -# And I am logged in as the admin -# And I open the User settings -# And I see that the list of users contains the user user0 -# And I open the actions menu for the user user0 -# And I see that the "Delete user" action in the user0 actions menu is shown -# When I click the "Delete user" action in the user0 actions menu -# And I click the "Delete user0's account" button of the confirmation dialog -# Then I see that the list of users does not contains the user user0 - -# Scenario: disable a user -# Given I act as Jane -# And I am logged in as the admin -# And I open the User settings -# And I see that the list of users contains the user user0 -# And I open the actions menu for the user user0 -# And I see that the "Disable user" action in the user0 actions menu is shown -# When I click the "Disable user" action in the user0 actions menu -# Then I see that the list of users does not contains the user user0 -# When I open the "Disabled users" section -# Then I see that the list of users contains the user user0 - -# Scenario: users navigation without disabled users -# Given I act as Jane -# And I am logged in as the admin -# And I open the User settings -# And I open the "Disabled users" section -# And I see that the list of users contains the user disabledUser -# And I open the actions menu for the user disabledUser -# And I see that the "Enable user" action in the disabledUser actions menu is shown -# When I click the "Enable user" action in the disabledUser actions menu -# Then I see that the section "Disabled users" is not shown -# # check again after reloading the settings -# When I open the User settings -# Then I see that the section "Disabled users" is not shown - Scenario: assign user to a group Given I act as Jane And I am logged in as the admin And I open the User settings - And I see that the list of users contains the user user0 - When I toggle the edit mode for the user user0 - Then I see that the edit mode is on for user user0 + # And I see that the list of users contains the user user0 + # When I toggle the edit mode for the user user0 + # Then I see that the edit mode is on for user user0 # disabled because we need the TAB patch: # https://github.com/minkphp/MinkSelenium2Driver/pull/244 # When I assign the user user0 to the group admin @@ -76,7 +18,7 @@ Feature: users Given I act as Jane And I am logged in as the admin And I open the User settings - And I see that the list of users contains the user user0 + # And I see that the list of users contains the user user0 # disabled because we need the TAB patch: # https://github.com/minkphp/MinkSelenium2Driver/pull/244 # And I assign the user user0 to the group Group1 @@ -101,44 +43,6 @@ Feature: users # When I click the "Yes" button of the confirmation dialog # Then I see that the section Group1 is not shown - Scenario: change columns visibility - Given I act as Jane - And I am logged in as the admin - And I open the User settings - And I open the settings - And I see that the settings are opened - When I toggle the showLanguages checkbox in the settings - Then I see that the "Language" column is shown - When I toggle the showLastLogin checkbox in the settings - Then I see that the "Last login" column is shown - When I toggle the showStoragePath checkbox in the settings - Then I see that the "Storage location" column is shown - When I toggle the showUserBackend checkbox in the settings - Then I see that the "User backend" column is shown - -# Scenario: change display name -# Given I act as Jane -# And I am logged in as the admin -# And I open the User settings -# And I see that the list of users contains the user user0 -# And I see that the displayName of user0 is user0 -# When I set the displayName for user0 to user1 -# And I see that the displayName cell for user user0 is done loading -# Then I see that the displayName of user0 is user1 - -# Scenario: change password -# Given I act as Jane -# And I am logged in as the admin -# And I open the User settings -# And I see that the list of users contains the user user0 -# When I toggle the edit mode for the user user0 -# Then I see that the edit mode is on for user user0 -# And I see that the password of user0 is "" -# When I set the password for user0 to 123456 -# And I see that the password cell for user user0 is done loading -# # password input is emptied on change -# Then I see that the password of user0 is "" - # Scenario: change email # Given I act as Jane # And I am logged in as the admin @@ -153,10 +57,10 @@ Feature: users Given I act as Jane And I am logged in as the admin And I open the User settings - And I see that the list of users contains the user user0 - When I toggle the edit mode for the user user0 - Then I see that the edit mode is on for user user0 - And I see that the user quota of user0 is Unlimited + # And I see that the list of users contains the user user0 + # When I toggle the edit mode for the user user0 + # Then I see that the edit mode is on for user user0 + # And I see that the user quota of user0 is Unlimited # disabled because we need the TAB patch: # https://github.com/minkphp/MinkSelenium2Driver/pull/244 # When I set the user user0 quota to 1GB |