mirror of
https://github.com/moodle/moodle.git
synced 2025-04-21 08:22:07 +02:00
MDL-76739 behat: Replace occurrences of "surname" in Behat tests
Replace occurrences of "surname" in Behat tests with "last name"
This commit is contained in:
parent
acd82d3a86
commit
f06b222aa8
@ -21,7 +21,7 @@ Feature: View work shop activity submissions report.
|
||||
| activity | name | intro | course |
|
||||
| workshop | Music history | Test workshop description | C1 |
|
||||
|
||||
Scenario Outline: Filter submissions report by surname/first name
|
||||
Scenario Outline: Filter submissions report by last name/first name
|
||||
Given I am on the "Music history" "workshop activity" page logged in as teacher1
|
||||
When I change phase in workshop "Music history" to "<phase>"
|
||||
Then ".firstinitial" "css_element" should exist
|
||||
@ -38,7 +38,7 @@ Feature: View work shop activity submissions report.
|
||||
| Grading evaluation phase |
|
||||
| Closed |
|
||||
|
||||
Scenario: Filter submissions report by surname/first name is hidden in the Setup phase.
|
||||
Scenario: Filter submissions report by last name/first name is hidden in the Setup phase.
|
||||
When I am on the "Music history" "workshop activity" page logged in as teacher1
|
||||
Then ".firstinitial" "css_element" should not exist
|
||||
And ".lastinitial" "css_element" should not exist
|
||||
@ -52,7 +52,7 @@ Feature: View work shop activity submissions report.
|
||||
And I should see "Beth Velvet" in the "grading-report" "table"
|
||||
And I should not see "Vinnie Money" in the "grading-report" "table"
|
||||
|
||||
Scenario: Filter submissions report by surname name as a teacher.
|
||||
Scenario: Filter submissions report by last name name as a teacher.
|
||||
Given I am on the "Music history" "workshop activity" page logged in as teacher1
|
||||
And I change phase in workshop "Music history" to "Submission phase"
|
||||
When I click on "V" "link" in the ".lastinitial" "css_element"
|
||||
@ -60,7 +60,7 @@ Feature: View work shop activity submissions report.
|
||||
And I should not see "Beth Moe" in the "grading-report" "table"
|
||||
And I should not see "Vinnie Money" in the "grading-report" "table"
|
||||
|
||||
Scenario: Filter submissions report by first name and surname as a teacher.
|
||||
Scenario: Filter submissions report by first name and last name as a teacher.
|
||||
Given I am on the "Music history" "workshop activity" page logged in as teacher1
|
||||
And I change phase in workshop "Music history" to "Submission phase"
|
||||
When I click on "V" "link" in the ".firstinitial" "css_element"
|
||||
|
@ -36,7 +36,7 @@ Feature: Select users when searching for user-created content
|
||||
And I search for "frogs" using the header global search box
|
||||
And I expand all fieldsets
|
||||
When I expand the "Users" autocomplete
|
||||
# Alphabetical surname order.
|
||||
# Alphabetical last name order.
|
||||
Then "Anne Additional" "text" should appear before "Anne Ditin" "text" in the "Users" "autocomplete"
|
||||
And "Anne Ditin" "text" should appear before "Anne Other" "text" in the "Users" "autocomplete"
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
@core @core_user
|
||||
Feature: Both first name and surname are always available for every user
|
||||
Feature: Both first name and last name are always available for every user
|
||||
In order to easily identify and display users on Moodle pages
|
||||
As any user
|
||||
I need to rely on both first name and surname are always available
|
||||
I need to rely on both first name and last name are always available
|
||||
|
||||
Scenario: Attempting to self-register as a new user with empty names
|
||||
Given the following config values are set as admin:
|
||||
@ -20,7 +20,7 @@ Feature: Both first name and surname are always available for every user
|
||||
And I set the field "Last name" to " "
|
||||
And I press "Create my new account"
|
||||
Then I should see "Missing given name"
|
||||
And I should see "Missing surname"
|
||||
And I should see "Missing last name"
|
||||
|
||||
Scenario: Attempting to change own names to whitespace
|
||||
Given the following "users" exist:
|
||||
@ -44,7 +44,7 @@ Feature: Both first name and surname are always available for every user
|
||||
And I set the field "Last name" to " "
|
||||
And I click on "Update profile" "button"
|
||||
Then I should see "Missing given name"
|
||||
And I should see "Missing surname"
|
||||
And I should see "Missing last name"
|
||||
|
||||
Scenario: Attempting to change someone else's names to whitespace
|
||||
Given the following "users" exist:
|
||||
@ -65,4 +65,4 @@ Feature: Both first name and surname are always available for every user
|
||||
And I set the field "Last name" to " "
|
||||
And I click on "Update profile" "button"
|
||||
Then I should see "Missing given name"
|
||||
And I should see "Missing surname"
|
||||
And I should see "Missing last name"
|
||||
|
Loading…
x
Reference in New Issue
Block a user