Commit | Line | Data |
---|---|---|
81ad5438 | 1 | @block @block_activity_modules |
9842e231 MG |
2 | Feature: Block activity modules |
3 | In order to overview activity modules in a course | |
4 | As a manager | |
5 | I can add activities block in a course or on the frontpage | |
6 | ||
7 | Background: | |
8 | Given I log in as "admin" | |
9 | And I expand "Site administration" node | |
10 | And I expand "Plugins" node | |
11 | And I expand "Activity modules" node | |
12 | And I follow "Manage activities" | |
13 | And I click on "//a[@title=\"Show\"]" "xpath_element" in the "Feedback" "table_row" | |
9842e231 MG |
14 | |
15 | Scenario: Add activities block on the frontpage | |
81ad5438 | 16 | Given the following "activities" exists: |
9842e231 MG |
17 | | activity | name | intro | course | idnumber | |
18 | | assign | Frontpage assignment name | Frontpage assignment description | Acceptance test site | assign0 | | |
9842e231 MG |
19 | | book | Frontpage book name | Frontpage book description | Acceptance test site | book0 | |
20 | | chat | Frontpage chat name | Frontpage chat description | Acceptance test site | chat0 | | |
21 | | choice | Frontpage choice name | Frontpage choice description | Acceptance test site | choice0 | | |
22 | | data | Frontpage database name | Frontpage database description | Acceptance test site | data0 | | |
23 | | feedback | Frontpage feedback name | Frontpage feedback description | Acceptance test site | feedback0 | | |
24 | | forum | Frontpage forum name | Frontpage forum description | Acceptance test site | forum0 | | |
25 | | label | Frontpage label name | Frontpage label description | Acceptance test site | label0 | | |
26 | | lti | Frontpage lti name | Frontpage lti description | Acceptance test site | lti0 | | |
27 | | page | Frontpage page name | Frontpage page description | Acceptance test site | page0 | | |
28 | | quiz | Frontpage quiz name | Frontpage quiz description | Acceptance test site | quiz0 | | |
29 | | resource | Frontpage resource name | Frontpage resource description | Acceptance test site | resource0 | | |
30 | | imscp | Frontpage imscp name | Frontpage imscp description | Acceptance test site | imscp0 | | |
31 | | folder | Frontpage folder name | Frontpage folder description | Acceptance test site | folder0 | | |
32 | | glossary | Frontpage glossary name | Frontpage glossary description | Acceptance test site | glossary0 | | |
33 | | scorm | Frontpage scorm name | Frontpage scorm description | Acceptance test site | scorm0 | | |
34 | | lesson | Frontpage lesson name | Frontpage lesson description | Acceptance test site | lesson0 | | |
35 | | survey | Frontpage survey name | Frontpage survey description | Acceptance test site | survey0 | | |
36 | | url | Frontpage url name | Frontpage url description | Acceptance test site | url0 | | |
37 | | wiki | Frontpage wiki name | Frontpage wiki description | Acceptance test site | wiki0 | | |
38 | | workshop | Frontpage workshop name | Frontpage workshop description | Acceptance test site | workshop0 | | |
39 | ||
40 | And I am on homepage | |
41 | When I follow "Turn editing on" | |
42 | And I add the "Activities" block | |
43 | And I click on "Assignments" "link" in the "Activities" "block" | |
44 | Then I should see "Frontpage assignment name" | |
45 | And I am on homepage | |
9842e231 MG |
46 | And I click on "Chats" "link" in the "Activities" "block" |
47 | And I should see "Frontpage chat name" | |
48 | And I am on homepage | |
49 | And I click on "Choices" "link" in the "Activities" "block" | |
50 | And I should see "Frontpage choice name" | |
51 | And I am on homepage | |
52 | And I click on "Databases" "link" in the "Activities" "block" | |
53 | And I should see "Frontpage database name" | |
54 | And I am on homepage | |
55 | And I click on "Feedback" "link" in the "Activities" "block" | |
56 | And I should see "Frontpage feedback name" | |
57 | And I am on homepage | |
58 | And I click on "Forums" "link" in the "Activities" "block" | |
59 | And I should see "Frontpage forum name" | |
60 | And I am on homepage | |
61 | And I click on "External Tools" "link" in the "Activities" "block" | |
62 | And I should see "Frontpage lti name" | |
63 | And I am on homepage | |
64 | And I click on "Quizzes" "link" in the "Activities" "block" | |
65 | And I should see "Frontpage quiz name" | |
66 | And I am on homepage | |
67 | And I click on "Glossaries" "link" in the "Activities" "block" | |
68 | And I should see "Frontpage glossary name" | |
69 | And I am on homepage | |
70 | And I click on "SCORM packages" "link" in the "Activities" "block" | |
71 | And I should see "Frontpage scorm name" | |
72 | And I am on homepage | |
73 | And I click on "Lessons" "link" in the "Activities" "block" | |
74 | And I should see "Frontpage lesson name" | |
75 | And I am on homepage | |
76 | And I click on "Wikis" "link" in the "Activities" "block" | |
77 | And I should see "Frontpage wiki name" | |
78 | And I am on homepage | |
79 | And I click on "Workshop" "link" in the "Activities" "block" | |
80 | And I should see "Frontpage workshop name" | |
81 | And I am on homepage | |
82 | And I click on "Resources" "link" in the "Activities" "block" | |
83 | And I should see "Frontpage book name" | |
84 | And I should see "Frontpage page name" | |
85 | And I should see "Frontpage resource name" | |
86 | And I should see "Frontpage imscp name" | |
87 | And I should see "Frontpage folder name" | |
88 | And I should see "Frontpage url name" | |
89 | ||
90 | Scenario: Add activities block in a course | |
91 | Given the following "courses" exists: | |
92 | | fullname | shortname | format | | |
93 | | Course 1 | C1 | topics | | |
94 | And the following "activities" exists: | |
95 | | activity | name | intro | course | idnumber | | |
96 | | assign | Test assignment name | Test assignment description | C1 | assign1 | | |
9842e231 MG |
97 | | book | Test book name | Test book description | C1 | book1 | |
98 | | chat | Test chat name | Test chat description | C1 | chat1 | | |
99 | | choice | Test choice name | Test choice description | C1 | choice1 | | |
100 | | data | Test database name | Test database description | C1 | data1 | | |
101 | | feedback | Test feedback name | Test feedback description | C1 | feedback1 | | |
102 | | folder | Test folder name | Test folder description | C1 | folder1 | | |
103 | | forum | Test forum name | Test forum description | C1 | forum1 | | |
104 | | glossary | Test glossary name | Test glossary description | C1 | glossary1 | | |
105 | | imscp | Test imscp name | Test imscp description | C1 | imscp1 | | |
106 | | label | Test label name | Test label description | C1 | label1 | | |
107 | | lesson | Test lesson name | Test lesson description | C1 | lesson1 | | |
108 | | lti | Test lti name | Test lti description | C1 | lti1 | | |
109 | | page | Test page name | Test page description | C1 | page1 | | |
110 | | quiz | Test quiz name | Test quiz description | C1 | quiz1 | | |
111 | | resource | Test resource name | Test resource description | C1 | resource1 | | |
112 | | scorm | Test scorm name | Test scorm description | C1 | scorm1 | | |
113 | | survey | Test survey name | Test survey description | C1 | survey1 | | |
114 | | url | Test url name | Test url description | C1 | url1 | | |
115 | | wiki | Test wiki name | Test wiki description | C1 | wiki1 | | |
116 | | workshop | Test workshop name | Test workshop description | C1 | workshop1 | | |
117 | ||
118 | When I follow "Courses" | |
119 | And I follow "Course 1" | |
120 | And I turn editing mode on | |
121 | And I add the "Activities" block | |
122 | And I click on "Assignments" "link" in the "Activities" "block" | |
123 | Then I should see "Test assignment name" | |
124 | And I follow "Course 1" | |
9842e231 MG |
125 | And I click on "Chats" "link" in the "Activities" "block" |
126 | And I should see "Test chat name" | |
127 | And I follow "Course 1" | |
128 | And I click on "Choices" "link" in the "Activities" "block" | |
129 | And I should see "Test choice name" | |
130 | And I follow "Course 1" | |
131 | And I click on "Databases" "link" in the "Activities" "block" | |
132 | And I should see "Test database name" | |
133 | And I follow "Course 1" | |
134 | And I click on "Feedback" "link" in the "Activities" "block" | |
135 | And I should see "Test feedback name" | |
136 | And I follow "Course 1" | |
137 | And I click on "Forums" "link" in the "Activities" "block" | |
138 | And I should see "Test forum name" | |
139 | And I follow "Course 1" | |
140 | And I click on "External Tools" "link" in the "Activities" "block" | |
141 | And I should see "Test lti name" | |
142 | And I follow "Course 1" | |
143 | And I click on "Quizzes" "link" in the "Activities" "block" | |
144 | And I should see "Test quiz name" | |
145 | And I follow "Course 1" | |
146 | And I click on "Glossaries" "link" in the "Activities" "block" | |
147 | And I should see "Test glossary name" | |
148 | And I follow "Course 1" | |
149 | And I click on "SCORM packages" "link" in the "Activities" "block" | |
150 | And I should see "Test scorm name" | |
151 | And I follow "Course 1" | |
152 | And I click on "Lessons" "link" in the "Activities" "block" | |
153 | And I should see "Test lesson name" | |
154 | And I follow "Course 1" | |
155 | And I click on "Wikis" "link" in the "Activities" "block" | |
156 | And I should see "Test wiki name" | |
157 | And I follow "Course 1" | |
158 | And I click on "Workshop" "link" in the "Activities" "block" | |
159 | And I should see "Test workshop name" | |
160 | And I follow "Course 1" | |
161 | And I click on "Resources" "link" in the "Activities" "block" | |
162 | And I should see "Test book name" | |
163 | And I should see "Test page name" | |
164 | And I should see "Test resource name" | |
165 | And I should see "Test imscp name" | |
166 | And I should see "Test folder name" | |
167 | And I should see "Test url name" |