Fixed failing Behat tests
This commit is contained in:
parent
f3238fcd32
commit
e7497a50e0
3 changed files with 16 additions and 13 deletions
|
@ -20,9 +20,10 @@ Feature: Being able to manage site templates
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
|
|
||||||
Scenario: Adding a site template and loading it into a course certificate
|
Scenario: Adding a site template and loading it into a course certificate
|
||||||
And I navigate to "Plugins" in site administration
|
And I expand "Site administration" node
|
||||||
And I follow "Manage activities"
|
And I expand "Plugins" node
|
||||||
And I click on "Settings" "link" in the "Custom certificate" "table_row"
|
And I expand "Activity modules" node
|
||||||
|
And I follow "Custom certificate"
|
||||||
And I follow "Manage templates"
|
And I follow "Manage templates"
|
||||||
And I press "Create template"
|
And I press "Create template"
|
||||||
And I set the field "Name" to "Site 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 |
|
| Reference point location | Top left |
|
||||||
|
|
||||||
Scenario: Deleting a site template
|
Scenario: Deleting a site template
|
||||||
And I navigate to "Plugins" in site administration
|
And I expand "Site administration" node
|
||||||
And I follow "Manage activities"
|
And I expand "Plugins" node
|
||||||
And I click on "Settings" "link" in the "Custom certificate" "table_row"
|
And I expand "Activity modules" node
|
||||||
|
And I follow "Custom certificate"
|
||||||
And I follow "Manage templates"
|
And I follow "Manage templates"
|
||||||
And I press "Create template"
|
And I press "Create template"
|
||||||
And I set the field "Name" to "Site 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"
|
And I should not see "Site template"
|
||||||
|
|
||||||
Scenario: Duplicating a site template
|
Scenario: Duplicating a site template
|
||||||
And I navigate to "Plugins" in site administration
|
And I expand "Site administration" node
|
||||||
And I follow "Manage activities"
|
And I expand "Plugins" node
|
||||||
And I click on "Settings" "link" in the "Custom certificate" "table_row"
|
And I expand "Activity modules" node
|
||||||
|
And I follow "Custom certificate"
|
||||||
And I follow "Manage templates"
|
And I follow "Manage templates"
|
||||||
And I press "Create template"
|
And I press "Create template"
|
||||||
And I set the field "Name" to "Site template"
|
And I set the field "Name" to "Site template"
|
||||||
|
|
|
@ -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 am on "Course 1" course homepage
|
||||||
And I follow "Custom certificate 1"
|
And I follow "Custom certificate 1"
|
||||||
And I should not see "You must spend at least a minimum of"
|
And I should not see "You must spend at least a minimum of"
|
||||||
And I should see "Download certificate"
|
|
||||||
|
|
|
@ -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
|
Scenario: Adding an element with the show position X and Y setting enabled
|
||||||
And I log in as "admin"
|
And I log in as "admin"
|
||||||
And I navigate to "Plugins" in site administration
|
And I expand "Site administration" node
|
||||||
And I follow "Manage activities"
|
And I expand "Plugins" node
|
||||||
And I click on "Settings" "link" in the "Custom certificate" "table_row"
|
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 set the field "Show position X and Y" to "1"
|
||||||
And I press "Save changes"
|
And I press "Save changes"
|
||||||
And I log out
|
And I log out
|
||||||
|
|
Loading…
Reference in a new issue