File tree 4 files changed +7
-35
lines changed
4 files changed +7
-35
lines changed Original file line number Diff line number Diff line change
1
+ Fix robot test `Add a Comment to a Document and bulk delete it`. @wesleybl
Original file line number Diff line number Diff line change 227
227
title string:Select ${item/Title};
228
228
"
229
229
/>
230
- <input name =" selected_obj_paths:list"
231
- type =" hidden"
232
- value =" #"
233
- tal : attributes ="
234
- value item/getURL;
235
- "
236
- />
237
230
</td >
238
231
<td >
239
232
<span tal : content =" python:item.author_name or item.Creator" >Name</span >
Original file line number Diff line number Diff line change @@ -156,18 +156,6 @@ class DeleteComment(BrowserView):
156
156
157
157
http://nohost/front-page/++conversation++default/1286289644723317/\
158
158
@@moderate-delete-comment
159
-
160
- Each table row (comment) in the moderation view contains a hidden input
161
- field with the absolute URL of the content object:
162
-
163
- <input type="hidden"
164
- value="http://nohost/front-page/++conversation++default/\
165
- 1286289644723317"
166
- name="selected_obj_paths:list">
167
-
168
- This absolute URL is called from a jQuery method that is bind to the
169
- 'delete' button of the table row. See javascripts/moderation.js for more
170
- details.
171
159
"""
172
160
173
161
def __call__ (self ):
@@ -240,18 +228,6 @@ class CommentTransition(BrowserView):
240
228
241
229
http://nohost/front-page/++conversation++default/1286289644723317/\
242
230
@@transmit-comment
243
-
244
- Each table row (comment) in the moderation view contains a hidden input
245
- field with the absolute URL of the content object:
246
-
247
- <input type="hidden"
248
- value="http://nohost/front-page/++conversation++default/\
249
- 1286289644723317"
250
- name="selected_obj_paths:list">
251
-
252
- This absolute URL is called from a jQuery method that is bind to the
253
- 'delete' button of the table row. See javascripts/moderation.js for more
254
- details.
255
231
"""
256
232
257
233
def __call__ (self ):
Original file line number Diff line number Diff line change @@ -67,12 +67,14 @@ I add a comment and delete it
67
67
Input Text id=form-widgets-comment-text This is a comment
68
68
Click Button Comment
69
69
Go To ${PLONE_URL } /@@moderate-comments?review_state=all
70
- Wait Until Element Is Enabled css=option[value=delete]
70
+ Wait Until Element Is Visible css=option[value=delete]
71
71
Wait Until Keyword Succeeds 5x 1s Select And Check xpath://select[@name='form.select.BulkAction'] delete
72
+ Wait Until Element Is Visible css=[name=check_all]
73
+ Wait Until Element Is Enabled css=[name=check_all]
74
+ Wait Until Element Is Visible css=[name="paths:list"]
75
+ Wait Until Element Is Enabled css=[name="paths:list"]
72
76
Select Checkbox name=check_all
73
- Sleep 1s
74
- # FIXME: Capture screen to debug. Must be removed when the test is fixed.
75
- Capture Page Screenshot
77
+ Wait Until Element Is Visible css=[name="paths:list"]:checked
76
78
Wait For Then Click Element css=button[name="form.button.BulkAction"]
77
79
Wait Until Page Does Not Contain This is a comment
78
80
You can’t perform that action at this time.
0 commit comments