Skip to content

Commit

Permalink
MDL-75788 behat: Use profile field generators in existing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dpalou authored and lameze committed Dec 2, 2022
1 parent 3923ef9 commit 6ab826f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 17 deletions.
12 changes: 4 additions & 8 deletions admin/tool/uploaduser/tests/behat/upload_users.feature
Expand Up @@ -66,14 +66,10 @@ Feature: Upload users
@javascript
Scenario: Upload users with custom profile fields
# Create user profile field.
Given I log in as "admin"
And I navigate to "Users > Accounts > User profile fields" in site administration
And I click on "Create a new profile field" "link"
And I click on "Text area" "link"
And I set the following fields to these values:
| Short name | superfield |
| Name | Super field |
And I click on "Save changes" "button"
Given the following "custom profile fields" exist:
| datatype | shortname | name |
| text | superfield | Super field |
And I log in as "admin"
# Upload users.
When I navigate to "Users > Accounts > Upload users" in site administration
And I upload "lib/tests/fixtures/upload_users_profile.csv" file to "File" filemanager
Expand Down
Expand Up @@ -62,15 +62,10 @@ Feature: availability_profile

@javascript
Scenario: Test with custom user profile field
# Add custom field.
Given I log in as "admin"
And I navigate to "Users > Accounts > User profile fields" in site administration
And I click on "Create a new profile field" "link"
And I click on "Text input" "link"
And I set the following fields to these values:
| Short name | superfield |
| Name | Super field |
And I click on "Save changes" "button"
Given the following "custom profile fields" exist:
| datatype | shortname | name |
| text | superfield | Super field |
And I log in as "admin"

# Set field value for user.
And I navigate to "Users > Accounts > Browse list of users" in site administration
Expand Down

0 comments on commit 6ab826f

Please sign in to comment.