summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorDaniel Calviño Sánchez <danxuliu@gmail.com>2021-03-07 17:35:53 +0100
committerDaniel Calviño Sánchez <danxuliu@gmail.com>2021-03-07 18:27:45 +0100
commit0e6401933b1474eeb1f2adb9dda236e06c215c46 (patch)
tree02e9c0d773954f5c965f1ebc55662f59e8546b7e /tests
parentb6e434f02adeb827d141a5cf8f6bed0f0a0b5bbc (diff)
downloadnextcloud-server-0e6401933b1474eeb1f2adb9dda236e06c215c46.tar.gz
nextcloud-server-0e6401933b1474eeb1f2adb9dda236e06c215c46.zip
Fix acceptance test for searching just added users in contacts menu
User "user1" is added when installing and configuring the server, so it is already added in all tests. As the test verifies that just added users can be searched in the contacts menu a new user should be actually added. The test did not fail because it assumed that "user1" did not exist and just checked that it existed after "adding" it, but not whether adding it failed. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
Diffstat (limited to 'tests')
-rw-r--r--tests/acceptance/features/header.feature5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/acceptance/features/header.feature b/tests/acceptance/features/header.feature
index df9d8045b8b..b91552f10f8 100644
--- a/tests/acceptance/features/header.feature
+++ b/tests/acceptance/features/header.feature
@@ -46,12 +46,13 @@ Feature: header
And I open the User settings
And I click the New user button
And I see that the new user form is shown
- And I create user user1 with password 123456acb
- And I see that the list of users contains the user user1
+ And I create user user2 with password 123456acb
+ 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
And I see that the contact "user1" in the Contacts menu is shown
+ And I see that the contact "user2" in the Contacts menu is shown
And I see that the contact "admin" in the Contacts menu is not shown
Scenario: search for other users in the contacts menu