|
1 |
|
2 // " Vim settings |
|
3 // set tabstop=4 " number of spaces in a tab |
|
4 // set softtabstop=4 " as above |
|
5 // set shiftwidth=4 " as above |
|
6 |
|
7 suite ('comt logged admin', function () { |
|
8 |
|
9 this.timeout(20000); |
|
10 |
|
11 suite ('logs as an admin', function () { |
|
12 test_comt_login (C.W.USER_ADMIN, C.W.PASS_ADMIN); |
|
13 }); |
|
14 |
|
15 suite ('setting settings to test-values', function () { |
|
16 test_page_loading ('/settings/', 'Settings'); |
|
17 test_comt_fill_settings (C); |
|
18 test_val ('#id_workspace_name', C['#id_workspace_name']); |
|
19 test_click ('#settings input[type="submit"]', C.WAIT_PAGE_LOAD); |
|
20 test_page_loading ('/settings/', 'Settings'); |
|
21 test_text ('#content h1.main_title a[href="/"]', C['#id_workspace_name']); |
|
22 test_page_loading ('/settings/design/', 'Settings'); |
|
23 test_comt_fill_design (C); |
|
24 test_click ('#settings input[type="submit"]', C.WAIT_PAGE_LOAD); |
|
25 }); |
|
26 |
|
27 suite ('admin dashboard page conformity', function () { |
|
28 test_page_loading ('/', 'Dashboard\n - '+C['#id_workspace_name']); |
|
29 test_comt_logged_header (C.W.USER_ADMIN); |
|
30 test_comt_default_tabs (test_comt.text_nb, test_comt.user_nb); |
|
31 test_count ('table.dash_table', 5); |
|
32 test_text ('table.dash_table th:eq(0)', 'Actions'); |
|
33 test_match ('table.dash_table:eq(0) a:eq(0)[href="/create/content/"]', /\sCreate a text/); |
|
34 test_text ('table.dash_table:eq(0) a:eq(1).tip[href="#"]', '\xa0'); |
|
35 test_match ('table.dash_table:eq(0) a:eq(2)[href="/create/upload/"]', /\sUpload a text/); |
|
36 test_text ('table.dash_table:eq(0) a:eq(3).tip[href="#"]', '\xa0'); |
|
37 test_match ('table.dash_table:eq(0) a:eq(4)[href="/create/import/"]', /\sImport a co-mented text/); |
|
38 test_text ('table.dash_table:eq(0) a:eq(5).tip[href="#"]', '\xa0'); |
|
39 test_match ('table.dash_table:eq(0) a:eq(6)[href="/user/add/"]', /\sInvite user/); |
|
40 test_match ('table.dash_table:eq(0) a:eq(7)[href="/profile/"]', /\sEdit your profile/); |
|
41 test_match ('table.dash_table:eq(0) a:eq(8)[href="/text/"]', /\sView text list/); |
|
42 test_match ('table.dash_table:eq(0) a:eq(9)[href="/settings/"]', /\sConfigure workspace/); |
|
43 test_text ('table.dash_table th:eq(1)', 'Recent texts (all)'); |
|
44 test_text ('table.dash_table:eq(1) a:eq(0)[href="/text/"]', 'all'); |
|
45 test_text ('table.dash_table th:eq(2)', 'Recent comments'); |
|
46 test_match ('table.dash_table th:eq(3)', /^Workspace activity\n\s+\(month\/week\/24 hours\)$/m); |
|
47 test_text ('table.dash_table:eq(3) a:eq(0)[href="?span=month"]', 'month'); |
|
48 test_text ('table.dash_table:eq(3) a:eq(1)[href="?span=day"]', '24 hours'); |
|
49 test_text ('table.dash_table th:eq(4) span.em', 'Activities'); |
|
50 test_comt_unlogged_footer (); |
|
51 }); |
|
52 |
|
53 suite ('create a text page conformity', function () { |
|
54 test_page_loading ('/create/content/', 'Create a text - '+C['#id_workspace_name']); |
|
55 test_comt_logged_header (C.W.USER_ADMIN); |
|
56 test_comt_default_tabs (test_comt.text_nb, test_comt.user_nb); |
|
57 test_count ('#text ul.sub_list:eq(0) a', 3); |
|
58 test_text ('#text ul.sub_list:eq(0) a:eq(0)[href="/text/"]', 'Text list'); |
|
59 test_text ('#text ul.sub_list:eq(0) a:eq(1)[href="/create/upload/"]', 'Upload a text'); |
|
60 test_text ('#text ul.sub_list:eq(0) a:eq(2)[href="/create/import/"]', 'Import a co-mented text'); |
|
61 test_count ('#text form[action="."]:eq(0) :input', 6); |
|
62 test_field ('text', 'id_title', 'text', 0, 'Title', true); |
|
63 test_field ('text', 'id_format', 'select', 1, 'Format', true); |
|
64 test_field ('text', 'id_content', 'textarea', 2, 'Content', true); |
|
65 test_field ('text', 'id_tags', 'text', 3, 'Tags'); |
|
66 test_val ('#text :input:eq(4)[type=submit]', 'Save'); |
|
67 test_val ('#text :input:eq(5)#cancel_button[type=button]', 'Cancel'); |
|
68 test_count ('select#id_format option', 3); |
|
69 test_text ('select#id_format option:eq(0)[value="markdown"][selected]', 'markdown', C.HIDDEN); |
|
70 test_text ('select#id_format option:eq(1)[value="rst"]', 'rst', C.HIDDEN); |
|
71 test_text ('select#id_format option:eq(2)[value="html"]', 'html', C.HIDDEN); |
|
72 test_count ('.markdown #markItUpId_content li', 20); // How many buttons in the WYSIWYG editor toolbar ? |
|
73 test_comt_unlogged_footer (); |
|
74 test_click ('#text input[type="submit"]', C.WAIT_PAGE_LOAD); |
|
75 test_count ('div.help_text span.error-text', 2); |
|
76 test_field ('text div.error', 'id_title', 'text', 0, 'Title', true); |
|
77 test_field ('text div.error', 'id_content', 'textarea', 1, 'Content', true); |
|
78 }); |
|
79 |
|
80 suite ('upload text page conformity', function () { |
|
81 test_page_loading ('/create/upload/', 'Upload a text - '+C['#id_workspace_name']); |
|
82 test_comt_logged_header (C.W.USER_ADMIN); |
|
83 test_comt_default_tabs (test_comt.text_nb, test_comt.user_nb); |
|
84 test_count ('#text ul.sub_list:eq(0) a', 3); |
|
85 test_text ('#text ul.sub_list:eq(0) a:eq(0)[href="/text/"]', 'Text list'); |
|
86 test_text ('#text ul.sub_list:eq(0) a:eq(1)[href="/create/content/"]', 'Create a text'); |
|
87 test_text ('#text ul.sub_list:eq(0) a:eq(2)[href="/create/import/"]', 'Import a co-mented text'); |
|
88 test_count ('#text form[action="."]:eq(0) :input', 6); |
|
89 test_field ('text', 'id_title', 'text', 0, 'Title'); |
|
90 test_field ('text', 'id_format', 'select', 1, 'Format', true); |
|
91 test_field ('text', 'id_tags', 'text', 2, 'Tags'); |
|
92 test_field ('text', 'id_file', 'file', 3, 'Upload file'); |
|
93 test_val ('#text :input:eq(4)[type=submit]', 'Save'); |
|
94 test_val ('#text :input:eq(5)#cancel_button[type=button]', 'Cancel'); |
|
95 test_count ('select#id_format option', 3); |
|
96 test_text ('select#id_format option:eq(0)[value="markdown"][selected]', 'markdown', C.HIDDEN); |
|
97 test_text ('select#id_format option:eq(1)[value="rst"]', 'rst', C.HIDDEN); |
|
98 test_text ('select#id_format option:eq(2)[value="html"]', 'html', C.HIDDEN); |
|
99 test_comt_unlogged_footer (); |
|
100 test_click ('#text input[type="submit"]', C.WAIT_PAGE_LOAD); |
|
101 test_count ('div.help_text span.error-text', 1); |
|
102 test_field ('text div.error', 'id_file', 'file', 0, 'Upload file'); |
|
103 test_match ('#text div.help_text:eq(3) span.error-text:eq(0)', /You should specify a file to upload/m); |
|
104 }); |
|
105 |
|
106 suite ('import a co-mented text page conformity', function () { |
|
107 test_page_loading ('/create/import/', 'Import a co-mented text - '+C['#id_workspace_name']); |
|
108 test_comt_logged_header (C.W.USER_ADMIN); |
|
109 test_comt_default_tabs (test_comt.text_nb, test_comt.user_nb); |
|
110 test_count ('#text ul.sub_list:eq(0) a', 3); |
|
111 test_text ('#text ul.sub_list:eq(0) a:eq(0)[href="/text/"]', 'Text list'); |
|
112 test_text ('#text ul.sub_list:eq(0) a:eq(1)[href="/create/content/"]', 'Create a text'); |
|
113 test_text ('#text ul.sub_list:eq(0) a:eq(2)[href="/create/upload/"]', 'Upload a text'); |
|
114 test_count ('#text form[action="."]:eq(0) :input', 3); |
|
115 test_field ('text', 'id_file', 'file', 0, 'Upload XML file', true); |
|
116 test_val ('#text :input:eq(1)[type=submit]', 'Save'); |
|
117 test_val ('#text :input:eq(2)#cancel_button[type=button]', 'Cancel'); |
|
118 test_comt_unlogged_footer (); |
|
119 test_click ('#text input[type="submit"]', C.WAIT_PAGE_LOAD); |
|
120 test_count ('div.help_text span.error-text', 1); |
|
121 test_field ('text div.error', 'id_file', 'file', 0, 'Upload XML file', true); |
|
122 test_match ('#text div.help_text:eq(0) span.error-text:eq(0)', /You should specify a file to upload/m); |
|
123 }); |
|
124 |
|
125 suite ('edit profile page conformity', function () { |
|
126 test_page_loading ('/profile/', 'Your profile \\('+C.W.USER_ADMIN+'\\)\n - '+C['#id_workspace_name']); |
|
127 test_comt_logged_header (C.W.USER_ADMIN, C.NO_TAGLINE); |
|
128 test_count ('#content ul.sub_list:eq(0) a', 1); |
|
129 test_text ('#content ul.sub_list:eq(0) a:eq(0)[href="/profile-pw/"]', 'Password'); |
|
130 test_count ('form#profile[action="."]:eq(0) :input', 5); |
|
131 test_field ('profile', 'id_email', 'text', 0, 'E-mail address', true); |
|
132 test_field ('profile', 'id_first_name','text', 1, 'First name'); |
|
133 test_field ('profile', 'id_last_name', 'text', 2, 'Last name'); |
|
134 test_field ('profile', 'id_tags', 'text', 3, 'Tags'); |
|
135 test_val ('#profile :input:eq(4)[type=submit]', 'Save'); |
|
136 test_comt_unlogged_footer (); |
|
137 }); |
|
138 |
|
139 suite ('edit password page conformity', function () { |
|
140 test_page_loading ('/profile-pw/', 'Your profile [(]'+C.W.USER_ADMIN+'[)]\n - '+C['#id_workspace_name']); |
|
141 test_comt_logged_header (C.W.USER_ADMIN, C.NO_TAGLINE); |
|
142 test_count ('#content ul.sub_list:eq(0) a', 1); |
|
143 test_text ('#content ul.sub_list:eq(0) a:eq(0)[href="/profile/"]', 'Profile'); |
|
144 test_count ('form#profile[action="."]:eq(0) :input', 4); |
|
145 test_field ('profile', 'id_old_password', 'password', 0, 'Old password', true); |
|
146 test_field ('profile', 'id_new_password1', 'password', 1, 'New password', true); |
|
147 test_field ('profile', 'id_new_password2', 'password', 2, 'New password confirmation', true); |
|
148 test_val ('#profile :input:eq(3)[type=submit]', 'Save'); |
|
149 test_comt_unlogged_footer (); |
|
150 }); |
|
151 |
|
152 suite ('people list page conformity', function () { |
|
153 test_page_loading ('/user/', 'People\' list\n - '+C['#id_workspace_name']); |
|
154 test_comt_logged_header (C.W.USER_ADMIN); |
|
155 test_comt_default_tabs (test_comt.text_nb, test_comt.user_nb); |
|
156 test_count ('#user ul.sub_list:eq(0) a', 2); |
|
157 test_text ('#user ul.sub_list:eq(0) a:eq(0)[href="/user/add/"]', 'Add a new user'); |
|
158 test_text ('#user ul.sub_list:eq(0) a:eq(1)[href="/user/mass-add/"]', 'Add users in bulk'); |
|
159 // TOTEST : filter by tag -> commentator user should be tagged commentator (to change in fixture) |
|
160 test_count ('form#filter_form[action="."] :input', 1); |
|
161 test_text ('#filter_form a[href="?display=1"]', 'Display suspended users'); |
|
162 test_text ('select#tag_selected option:eq(0)[selected][value="0"]', '- All -', C.HIDDEN); |
|
163 // TOTEST : pagination |
|
164 // TOTEST : Bulk Actions -> Apply does enable |
|
165 // TOTEST display suspended users |
|
166 test_text ('select#bulk_actions option:eq(0)[selected][value="-1"]', '- Bulk Actions -', C.HIDDEN); |
|
167 test_text ('select#bulk_actions option:eq(1)[value="disable"]', 'Suspend access', C.HIDDEN); |
|
168 test_text ('select#bulk_actions option:eq(2)[value="enable"]', 'Enable access', C.HIDDEN); |
|
169 test_text ('select#bulk_actions option:eq(3)[value="role_1"]', 'Change role to Manager', C.HIDDEN); |
|
170 test_text ('select#bulk_actions option:eq(4)[value="role_2"]', 'Change role to Editor', C.HIDDEN); |
|
171 test_text ('select#bulk_actions option:eq(5)[value="role_3"]', 'Change role to Moderator', C.HIDDEN); |
|
172 test_text ('select#bulk_actions option:eq(6)[value="role_4"]', 'Change role to Commentator', C.HIDDEN); |
|
173 test_text ('select#bulk_actions option:eq(7)[value="role_5"]', 'Change role to Observer', C.HIDDEN); |
|
174 test_val ('form#user_form input#apply[type=button][disabled]', 'Apply'); |
|
175 test_count ('table.large_table:eq(1) th', 6); |
|
176 test_val ('table.large_table:eq(1) th:eq(0) input#all_check[type="checkbox"]', 'on'); |
|
177 test_text ('table.large_table:eq(1) th:eq(1) a[href="?order=user__username"]', 'User'); |
|
178 test_text ('table.large_table:eq(1) th:eq(2) a[href="?order=user__email"]', 'Email'); |
|
179 test_text ('table.large_table:eq(1) th:eq(3) a[href="?order=-user__date_joined"]', 'Date joined'); |
|
180 test_text ('table.large_table:eq(1) th:eq(4) a[href="?order=role__name"]', 'Role'); |
|
181 test_text ('table.large_table:eq(1) th:eq(5)', 'Last week activity'); |
|
182 test_text ('table.large_table:eq(1) tr:last a[href="/user/-/edit/"]', 'Anonymous users'); |
|
183 test_text ('table.large_table:eq(1) a.main_object_title[href="/profile/"]', C.W.USER_ADMIN); |
|
184 test_text ('table.large_table:eq(1) div.hidden-user-actions a[href="/profile/"]', 'Your profile'); |
|
185 // TOTEST roles of users |
|
186 test_comt_unlogged_footer (); |
|
187 }); |
|
188 |
|
189 suite ('check user number', function () { |
|
190 test_page_loading ('/user/?display=1', 'People\' list\n - '+C['#id_workspace_name']); |
|
191 test_count ('#user_form :input', 6 + (test_comt.user_nb % 10) * 2); |
|
192 test_match ('#paginator', new RegExp ('\\s\\d+-\\d+ of '+test_comt.user_nb+'\\s','m')); |
|
193 }); |
|
194 |
|
195 suite ('add a user page conformity', function () { |
|
196 test_page_loading ('/user/add/', 'Add a new user\n - '+C['#id_workspace_name']); |
|
197 test_comt_logged_header (C.W.USER_ADMIN); |
|
198 test_comt_default_tabs (test_comt.text_nb, test_comt.user_nb); |
|
199 test_count ('#user ul.sub_list:eq(0) a', 2); |
|
200 test_text ('#user ul.sub_list:eq(0) a:eq(0)[href="/user/"]', 'Users\' list'); |
|
201 test_text ('#user ul.sub_list:eq(0) a:eq(1)[href="/user/mass-add/"]', 'Add users in bulk'); |
|
202 test_count ('#user form[action="."]:eq(0) :input', 8); |
|
203 test_field ('user', 'id_email', 'text', 0, 'E-mail address', true); |
|
204 test_field ('user', 'id_first_name', 'text', 1, 'First name'); |
|
205 test_field ('user', 'id_last_name', 'text', 2, 'Last name'); |
|
206 test_field ('user', 'id_tags', 'text', 3, 'Tags'); |
|
207 test_field ('user', 'id_role', 'select', 4, 'Workspace level role'); |
|
208 test_field ('user', 'id_note', 'textarea', 5, 'Note'); |
|
209 test_count ('select#id_role option', 6); |
|
210 test_text ('select#id_role option:eq(0)[value][selected]', '---------', C.HIDDEN); |
|
211 test_text ('select#id_role option:eq(1)[value="1"]', 'Manager', C.HIDDEN); |
|
212 test_text ('select#id_role option:eq(2)[value="2"]', 'Editor', C.HIDDEN); |
|
213 test_text ('select#id_role option:eq(3)[value="3"]', 'Moderator', C.HIDDEN); |
|
214 test_text ('select#id_role option:eq(4)[value="4"]', 'Commentator', C.HIDDEN); |
|
215 test_text ('select#id_role option:eq(5)[value="5"]', 'Observer', C.HIDDEN); |
|
216 test_val ('#user :input:eq(6)[type=submit]', 'Add user'); |
|
217 test_val ('#user :input:eq(7)#cancel_button[type=button]', 'Cancel'); |
|
218 test_comt_unlogged_footer (); |
|
219 test_click ('#user input[type="submit"]', C.WAIT_PAGE_LOAD); |
|
220 test_count ('div.help_text span.error-text', 1); |
|
221 test_field ('user div.error', 'id_email', 'text', 0, 'E-mail address', true); |
|
222 test_match ('#user div.help_text:eq(0) span.error-text:eq(0)', /This field is required/m); |
|
223 // X TOTEST add user (pending) |
|
224 }); |
|
225 |
|
226 suite ('add-users-in-bulk page conformity', function () { |
|
227 test_page_loading ('/user/mass-add/', 'Add users in bulk\n - '+C['#id_workspace_name']); |
|
228 test_comt_logged_header (C.W.USER_ADMIN); |
|
229 test_comt_default_tabs (test_comt.text_nb, test_comt.user_nb); |
|
230 test_count ('#user ul.sub_list:eq(0) a', 2); |
|
231 test_text ('#user ul.sub_list:eq(0) a:eq(0)[href="/user/"]', 'Users\' list'); |
|
232 test_text ('#user ul.sub_list:eq(0) a:eq(1)[href="/user/add/"]', 'Add a new user'); |
|
233 test_count ('#user form[action="."]:eq(0) :input', 6); |
|
234 test_field ('user', 'id_email', 'textarea', 0, 'Emails', true); |
|
235 test_field ('user', 'id_tags', 'text', 1, 'Tags'); |
|
236 test_field ('user', 'id_role', 'select', 2, 'Workspace level role'); |
|
237 test_field ('user', 'id_note', 'textarea', 3, 'Note'); |
|
238 test_count ('select#id_role option', 6); |
|
239 test_text ('select#id_role option:eq(0)[value][selected]', '---------', C.HIDDEN); |
|
240 test_text ('select#id_role option:eq(1)[value="1"]', 'Manager', C.HIDDEN); |
|
241 test_text ('select#id_role option:eq(2)[value="2"]', 'Editor', C.HIDDEN); |
|
242 test_text ('select#id_role option:eq(3)[value="3"]', 'Moderator', C.HIDDEN); |
|
243 test_text ('select#id_role option:eq(4)[value="4"]', 'Commentator', C.HIDDEN); |
|
244 test_text ('select#id_role option:eq(5)[value="5"]', 'Observer', C.HIDDEN); |
|
245 test_val ('#user :input:eq(4)[type=submit]', 'Add users'); |
|
246 test_val ('#user :input:eq(5)#cancel_button[type=button]', 'Cancel'); |
|
247 // X TOTEST add users (pending) -> can't be deleted |
|
248 test_comt_unlogged_footer (); |
|
249 test_click ('#user input[type="submit"]', C.WAIT_PAGE_LOAD); |
|
250 test_count ('div.help_text span.error-text', 1); |
|
251 test_field ('user div.error', 'id_email', 'textarea', 0, 'Emails', true); |
|
252 test_match ('#user div.help_text:eq(0) span.error-text:eq(0)', /This field is required/m); |
|
253 }); |
|
254 |
|
255 suite ('settings page conformity', function () { |
|
256 test_page_loading ('/settings/', 'Settings - '+C['#id_workspace_name']); |
|
257 test_comt_logged_header (C.W.USER_ADMIN); |
|
258 test_comt_default_tabs (test_comt.text_nb, test_comt.user_nb); |
|
259 test_count ('#settings ul.sub_list:eq(0) a', 1); |
|
260 test_text ('#settings ul.sub_list:eq(0) a:eq(0)[href="/settings/design/"]', 'Appearance'); |
|
261 test_count ('#settings form[action="."]:eq(0) :input', 12); |
|
262 test_field ('settings', 'id_workspace_name', 'text', 0, 'Workspace name'); |
|
263 test_field ('settings', 'id_workspace_tagline', 'text', 1, 'Workspace tagline'); |
|
264 test_field ('settings', 'id_workspace_registration', 'checkbox', 2, 'Workspace registration'); |
|
265 test_field ('settings', 'id_workspace_registration_moderation', 'checkbox', 3, 'Workspace registration moderation'); |
|
266 test_field ('settings', 'id_workspace_role_model', 'select', 4, 'Role model'); |
|
267 test_text ('select#id_workspace_role_model option:eq(0)[selected][value="generic"]', 'Generic', C.HIDDEN); |
|
268 test_text ('select#id_workspace_role_model option:eq(1)[value="teacher"]', 'Class (education)', C.HIDDEN); |
|
269 test_field ('settings', 'id_workspace_category_1', 'text', 5, 'Label for the first category of comments'); |
|
270 test_field ('settings', 'id_workspace_category_2', 'text', 6, 'Label for the second category of comments'); |
|
271 test_field ('settings', 'id_workspace_category_3', 'text', 7, 'Label for the third category of comments'); |
|
272 test_field ('settings', 'id_workspace_category_4', 'text', 8, 'Label for the fourth category of comments'); |
|
273 test_field ('settings', 'id_workspace_category_5', 'text', 9, 'Label for the fifth category of comments'); |
|
274 test_val ('#settings :input:eq(10)[type=submit]', 'Save'); |
|
275 test_val ('#settings :input:eq(11)#cancel_button[type=button]', 'Cancel'); |
|
276 // TOTEST Workspace registration feature (with newly accessible page) |
|
277 test_comt_unlogged_footer (); |
|
278 }); |
|
279 |
|
280 suite ('settings design page conformity', function () { |
|
281 test_page_loading ('/settings/design/', 'Settings - '+C['#id_workspace_name']); |
|
282 test_comt_logged_header (C.W.USER_ADMIN); |
|
283 test_comt_default_tabs (test_comt.text_nb, test_comt.user_nb); |
|
284 test_count ('#settings ul.sub_list:eq(0) a', 1); |
|
285 test_text ('#settings ul.sub_list:eq(0) a:eq(0)[href="/settings/"]', 'General'); |
|
286 test_count ('#settings form[action="."]:eq(0) :input', 7); |
|
287 test_field ('settings', 'id_workspace_logo_file', 'file', 0, 'Workspace logo'); |
|
288 test_field ('settings', 'id_custom_css', 'textarea', 1, 'Custom CSS rules'); |
|
289 test_field ('settings', 'id_custom_font', 'text', 2, 'Custom font'); |
|
290 test_field ('settings', 'id_custom_titles_font', 'text', 3, 'Custom font for titles'); |
|
291 test_val ('#settings :input:eq(4)[type=submit]', 'Save'); |
|
292 test_val ('#settings :input:eq(5)#cancel_button[type=button]', 'Cancel'); |
|
293 test_val ('#settings :input:eq(6)#delete_logo_button[type=submit]', 'Delete logo'); |
|
294 test_comt_unlogged_footer (); |
|
295 }); |
|
296 |
|
297 suite ('followup page conformity', function () { |
|
298 test_page_loading ('/followup/', 'Followup\n - '+C['#id_workspace_name']); |
|
299 test_comt_logged_header (C.W.USER_ADMIN); |
|
300 test_comt_default_tabs (test_comt.text_nb, test_comt.user_nb); |
|
301 test_text ('#followup a:eq(0)[href="/help/#public_private_feed"]', '?'); |
|
302 test_match ('#followup a:eq(1)[href$="/feed/"]', new RegExp (C.W.WORKSPACE_URL+'feed/', 'm')); |
|
303 test_text ('#followup a:eq(2)[href="/help/#public_private_feed"]', '?'); |
|
304 test_count ('form#followup_form[action="."] :input', 3); |
|
305 test_val ('form#followup_form input[type=submit]', '(Activate private feed|Reset private feed url)'); |
|
306 test_val ('form#followup_form input#workspace_notify_check[type=checkbox]', 'on'); |
|
307 test_val ('form#followup_form input#own_notify_check[type=checkbox]', 'on'); |
|
308 |
|
309 // X TOTEST qu'une fois cliqué, le bouton a le nvo label, et qu'une adresse est disponible |
|
310 // X TOTEST que si on reclique l'adresse est changée |
|
311 |
|
312 test_comt_unlogged_footer (); |
|
313 }); |
|
314 |
|
315 }); |
|
316 |