mirror of
https://github.com/moodle/moodle.git
synced 2025-04-07 17:33:18 +02:00
MDL-63303 behat: Behat fixes
This commit is contained in:
parent
c75559cfff
commit
5d0abf9df6
@ -20,7 +20,7 @@ Feature: Contact the privacy officer
|
||||
And I should see "Contact the privacy officer"
|
||||
And I click on "Contact the privacy officer" "link"
|
||||
And I set the field "Message" to "Hello DPO!"
|
||||
And I press "Send"
|
||||
And I click on "Send" "button" in the "Contact the privacy officer" "dialogue"
|
||||
And I should see "Your request has been submitted to the privacy officer"
|
||||
And I click on "Data requests" "link"
|
||||
And I should see "Hello DPO!" in the "General inquiry" "table_row"
|
||||
|
@ -12,7 +12,7 @@ Feature: Manage data categories
|
||||
And I press "Add category"
|
||||
And I set the field "Name" to "Category 1"
|
||||
And I set the field "Description" to "Category 1 description"
|
||||
When I press "Save"
|
||||
When I click on "Save" "button" in the "Delete category" "button"
|
||||
Then I should see "Category 1" in the "List of data categories" "table"
|
||||
And I should see "Category 1 description" in the "Category 1" "table_row"
|
||||
|
||||
@ -30,5 +30,5 @@ Feature: Manage data categories
|
||||
And I choose "Delete" in the open action menu
|
||||
And I should see "Delete category"
|
||||
And I should see "Are you sure you want to delete the category 'Category 1'?"
|
||||
When I press "Delete"
|
||||
When I click on "Delete" "button" in the "Confirm" "button"
|
||||
Then I should not see "Category 1" in the "List of data categories" "table"
|
||||
|
@ -21,14 +21,14 @@ Feature: Manage data requests
|
||||
And I should see "Contact the privacy officer"
|
||||
And I click on "Contact the privacy officer" "link"
|
||||
And I set the field "Message" to "Hi PO! Can others access my information on your site?"
|
||||
And I press "Send"
|
||||
And I click on "Send" "button" in the "Contact the privacy officer" "dialogue"
|
||||
And I should see "Your request has been submitted to the privacy officer"
|
||||
And I log out
|
||||
And I log in as "student2"
|
||||
And I follow "Profile" in the user menu
|
||||
And I click on "Contact the privacy officer" "link"
|
||||
And I set the field "Message" to "Dear Mr. Privacy Officer, I'd like to know more about GDPR. Thanks!"
|
||||
And I press "Send"
|
||||
And I click on "Send" "button" in the "Contact the privacy officer" "dialogue"
|
||||
And I should see "Your request has been submitted to the privacy officer"
|
||||
And I log out
|
||||
When I log in as "admin"
|
||||
|
@ -52,5 +52,5 @@ Feature: Manage data storage purposes
|
||||
And I choose "Delete" in the open action menu
|
||||
And I should see "Delete purpose"
|
||||
And I should see "Are you sure you want to delete the purpose 'Purpose 1'?"
|
||||
When I press "Delete"
|
||||
When I click on "Delete" "button" in the "Confirm" "dialogue"
|
||||
Then I should not see "Purpose 1" in the "List of data purposes" "table"
|
||||
|
@ -124,9 +124,9 @@ Feature: Manage plearning plan
|
||||
And "Confirm" "dialogue" should be visible
|
||||
And "Delete" "button" should exist in the "Confirm" "dialogue"
|
||||
And "Cancel" "button" should exist in the "Confirm" "dialogue"
|
||||
And I click on "Cancel" "button"
|
||||
And I click on "Cancel" "button" in the "Confirm" "dialogue"
|
||||
And I click on "Delete" of edit menu in the "Science plan Year-4" row
|
||||
And "Confirm" "dialogue" should be visible
|
||||
When I click on "Delete" "button"
|
||||
When I click on "Delete" "button" in the "Confirm" "dialogue"
|
||||
And I wait until the page is ready
|
||||
Then I should not see "Science plan Year-4"
|
||||
|
@ -52,9 +52,9 @@ Feature: Manage plearning plan templates
|
||||
And "Confirm" "dialogue" should be visible
|
||||
And "Delete" "button" should exist in the "Confirm" "dialogue"
|
||||
And "Cancel" "button" should exist in the "Confirm" "dialogue"
|
||||
And I click on "Cancel" "button"
|
||||
And I click on "Cancel" "button" in the "Confirm" "dialogue"
|
||||
And I click on "Delete" of edit menu in the "Science template Year-4" row
|
||||
And "Confirm" "dialogue" should be visible
|
||||
When I click on "Delete" "button"
|
||||
When I click on "Delete" "button" in the "Confirm" "dialogue"
|
||||
And I wait until the page is ready
|
||||
Then I should not see "Science template Year-4"
|
||||
|
@ -283,7 +283,7 @@ Feature: Viewing acceptances reports and accepting on behalf of other users
|
||||
And I press "Consent"
|
||||
And I should see "Accepting policy"
|
||||
And I should see "One"
|
||||
And I press "Cancel"
|
||||
And I click on "Cancel" "button" in the "Accepting policy" "dialogue"
|
||||
And I should not see "Accepting policy"
|
||||
And I click on "Select" "checkbox" in the "User Two" "table_row"
|
||||
And I press "Consent"
|
||||
|
@ -95,7 +95,7 @@ Feature: Basic recycle bin functionality
|
||||
And I navigate to "Recycle bin" in current page administration
|
||||
When I click on "Delete" "link"
|
||||
Then I should see "Are you sure you want to delete the selected item from the recycle bin?"
|
||||
And I press "Cancel"
|
||||
And I click on "Cancel" "button" in the "Confirmation" "dialogue"
|
||||
And I should see "Test assign"
|
||||
And I click on "Delete" "link"
|
||||
And I press "Yes"
|
||||
@ -120,7 +120,7 @@ Feature: Basic recycle bin functionality
|
||||
And I should see "Test assign 2"
|
||||
When I click on "Delete all" "link"
|
||||
Then I should see "Are you sure you want to delete all items from the recycle bin?"
|
||||
And I press "Cancel"
|
||||
And I click on "Cancel" "button" in the "Add restriction..." "dialogue"
|
||||
And I should see "Test assign 1"
|
||||
And I should see "Test assign 2"
|
||||
And I click on "Delete all" "link"
|
||||
|
@ -44,7 +44,7 @@ Feature: availability_group
|
||||
Then "Group" "button" should exist in the "Add restriction..." "dialogue"
|
||||
|
||||
# Page P1 any group.
|
||||
Given I click on "Group" "button"
|
||||
Given I click on "Group" "button" in the "Add restriction..." "dialogue"
|
||||
And I set the field "Group" to "(Any group)"
|
||||
And I click on ".availability-item .availability-eye img" "css_element"
|
||||
And I set the following fields to these values:
|
||||
@ -61,7 +61,7 @@ Feature: availability_group
|
||||
| Page content | x |
|
||||
And I expand all fieldsets
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "Group" "button"
|
||||
And I click on "Group" "button" in the "Add restriction..." "dialogue"
|
||||
And I set the field "Group" to "G1"
|
||||
And I click on ".availability-item .availability-eye img" "css_element"
|
||||
And I click on "Save and return to course" "button"
|
||||
@ -74,7 +74,7 @@ Feature: availability_group
|
||||
| Page content | x |
|
||||
And I expand all fieldsets
|
||||
And I click on "Add restriction..." "button"
|
||||
And I click on "Group" "button"
|
||||
And I click on "Group" "button" in the "Add restriction..." "dialogue"
|
||||
And I set the field "Group" to "G2"
|
||||
And I click on ".availability-item .availability-eye img" "css_element"
|
||||
And I click on "Save and return to course" "button"
|
||||
|
@ -106,7 +106,7 @@ Feature: Perform basic calendar functionality
|
||||
And I am on "Course 1" course homepage
|
||||
When I follow "This month"
|
||||
And I click on "Really awesome event!" "link"
|
||||
And I click on "Delete" "button"
|
||||
And I click on "Delete" "button" in the "Really awesome event!" "dialogue"
|
||||
And I click on "Delete event" "button"
|
||||
And I wait to be redirected
|
||||
Then I should not see "Really awesome event!"
|
||||
@ -146,8 +146,8 @@ Feature: Perform basic calendar functionality
|
||||
Then I should see "Test choice opens"
|
||||
And I should see "Test choice closes"
|
||||
When I click on "Test choice opens" "link"
|
||||
Then "Delete" "button" should not exist
|
||||
And "Edit" "button" should not exist
|
||||
Then "Delete" "button" should not exist in the "Test choice opens" "dialogue"
|
||||
And "Edit" "button" should not exist in the "Test choice opens" "dialogue"
|
||||
And I should see "Course event"
|
||||
When I click on "Go to activity" "link"
|
||||
And I wait to be redirected
|
||||
@ -155,8 +155,8 @@ Feature: Perform basic calendar functionality
|
||||
And I am on "Course 1" course homepage
|
||||
And I follow "This month"
|
||||
When I click on "Test choice closes" "link"
|
||||
Then "Delete" "button" should not exist
|
||||
And "Edit" "button" should not exist
|
||||
Then "Delete" "button" should not exist in the "Test choice closes" "dialogue"
|
||||
And "Edit" "button" should not exist in the "Test choice closes" "dialogue"
|
||||
And I should see "Course event"
|
||||
When I click on "Go to activity" "link"
|
||||
And I wait to be redirected
|
||||
|
@ -130,7 +130,7 @@ Feature: Edit quiz page - adding things
|
||||
# Create the Essay 01 question.
|
||||
When I press "Create a new question ..."
|
||||
And I set the field "item_qtype_essay" to "1"
|
||||
And I press "Add"
|
||||
And I click on "Add" "button" in the "Choose a question type to add" "dialogue"
|
||||
Then I should see "Adding an Essay question"
|
||||
And I set the field "Question name" to "Essay 01"
|
||||
And I set the field "Question text" to "Please write 100 words about Essay 01"
|
||||
|
@ -25,8 +25,8 @@ Feature: The questions can be tagged
|
||||
And I navigate to "Question bank > Questions" in current page administration
|
||||
And I press "Create a new question ..."
|
||||
And I set the field "item_qtype_truefalse" to "1"
|
||||
And I press "Add"
|
||||
And I click on "Add" "button" in the "Confirm" "dialogue"
|
||||
And I expand all fieldsets
|
||||
And I open the autocomplete suggestions list
|
||||
Then "foo" "autocomplete_suggestions" should exist
|
||||
And "bar" "autocomplete_suggestions" should exist
|
||||
And "bar" "autocomplete_suggestions" should exist
|
||||
|
@ -22,7 +22,7 @@ Feature: Test creating a drag and drop onto image question
|
||||
Scenario: Create a drag and drop onto image question
|
||||
When I press "Create a new question ..."
|
||||
And I set the field "Drag and drop onto image" to "1"
|
||||
And I press "Add"
|
||||
And I click on "Add" "button" in the "Choose a new question type to add" "dialogue"
|
||||
And I set the field "Question name" to "Drag and drop onto image 001"
|
||||
And I set the field "Question text" to "Identify the features in this cross-section."
|
||||
And I set the field "General feedback" to "The locations are now labelled on the diagram below."
|
||||
|
@ -22,7 +22,7 @@ Feature: Test creating a drag and drop markers question
|
||||
Scenario: Create a drag and drop markers question
|
||||
When I press "Create a new question ..."
|
||||
And I set the field "Drag and drop markers" to "1"
|
||||
And I press "Add"
|
||||
And I click on "Add" "button" in the "Confirm" "dialogue"
|
||||
And I set the field "Question name" to "Drag and drop markers"
|
||||
And I set the field "Question text" to "Please place the markers on the map of Milton Keynes and be aware that there is more than one railway station."
|
||||
And I set the field "General feedback" to "The Open University is at the junction of Brickhill Street and Groveway. There are three railway stations, Wolverton, Milton Keynes Central and Bletchley."
|
||||
|
@ -177,7 +177,7 @@ Feature: Users can edit tags to add description or rename
|
||||
And I set the field "New name for tag Turtle" to "DOG"
|
||||
And I press key "13" in the field "New name for tag Turtle"
|
||||
And I should see "The tag name is already in use. Do you want to combine these tags?"
|
||||
And I press "Cancel"
|
||||
And I click on "Cancel" "button in the "Confirm" "dialogue"
|
||||
And "New name for tag" "field" should not exist
|
||||
And I should see "Turtle"
|
||||
And I should see "Dog"
|
||||
|
@ -58,7 +58,7 @@ Feature: Edit user enrolment
|
||||
And I should see "Student 1" in the "Full name" "table_row"
|
||||
And I should see "Active" in the "//td[@class='user-enrol-status']" "xpath_element"
|
||||
And I should see "Manual enrolments" in the "Enrolment method" "table_row"
|
||||
And I press "Cancel"
|
||||
And I click on "Cancel" "button" in the "Enrolment details" "dialogue"
|
||||
And I click on "Manual enrolments" "icon" in the "student2" "table_row"
|
||||
And I should see "Enrolment details"
|
||||
And I should see "Student 2" in the "Full name" "table_row"
|
||||
|
Loading…
x
Reference in New Issue
Block a user