[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_tag 2 Feature: Manager is able to delete tags 3 In order to use tags 4 As a manager 5 I need to be able to delete them 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | interests | 10 | manager1 | Manager | 1 | manager1@example.com | | 11 | user1 | User | 1 | user1@example.com | Cat,Dog,Turtle | 12 And the following "system role assigns" exist: 13 | user | course | role | 14 | manager1 | Acceptance test site | manager | 15 And the following "tags" exist: 16 | name | isstandard | 17 | Neverusedtag | 1 | 18 19 Scenario: Deleting a tag with javascript disabled 20 When I log in as "manager1" 21 And I navigate to "Manage tags" node in "Site administration > Appearance" 22 And I follow "Default collection" 23 And I click on "Delete" "link" in the "Dog" "table_row" 24 And I should see "Tag(s) deleted" 25 Then I should not see "Dog" 26 And I navigate to "Participants" node in "Site pages" 27 And I follow "User 1" 28 And I should see "Cat" 29 And I should not see "Dog" 30 And I log out 31 32 Scenario: Deleting multiple tags with javascript disabled 33 When I log in as "manager1" 34 And I navigate to "Manage tags" node in "Site administration > Appearance" 35 And I follow "Default collection" 36 And I set the following fields to these values: 37 | Select tag Dog | 1 | 38 | Select tag Neverusedtag | 1 | 39 And I press "Delete selected" 40 Then I should see "Tag(s) deleted" 41 And I should not see "Dog" 42 And I should not see "Neverusedtag" 43 And I navigate to "Participants" node in "Site pages" 44 And I follow "User 1" 45 And I should see "Cat" 46 And I should not see "Dog" 47 And I log out 48 49 @javascript 50 Scenario: Deleting a tag with javascript enabled 51 When I log in as "manager1" 52 And I navigate to "Manage tags" node in "Site administration > Appearance" 53 And I follow "Default collection" 54 And I click on "Delete" "link" in the "Turtle" "table_row" 55 Then I should see "Are you sure you want to delete this tag?" 56 And I press "No" 57 And I should not see "Tag(s) deleted" 58 And I should see "Turtle" 59 And I click on "Delete" "link" in the "Dog" "table_row" 60 And I should see "Are you sure you want to delete this tag?" 61 And I press "Yes" 62 And I should see "Tag(s) deleted" 63 And I should not see "Dog" 64 And I follow "Default collection" 65 And I should not see "Dog" 66 And I navigate to "Participants" node in "Site pages" 67 And I follow "User 1" 68 And I should see "Cat" 69 And I should not see "Dog" 70 And I log out 71 72 @javascript 73 Scenario: Deleting multiple tags with javascript enabled 74 When I log in as "manager1" 75 And I navigate to "Manage tags" node in "Site administration > Appearance" 76 And I follow "Default collection" 77 And I press "Delete selected" 78 And I should not see "Are you sure" 79 And I should not see "Tag(s) deleted" 80 And I set the following fields to these values: 81 | Select tag Cat | 1 | 82 And I press "Delete selected" 83 And I should see "Are you sure you want to delete selected tags?" 84 And I press "No" 85 And I should not see "Tag(s) deleted" 86 And I should see "Cat" 87 And I set the following fields to these values: 88 | Select tag Cat | 0 | 89 | Select tag Dog | 1 | 90 | Select tag Neverusedtag | 1 | 91 And I press "Delete selected" 92 And I should see "Are you sure you want to delete selected tags?" 93 And I press "Yes" 94 And I should see "Tag(s) deleted" 95 And I should not see "Dog" 96 And I should not see "Neverusedtag" 97 And I follow "Default collection" 98 And I should not see "Dog" 99 And I should not see "Neverusedtag" 100 And I navigate to "Participants" node in "Site pages" 101 And I follow "User 1" 102 And I should see "Cat" 103 And I should not see "Dog" 104 And I log out
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
Generated: Thu Aug 11 10:00:09 2016 | Cross-referenced by PHPXref 0.7.1 |