forked from moodle/moodle
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MDL-76542 behat: add step to go to user edit page directly
- Loading branch information
Showing
11 changed files
with
68 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -125,12 +125,10 @@ Feature: Upload users | |
And I should see "Users created: 4" | ||
And I press "Continue" | ||
# Boost check. | ||
And I navigate to "Users > Accounts > Browse list of users" in site administration | ||
And I click on ".icon[title=Edit]" "css_element" in the "[email protected]" "table_row" | ||
And I am on the "[email protected]" "user > editing" page | ||
And I should see "Boost" | ||
# Classic check. | ||
And I navigate to "Users > Accounts > Browse list of users" in site administration | ||
And I click on ".icon[title=Edit]" "css_element" in the "[email protected]" "table_row" | ||
And I am on the "[email protected]" "user > editing" page | ||
And I should see "Classic" | ||
|
||
@javascript | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -65,11 +65,8 @@ Feature: availability_profile | |
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 | ||
And I click on ".icon[title=Edit]" "css_element" in the "[email protected]" "table_row" | ||
And I am on the "[email protected]" "user > editing" page logged in as "admin" | ||
And I expand all fieldsets | ||
And I set the field "Super field" to "Bananaman" | ||
And I click on "Update profile" "button" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,9 +19,7 @@ Feature: Custom profile fields should be visible and editable by those with the | |
| text | uservisible_field | uservisible_field | 1 | 1 | | ||
| text | everyonevisible_field | everyonevisible_field | 0 | 2 | | ||
| text | teachervisible_field | teachervisible_field | 1 | 3 | | ||
And I log in as "admin" | ||
And I navigate to "Users > Accounts > Browse list of users" in site administration | ||
And I click on ".icon[title=Edit]" "css_element" in the "[email protected]" "table_row" | ||
And I am on the "userwithinformation" "user > editing" page logged in as "admin" | ||
And I set the following fields to these values: | ||
| notvisible_field | notvisible_field_information | | ||
| uservisible_field | uservisible_field_information | | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,9 +14,7 @@ Feature: The purpose of each input field collecting information about the user c | |
|
||
@javascript | ||
Scenario: Fields for other users are not auto filled | ||
When I log in as "admin" | ||
And I navigate to "Users > Accounts > Browse list of users" in site administration | ||
And I click on ".icon[title=Edit]" "css_element" in the "[email protected]" "table_row" | ||
When I am on the "[email protected]" "user > editing" page logged in as "admin" | ||
And I expand all fieldsets | ||
Then the field "Username" should not have purpose "username" | ||
And the field "First name" should not have purpose "given-name" | ||
|
@@ -29,9 +27,8 @@ Feature: The purpose of each input field collecting information about the user c | |
|
||
@javascript | ||
Scenario: My own user fields are auto filled | ||
When I log in as "unicorn" | ||
And I follow "Profile" in the user menu | ||
And I click on "Edit profile" "link" in the "region-main" "region" | ||
Given I log in as "unicorn" | ||
When I open my profile in edit mode | ||
And I expand all fieldsets | ||
Then the field "First name" should have purpose "given-name" | ||
And the field "Last name" should have purpose "family-name" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters