Rev 1 | AutorÃa | Comparar con el anterior | Ultima modificación | Ver Log |
@block @block_tags @core_tagFeature: Block tags displaying tag cloudIn order to view system tagsAs a userI need to be able to use the block tagsBackground:Given the following "users" exist:| username | firstname | lastname | email | interests || teacher1 | Teacher | 1 | teacher1@example.com | Dogs, Cats || student1 | Student | 1 | student1@example.com | |And the following "courses" exist:| fullname | shortname || Course 1 | c1 |And the following "tags" exist:| name | isstandard || Neverusedtag | 1 |And the following "course enrolments" exist:| user | course | role || teacher1 | c1 | editingteacher || student1 | c1 | student |Scenario: Add Tags block on a front pageWhen I log in as "admin"And I am on site homepageAnd I turn editing mode onAnd I add the "Tags" blockAnd I log outAnd I am on site homepageThen I should see "Dogs" in the "Tags" "block"And I should see "Cats" in the "Tags" "block"And I should not see "Neverusedtag" in the "Tags" "block"And I click on "Dogs" "link" in the "Tags" "block"And I should see "You are not logged in"Scenario: Add Tags block in a courseWhen I log in as "teacher1"And I am on "Course 1" course homepage with editing mode onAnd I add the "Tags" blockAnd I log outAnd I log in as "student1"And I am on "Course 1" course homepageThen I should see "Dogs" in the "Tags" "block"And I should see "Cats" in the "Tags" "block"And I should not see "Neverusedtag" in the "Tags" "block"And I click on "Dogs" "link" in the "Tags" "block"And I should see "User interests" in the ".tag-index-items h3" "css_element"And I should see "Teacher 1"And I log out@javascriptScenario: Tag block configuration allows to select from searchable tag collections onlyWhen I log in as "student1"And I turn editing mode onAnd I add the "Tags" blockAnd I configure the "Tags" blockThen I should not see "Tag collection"And I press "Save changes"And I log outAnd I log in as "admin"And I navigate to "Appearance > Manage tags" in site administrationAnd I follow "Add tag collection"And I set the following fields to these values:| Name | Collection1 || Searchable | 1 |And I press "Create"And I follow "Add tag collection"And I set the following fields to these values:| Name | Collection2 || Searchable | 0 |And I press "Create"And I log outAnd I log in as "student1"And I turn editing mode onAnd I am on homepageAnd I configure the "Tags" blockAnd the "Tag collection" select box should contain "Collection1"And the "Tag collection" select box should not contain "Collection2"And I press "Save changes"