[ Index ] |
PHP Cross Reference of Unnamed Project |
[Summary view] [Print] [Text view]
1 @core @core_tag 2 Feature: Browsing tagged items 3 In order to search by tag 4 As a user 5 I need to be able to browse tagged items 6 7 Background: 8 Given the following "users" exist: 9 | username | firstname | lastname | email | interests | 10 | user1 | User | 1 | user1@example.com | Cat | 11 | user2 | User | 2 | user1@example.com | Cat, Dog | 12 | user3 | User | 3 | user1@example.com | Dog | 13 And the following "courses" exist: 14 | fullname | shortname | tags | 15 | Course 1 | c1 | Cat, Dog | 16 | Course 2 | c2 | Cat | 17 | Course 3 | c3 | Cat | 18 | Course 4 | c4 | Cat | 19 | Course 5 | c5 | Cat | 20 | Course 6 | c6 | Cat | 21 | Course 7 | c7 | Cat | 22 23 Scenario: Browse tag index with javascript disabled 24 When I log in as "user1" 25 And I navigate to "Tags" node in "Site pages" 26 And I follow "Cat" 27 Then I should see "Courses" in the ".tag-index-items h3" "css_element" 28 And I should see "User 1" in the "#tagarea-core-user" "css_element" 29 And I should see "Course 7" 30 And I should see "Course 3" 31 And I should not see "Course 2" 32 And I should not see "Course 1" 33 And I should see "User 1" in the "#tagarea-core-user" "css_element" 34 And I should see "User 2" 35 And I should not see "User 3" 36 And I click on "More" "link" in the "#tagarea-core-course" "css_element" 37 And I should see "Courses" in the "#tagarea-core-course" "css_element" 38 And "#tagarea-core-user" "css_element" should not exist 39 And I should not see "Course 7" 40 And I should not see "Course 3" 41 And I should see "Course 2" 42 And I should see "Course 1" 43 And I click on "Back" "link" in the "#tagarea-core-course" "css_element" 44 And I should see "Courses" in the ".tag-index-items h3" "css_element" 45 And "#tagarea-core-user" "css_element" should not exist 46 And I should see "Course 7" 47 And I should see "Course 3" 48 And I should not see "Course 2" 49 And I should not see "Course 1" 50 And I follow "Show only tagged Courses" 51 And I should see "Courses tagged with \"Cat\"" 52 And "#tagarea-core-user" "css_element" should not exist 53 And I should see "Course 7" 54 And I should see "Course 3" 55 And I should see "Course 2" 56 And I should see "Course 1" 57 And I follow "Back to all items tagged with \"Cat\"" 58 And I should see "Courses" in the "#tagarea-core-course" "css_element" 59 And I should see "User interests" in the "#tagarea-core-user" "css_element" 60 And I should see "Course 7" 61 And I should see "Course 3" 62 And I should not see "Course2" 63 And I should not see "Course1" 64 And I log out 65 66 @javascript 67 Scenario: Browse tag index with javascript enabled 68 When I log in as "user1" 69 And I navigate to "Tags" node in "Site pages" 70 And I follow "Cat" 71 Then I should see "Courses" in the "#tagarea-core-course" "css_element" 72 And I should see "User interests" in the "#tagarea-core-user" "css_element" 73 And I should see "Course 7" 74 And I should see "Course 3" 75 And I should not see "Course 2" 76 And I should not see "Course 1" 77 And I click on "More" "link" in the "#tagarea-core-course" "css_element" 78 And I should see "Courses" in the "#tagarea-core-course" "css_element" 79 And I should see "User interests" in the "#tagarea-core-user" "css_element" 80 And I should not see "Course 7" 81 And I should not see "Course 3" 82 And I should see "Course 2" 83 And I should see "Course 1" 84 And I click on "Back" "link" in the "#tagarea-core-course" "css_element" 85 And I should see "Courses" in the "#tagarea-core-course" "css_element" 86 And I should see "User interests" in the "#tagarea-core-user" "css_element" 87 And I should see "Course 7" 88 And I should see "Course 3" 89 And I should not see "Course 2" 90 And I should not see "Course 1" 91 And I follow "Show only tagged Courses" 92 And I should see "Courses" in the "#tagarea-core-course" "css_element" 93 And "#tagarea-core-user" "css_element" should not exist 94 And I should see "Course 7" 95 And I should see "Course 3" 96 And I should see "Course 2" 97 And I should see "Course 1" 98 And I follow "Back to all items tagged with \"Cat\"" 99 And I should see "Courses" in the "#tagarea-core-course" "css_element" 100 And I should see "User interests" in the "#tagarea-core-user" "css_element" 101 And I should see "Course 7" 102 And I should see "Course 3" 103 And I should not see "Course2" 104 And I should not see "Course1" 105 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 |