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>
This commit is contained in:
Daniel Calviño Sánchez 2021-03-07 17:35:53 +01:00
parent b6e434f02a
commit 0e6401933b
1 changed files with 3 additions and 2 deletions

View File

@ -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