-
Notifications
You must be signed in to change notification settings - Fork 19
Expand file tree
/
Copy pathUserCreation.feature
More file actions
50 lines (47 loc) · 2.06 KB
/
Copy pathUserCreation.feature
File metadata and controls
50 lines (47 loc) · 2.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
@IbexaOSS @IbexaHeadless @IbexaExperience
Feature: User management
As an administrator
In order to manage users on my site
I want to create and edit users.
Background:
Given I am logged as admin
@javascript
Scenario: Create a new user
Given I'm on Content view Page for "Users"
When I start creating a new User
And I set content fields for user
| label | value |
| First name | testuser |
| Last name | lastname |
And I set content fields for user
| label | Username | Password | Confirm password | Email | Enabled |
| User account | testuser | Test1234pw | Test1234pw | test@test.com | Yes |
And I perform the "Save and close" action
Then I should be on Content view Page for "Users/testuser lastname"
And content attributes equal
| label | value |
| First name | testuser |
| Last name | lastname |
And content attributes equal
| label | Username | Email | Enabled |
| User account | testuser | test@test.com | Yes |
@javascript
Scenario: Editing an existing user
Given I'm on Content view Page for "Users/testuser lastname"
When I perform the "Edit" action
And I set content fields for user
| label | value |
| First name | testuseredited |
| Last name | lastnameedited |
And I set content fields for user
| label | Username | Password | Confirm password | Email | Enabled |
| User account | testuser | Test123456 | Test123456 | test@test.org | Yes |
And I perform the "Save and close" action
Then I should be on Content view Page for "Users/testuseredited lastnameedited"
And content attributes equal
| label | value |
| First name | testuseredited |
| Last name | lastnameedited |
And content attributes equal
| label | Username | Email | Enabled |
| User account | testuser | test@test.org | Yes |