AutorÃa | Ultima modificación | Ver Log |
@mod @mod_customcertFeature: Being able to manage pages in a certificate templateIn order to ensure managing pages in a certificate template works as expectedAs a teacherI need to manage pages in a certificate templateBackground:Given the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | 1 | teacher1@example.com |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher |And the following "activities" exist:| activity | name | intro | course | idnumber || customcert | Custom certificate 1 | Custom certificate 1 intro | C1 | customcert1 |And I log in as "teacher1"And I am on "Course 1" course homepageAnd I follow "Custom certificate 1"And I navigate to "Edit certificate" in current page administrationScenario: Adding a page to a certificate templateAnd I follow "Add page"And I should see "Page 1"And I should see "Page 2"Scenario: Deleting a page from a certificate templateAnd I add the element "Background image" to page "1" of the "Custom certificate 1" certificate templateAnd I press "Save changes"And I add the element "Student name" to page "1" of the "Custom certificate 1" certificate templateAnd I press "Save changes"And I follow "Add page"And I should see "Page 1"And I should see "Page 2"And I delete page "2" of the "Custom certificate 1" certificate templateAnd I should see "Background image" in the "elementstable" "table"And I should see "Student name" in the "elementstable" "table"And I should not see "Page 1"And I should not see "Page 2"