Fixed failing Behat tests

This commit is contained in:
Mark Nelson 2017-12-11 16:36:39 +08:00
parent f3238fcd32
commit e7497a50e0
3 changed files with 16 additions and 13 deletions

View file

@ -20,9 +20,10 @@ Feature: Being able to manage site templates
And I log in as "admin"
Scenario: Adding a site template and loading it into a course certificate
And I navigate to "Plugins" in site administration
And I follow "Manage activities"
And I click on "Settings" "link" in the "Custom certificate" "table_row"
And I expand "Site administration" node
And I expand "Plugins" node
And I expand "Activity modules" node
And I follow "Custom certificate"
And I follow "Manage templates"
And I press "Create template"
And I set the field "Name" to "Site template"
@ -68,9 +69,10 @@ Feature: Being able to manage site templates
| Reference point location | Top left |
Scenario: Deleting a site template
And I navigate to "Plugins" in site administration
And I follow "Manage activities"
And I click on "Settings" "link" in the "Custom certificate" "table_row"
And I expand "Site administration" node
And I expand "Plugins" node
And I expand "Activity modules" node
And I follow "Custom certificate"
And I follow "Manage templates"
And I press "Create template"
And I set the field "Name" to "Site template"
@ -84,9 +86,10 @@ Feature: Being able to manage site templates
And I should not see "Site template"
Scenario: Duplicating a site template
And I navigate to "Plugins" in site administration
And I follow "Manage activities"
And I click on "Settings" "link" in the "Custom certificate" "table_row"
And I expand "Site administration" node
And I expand "Plugins" node
And I expand "Activity modules" node
And I follow "Custom certificate"
And I follow "Manage templates"
And I press "Create template"
And I set the field "Name" to "Site template"

View file

@ -36,4 +36,3 @@ Feature: Being able to set the required minutes in a course before viewing the c
And I am on "Course 1" course homepage
And I follow "Custom certificate 1"
And I should not see "You must spend at least a minimum of"
And I should see "Download certificate"

View file

@ -29,9 +29,10 @@ Feature: Being able to set a site setting to determine whether or not to display
Scenario: Adding an element with the show position X and Y setting enabled
And I log in as "admin"
And I navigate to "Plugins" in site administration
And I follow "Manage activities"
And I click on "Settings" "link" in the "Custom certificate" "table_row"
And I expand "Site administration" node
And I expand "Plugins" node
And I expand "Activity modules" node
And I follow "Custom certificate"
And I set the field "Show position X and Y" to "1"
And I press "Save changes"
And I log out