Ir a la última revisión | Autoría | Comparar con el anterior | Ultima modificación | Ver Log |
@core @core_courseFeature: Delete activity and resource works correctlyAs a teacherI want to be able to delete an activity and resourceSo that I can remove it from the courseBackground:Given the following "users" exist:| username | firstname | lastname | email || teacher1 | Teacher | 1 | teacher1@example.com |And the following "courses" exist:| fullname | shortname | category || Course 1 | C1 | 0 |And the following "course enrolments" exist:| user | course | role || teacher1 | C1 | editingteacher |And the following "activities" exist:| activity | course | name | intro || label | C1 | Label 1 | Label 1 || glossary | C1 | Glossary 1 | Glossary 1 |@javascriptScenario: Activity and resource can be deleted properlyGiven I am on the "Course 1" course page logged in as teacher1And I turn editing mode onAnd I open "Label 1" actions menuWhen I click on "Delete" "link" in the "Label 1" activityAnd I click on "Delete" "button" in the "Delete activity?" "dialogue"# Confirm that label is successfully deletedThen I should not see "Label 1"And I open "Glossary 1" actions menuAnd I click on "Delete" "link" in the "Glossary 1" activityAnd I click on "Delete" "button" in the "Delete activity?" "dialogue"# Confirm that glossary is successfully deleted.And I should not see "Glossary 1"# Reload the page and confirm that both the label and glossary are really deletedAnd I reload the pageAnd I should not see "Label 1"And I should not see "Glossary 1"