AutorÃa | Ultima modificación | Ver Log |
@mod @mod_customcertFeature: Being able to view the certificates you have been issuedIn order to ensure that a user can view the certificates they have been issuedAs a studentI need to view the certificates I have been issuedBackground:Given the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 || Course 2 | C2 | 0 |And the following "users" exist:| username | firstname | lastname | email || student1 | Student | 1 | student1@example.com || student2 | Student | 2 | student2@example.com |And the following "course enrolments" exist:| user | course | role || student1 | C1 | student || student2 | C1 | student || student1 | C2 | student |And the following "activities" exist:| activity | name | intro | course | idnumber || customcert | Custom certificate 1 | Custom certificate 1 intro | C1 | customcert1 || customcert | Custom certificate 2 | Custom certificate 2 intro | C2 | customcert2 |Scenario: View your issued certificates on the my certificates pageAnd I log in as "student1"And I am on "Course 1" course homepageAnd I follow "Custom certificate 1"And I press "View certificate"And I follow "Profile" in the user menuAnd I follow "My certificates"And I should see "Custom certificate 1"And I should not see "Custom certificate 2"And I am on "Course 2" course homepageAnd I follow "Custom certificate 2"And I press "View certificate"And I follow "Profile" in the user menuAnd I follow "My certificates"And I should see "Custom certificate 1"And I should see "Custom certificate 2"Scenario: User does not see link for another user's certificatesAnd I log in as "student1"And I am on "Course 1" course homepageAnd I follow "Custom certificate 1"And I press "View certificate"And I log in as "student2"And I am on "Course 1" course homepageAnd I follow "Participants"And I follow "Student 1"And I should not see "My certificates"