░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
pplmvsvm
LOCATION:
/var/www/moodle/public/blocks/tags/tests/behat
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: tagcloud.feature
@block @block_tags @core_tag Feature: Block tags displaying tag cloud In order to view system tags As a user I need to be able to use the block tags Background: 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 page When I log in as "admin" And I am on site homepage And I turn editing mode on And I add the "Tags" block And I log out And I am on site homepage Then 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 course When I log in as "teacher1" And I am on "Course 1" course homepage with editing mode on And I add the "Tags" block And I log out And I log in as "student1" And I am on "Course 1" course homepage Then 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 @javascript Scenario: Tag block configuration allows to select from searchable tag collections only When I log in as "student1" And I turn editing mode on And I add the "Tags" block And I configure the "Tags" block Then I should not see "Tag collection" And I press "Save changes" And I log out And I log in as "admin" And I navigate to "Appearance > Manage tags" in site administration And 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 out And I log in as "student1" And I turn editing mode on And I am on homepage And I configure the "Tags" block And the "Tag collection" select box should contain "Collection1" And the "Tag collection" select box should not contain "Collection2" And I press "Save changes"
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 tagcloud.feature
FEATURE
2.9 KB
2026-02-11 01:44
EDIT