mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 10:26:40 +02:00
MDL-63303 behat: Behat fixes
This commit is contained in:
parent
f42e85cc86
commit
705003beae
16 changed files with 28 additions and 28 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue