From 0c08461be5d8c3ddac16760b6af277d43655801b Mon Sep 17 00:00:00 2001 From: Phil Davis Date: Fri, 7 Jun 2019 10:02:11 +0545 Subject: [PATCH] Adjust create user steps --- .../features/apiGuests/guests.feature | 22 +++++++++---------- .../features/webUIGuests/guests.feature | 18 +++++++-------- 2 files changed, 20 insertions(+), 20 deletions(-) diff --git a/tests/acceptance/features/apiGuests/guests.feature b/tests/acceptance/features/apiGuests/guests.feature index fdfa732e..4802e9d1 100644 --- a/tests/acceptance/features/apiGuests/guests.feature +++ b/tests/acceptance/features/apiGuests/guests.feature @@ -11,7 +11,7 @@ Feature: Guests And user "guest" should be a guest user Scenario: Cannot create a guest if a user with the same email address exists - Given user "existing-user" has been created with default attributes + Given user "existing-user" has been created with default attributes and skeleton files And the administrator sends HTTP method "PUT" to OCS API endpoint "/cloud/users/existing-user" with body | key | email | | value | guest@example.com | @@ -38,7 +38,7 @@ Feature: Guests @mailhog Scenario: A guest user can upload files - Given user "user0" has been created with default attributes + Given user "user0" has been created with default attributes and skeleton files And the administrator has created guest user "guest" with email "guest@example.com" And the HTTP status code should be "201" And user "user0" has created folder "/tmp" @@ -49,7 +49,7 @@ Feature: Guests @mailhog Scenario: A guest user can upload chunked files - Given user "user0" has been created with default attributes + Given user "user0" has been created with default attributes and skeleton files And the administrator has created guest user "guest" with email "guest@example.com" And the HTTP status code should be "201" And user "user0" has created folder "/tmp" @@ -65,7 +65,7 @@ Feature: Guests @mailhog @issue-279 Scenario: A guest user can upload files - Given user "user0" has been created with default attributes + Given user "user0" has been created with default attributes and skeleton files And the administrator has created guest user "guest" with email "guest@example.com" And the HTTP status code should be "201" And user "user0" has created folder "/tmp" @@ -91,7 +91,7 @@ Feature: Guests @mailhog Scenario: A guest user can upload files (async upload) Given the administrator has enabled async operations - And user "user0" has been created with default attributes + And user "user0" has been created with default attributes and skeleton files And the administrator has created guest user "guest" with email "guest@example.com" And user "user0" has created folder "/tmp" And user "user0" has shared folder "/tmp" with user "guest@example.com" @@ -115,7 +115,7 @@ Feature: Guests @mailhog Scenario: A guest user can cancel a chunked upload - Given user "user0" has been created with default attributes + Given user "user0" has been created with default attributes and skeleton files And the administrator has created guest user "guest" with email "guest@example.com" And the HTTP status code should be "201" And user "user0" has created folder "/tmp" @@ -131,7 +131,7 @@ Feature: Guests @mailhog Scenario: A guest user can upload a file and can reshare it - Given these users have been created with default attributes: + Given these users have been created with default attributes and skeleton files: | username | | user0 | | user1 | @@ -148,7 +148,7 @@ Feature: Guests @mailhog Scenario: A guest user cannot reshare files - Given these users have been created with default attributes: + Given these users have been created with default attributes and skeleton files: | username | | user0 | | user1 | @@ -170,7 +170,7 @@ Feature: Guests And the HTTP status code should be "200" Scenario: Check that skeleton is properly set - Given user "user0" has been created with default attributes + Given user "user0" has been created with default attributes and skeleton files Then user "user0" should see the following elements | /FOLDER/ | | /PARENT/ | @@ -184,7 +184,7 @@ Feature: Guests @mailhog Scenario: A created guest user can log in - Given user "user0" has been created with default attributes + Given user "user0" has been created with default attributes and skeleton files And the administrator has created guest user "guest" with email "guest@example.com" And the HTTP status code should be "201" And user "guest" should be a guest user @@ -213,7 +213,7 @@ Feature: Guests @mailhog Scenario: A guest user can not create new guest users - Given user "user0" has been created with default attributes + Given user "user0" has been created with default attributes and skeleton files And the administrator has created guest user "guest" with email "guest@example.com" And user "user0" has created folder "/tmp" And user "user0" has shared folder "/tmp" with user "guest@example.com" diff --git a/tests/acceptance/features/webUIGuests/guests.feature b/tests/acceptance/features/webUIGuests/guests.feature index 74bbdc15..67cb309e 100644 --- a/tests/acceptance/features/webUIGuests/guests.feature +++ b/tests/acceptance/features/webUIGuests/guests.feature @@ -7,7 +7,7 @@ Feature: Guests @mailhog Scenario: Guest user sets its own password - Given user "user0" has been created with default attributes + Given user "user0" has been created with default attributes and skeleton files And the administrator has created guest user "guest" with email "guest@example.com" And user "user0" has created folder "/tmp" And user "user0" has shared folder "/tmp" with user "guest@example.com" @@ -18,7 +18,7 @@ Feature: Guests @mailhog Scenario: Guest user uses the link twice - Given user "user0" has been created with default attributes + Given user "user0" has been created with default attributes and skeleton files And the administrator has created guest user "guest" with email "guest@example.com" And user "user0" has created folder "/tmp" And user "user0" has shared folder "/tmp" with user "guest@example.com" @@ -29,14 +29,14 @@ Feature: Guests @mailhog Scenario: User uses valid email to create a guest user - Given user "user0" has been created with default attributes + Given user "user0" has been created with default attributes and skeleton files And user "user0" has logged in using the webUI When the user shares file "data.zip" with guest user with email "valid@email.com" using webUI Then user "valid@email.com" should exist @mailhog Scenario: User uses some random string email to crete a guest user - Given user "user0" has been created with default attributes + Given user "user0" has been created with default attributes and skeleton files And user "user0" has logged in using the webUI And the user has opened the share dialog for folder "lorem.txt" When the user types "somestring" in the share-with-field @@ -46,7 +46,7 @@ Feature: Guests @mailhog Scenario: User uses invalid email to create a guest user - Given user "user0" has been created with default attributes + Given user "user0" has been created with default attributes and skeleton files And user "user0" has logged in using the webUI When the user shares file "testimage.jpg" with guest user with email "invalid@email.com()9876a" using webUI Then dialog should be displayed on the webUI @@ -56,7 +56,7 @@ Feature: Guests @mailhog Scenario: User tries to create a guest user via email with an already used email - Given these users have been created: + Given these users have been created with skeleton files: | username | email | | user0 | user0@oc.com | | user1 | user1@oc.com | @@ -68,7 +68,7 @@ Feature: Guests @mailhog @issue-329 Scenario: User tries to create a guest user when a server email mode is not set - Given user "user1" has been created with default attributes + Given user "user1" has been created with default attributes and skeleton files And user "user1" has logged in using the webUI When the administrator deletes system config key "mail_smtpmode" using the occ command And the user shares file "testimage.jpg" with guest user with email "valid@email.com" using webUI @@ -93,7 +93,7 @@ Feature: Guests @mailhog @issue-329 Scenario: User tries to create a guest user when a server email is invalid - Given user "user1" has been created with default attributes + Given user "user1" has been created with default attributes and skeleton files And user "user1" has logged in using the webUI When the administrator adds system config key "mail_smtphost" with value "conkey" using the occ command And the user shares file "testimage.jpg" with guest user with email "valid@email.com" using webUI @@ -114,7 +114,7 @@ Feature: Guests @mailhog Scenario Outline: User creates a guest user with email that contains capital letters - Given user "user0" has been created with default attributes + Given user "user0" has been created with default attributes and skeleton files And user "user0" has logged in using the webUI When the user shares file "data.zip" with guest user with email "" using webUI And the user logs out of the webUI