Skip to content

Commit

Permalink
MDL-63730 lang: Update Behat scenarios to use the new strings
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Oct 26, 2018
1 parent 0c19b2c commit f5d98e6
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion admin/tool/behat/tests/behat/list_steps.feature
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ Feature: List the system steps definitions

@javascript
Scenario: Accessing the list
Then I should see "Steps definitions"
Then I should see "Step definitions"
And I should not see "There aren't steps definitions matching this filter"

@javascript
Expand Down
4 changes: 2 additions & 2 deletions admin/tool/dataprivacy/tests/behat/datadelete.feature
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Feature: Data delete from the privacy API
And I log in as "admin"
And I navigate to "Users > Privacy and policies > Data requests" in site administration
And I follow "New request"
And I set the field "Requesting for" to "Victim User 1"
And I set the field "User" to "Victim User 1"
And I set the field "Type" to "Delete all of my personal data"
And I press "Save changes"
Then I should see "Victim User 1"
Expand Down Expand Up @@ -93,7 +93,7 @@ Feature: Data delete from the privacy API
And I follow "Profile" in the user menu
And I follow "Data requests"
And I follow "New request"
And I set the field "Requesting for" to "Victim User 1"
And I set the field "User" to "Victim User 1"
And I set the field "Type" to "Delete all of my personal data"
And I press "Save changes"
Then I should see "Victim User 1"
Expand Down
4 changes: 2 additions & 2 deletions admin/tool/dataprivacy/tests/behat/dataexport.feature
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ Feature: Data export from the privacy API
Given I log in as "admin"
And I navigate to "Users > Privacy and policies > Data requests" in site administration
And I follow "New request"
And I set the field "Requesting for" to "Victim User 1"
And I set the field "User" to "Victim User 1"
And I press "Save changes"
Then I should see "Victim User 1"
And I should see "Pending" in the "Victim User 1" "table_row"
Expand Down Expand Up @@ -96,7 +96,7 @@ Feature: Data export from the privacy API
And I follow "Profile" in the user menu
And I follow "Data requests"
And I follow "New request"
And I set the field "Requesting for" to "Victim User 1"
And I set the field "User" to "Victim User 1"
And I press "Save changes"
Then I should see "Victim User 1"
And I should see "Pending" in the "Victim User 1" "table_row"
Expand Down
8 changes: 4 additions & 4 deletions auth/tests/behat/verifyageofconsent.feature
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,11 @@ Feature: Test the 'Digital age of consent verification' feature works.
When I set the field "What is your age?" to "12"
And I set the field "In which country do you live?" to "AT"
And I press "Proceed"
Then I should see "You are considered to be a digital minor."
And I should see "To create an account on this site please have your parent/guardian contact the following person."
Then I should see "You are too young to create an account on this site."
And I should see "Please ask your parent/guardian to contact:"
# Try to access the sign up page again.
When I click on "Back to the site home" "link"
And I click on "Log in" "link" in the ".logininfo" "css_element"
And I press "Create new account"
Then I should see "You are considered to be a digital minor."
And I should see "To create an account on this site please have your parent/guardian contact the following person."
Then I should see "You are too young to create an account on this site."
And I should see "Please ask your parent/guardian to contact:"
36 changes: 18 additions & 18 deletions mod/quiz/report/statistics/tests/behat/basic.feature
Original file line number Diff line number Diff line change
Expand Up @@ -68,29 +68,29 @@ Feature: Basic use of the Statistics report
# Question A statistics breakdown.
And "1" row "Question name" column of "questionstatistics" table should contain "Question A"
And "1" row "Attempts" column of "questionstatistics" table should contain "3"
And "1" row "Facility index" column of "questionstatistics" table should contain "66.67 %"
And "1" row "Standard deviation" column of "questionstatistics" table should contain "57.74 %"
And "1" row "Random guess score" column of "questionstatistics" table should contain "50.00 %"
And "1" row "Intended weight" column of "questionstatistics" table should contain "33.33 %"
And "1" row "Effective weight" column of "questionstatistics" table should contain "30.90 %"
And "1" row "Discrimination index" column of "questionstatistics" table should contain "50.00 %"
And "1" row "Facility index" column of "questionstatistics" table should contain "66.67%"
And "1" row "Standard deviation" column of "questionstatistics" table should contain "57.74%"
And "1" row "Random guess score" column of "questionstatistics" table should contain "50.00%"
And "1" row "Intended weight" column of "questionstatistics" table should contain "33.33%"
And "1" row "Effective weight" column of "questionstatistics" table should contain "30.90%"
And "1" row "Discrimination index" column of "questionstatistics" table should contain "50.00%"

# Question B statistics breakdown.
And "2" row "Question name" column of "questionstatistics" table should contain "Question B"
And "2" row "Attempts" column of "questionstatistics" table should contain "3"
And "2" row "Facility index" column of "questionstatistics" table should contain "33.33 %"
And "2" row "Standard deviation" column of "questionstatistics" table should contain "57.74 %"
And "2" row "Random guess score" column of "questionstatistics" table should contain "50.00 %"
And "2" row "Intended weight" column of "questionstatistics" table should contain "33.33 %"
And "2" row "Effective weight" column of "questionstatistics" table should contain "34.55 %"
And "2" row "Discrimination index" column of "questionstatistics" table should contain "86.60 %"
And "2" row "Facility index" column of "questionstatistics" table should contain "33.33%"
And "2" row "Standard deviation" column of "questionstatistics" table should contain "57.74%"
And "2" row "Random guess score" column of "questionstatistics" table should contain "50.00%"
And "2" row "Intended weight" column of "questionstatistics" table should contain "33.33%"
And "2" row "Effective weight" column of "questionstatistics" table should contain "34.55%"
And "2" row "Discrimination index" column of "questionstatistics" table should contain "86.60%"

# Question C statistics breakdown.
And "3" row "Question name" column of "questionstatistics" table should contain "Question C"
And "3" row "Attempts" column of "questionstatistics" table should contain "3"
And "3" row "Facility index" column of "questionstatistics" table should contain "33.33 %"
And "3" row "Standard deviation" column of "questionstatistics" table should contain "57.74 %"
And "3" row "Random guess score" column of "questionstatistics" table should contain "50.00 %"
And "3" row "Intended weight" column of "questionstatistics" table should contain "33.33 %"
And "3" row "Effective weight" column of "questionstatistics" table should contain "34.55 %"
And "3" row "Discrimination index" column of "questionstatistics" table should contain "86.60 %"
And "3" row "Facility index" column of "questionstatistics" table should contain "33.33%"
And "3" row "Standard deviation" column of "questionstatistics" table should contain "57.74%"
And "3" row "Random guess score" column of "questionstatistics" table should contain "50.00%"
And "3" row "Intended weight" column of "questionstatistics" table should contain "33.33%"
And "3" row "Effective weight" column of "questionstatistics" table should contain "34.55%"
And "3" row "Discrimination index" column of "questionstatistics" table should contain "86.60%"

0 comments on commit f5d98e6

Please sign in to comment.