AutorÃa | Ultima modificación | Ver Log |
@core @core_tagFeature: Manager is able to delete tagsIn order to use tagsAs a managerI need to be able to delete themBackground:Given the following "users" exist:| username | firstname | lastname | email | interests || manager1 | Manager | 1 | manager1@example.com | || user1 | User | 1 | user1@example.com | Cat,Dog,Turtle |And the following "system role assigns" exist:| user | course | role || manager1 | Acceptance test site | manager |And the following "tags" exist:| name | isstandard || Neverusedtag | 1 |Scenario: Deleting a tag with javascript disabledWhen I log in as "manager1"And I navigate to "Appearance > Manage tags" in site administrationAnd I follow "Default collection"And I click on "Delete" "link" in the "Dog" "table_row"And I should see "Tag(s) deleted"Then I should not see "Dog"And I follow "Cat"And I follow "User 1"And I should see "Cat"And I should not see "Dog"And I log out@javascriptScenario: Deleting a tag with javascript enabledWhen I log in as "manager1"And I navigate to "Appearance > Manage tags" in site administrationAnd I follow "Default collection"And I press "Delete" action in the "Turtle" report rowThen I should see "Are you sure you want to delete this tag?"And I click on "Cancel" "button" in the "Delete" "dialogue"And I should not see "Tag(s) deleted"And I should see "Turtle"And I press "Delete" action in the "Dog" report rowAnd I should see "Are you sure you want to delete this tag?"And I press "Yes"And I should see "Tag(s) deleted"And I should not see "Dog"And I navigate to "Appearance > Manage tags" in site administrationAnd I follow "Default collection"And I should not see "Dog"And I follow "Cat"And I follow "User 1"And I should see "Cat"And I should not see "Dog"And I log out@javascriptScenario: Deleting multiple tags with javascript enabledWhen I log in as "manager1"And I navigate to "Appearance > Manage tags" in site administrationAnd I follow "Default collection"And I press "Delete selected"And I should not see "Are you sure"And I should not see "Tag(s) deleted"And I set the following fields to these values:| Select tag Cat | 1 |And I press "Delete selected"And I should see "Are you sure you want to delete selected tags?"And I click on "Cancel" "button" in the "Delete" "dialogue"And I should not see "Tag(s) deleted"And I should see "Cat"And I set the following fields to these values:| Select tag Cat | 0 || Select tag Dog | 1 || Select tag Neverusedtag | 1 |And I press "Delete selected"And I should see "Are you sure you want to delete selected tags?"And I press "Yes"And I should see "Tag(s) deleted"And I should not see "Dog"And I should not see "Neverusedtag"And I navigate to "Appearance > Manage tags" in site administrationAnd I follow "Default collection"And I should not see "Dog"And I should not see "Neverusedtag"And I follow "Cat"And I follow "User 1"And I should see "Cat"And I should not see "Dog"And I log out@javascriptScenario: Delete all tagsWhen I log in as "manager1"And I navigate to "Appearance > Manage tags" in site administrationAnd I follow "Default collection"And I set the field "Select all" to "1"And I press "Delete selected"And I click on "Yes" "button" in the "Delete" "dialogue"Then I should see "Tag(s) deleted"And I should see "Nothing to display"And I should not see "Cat"And I should not see "Dog"And I should not see "Turtle"And I should not see "Neverusedtag"