Skip to content

Commit

Permalink
Fix robot test Add a Comment to a Document and bulk delete it
Browse files Browse the repository at this point in the history
The screenshot shows that the "Select all" checkbox is checked, but the
other checkboxes are not. It may be that the test clicked on "Select
all" before the event that selects all was attached to the checkbox.
Then we wait for the event to be attached before clicking.
  • Loading branch information
wesleybl committed Apr 15, 2024
1 parent bc12809 commit 1f502a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions news/238.internal
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix robot test `Add a Comment to a Document and bulk delete it` 2. @wesleybl
1 change: 1 addition & 0 deletions plone/app/discussion/tests/robot/test_moderation.robot
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ I add a comment and delete it
Wait Until Element Is Enabled css=[name=check_all]
Wait Until Element Is Visible css=[name="paths:list"]
Wait Until Element Is Enabled css=[name="paths:list"]
Wait for Condition return jQuery._data( jQuery('[name=check_all]')[0], "events" ).click.length == 2
Select Checkbox name=check_all
Wait Until Element Is Visible css=[name="paths:list"]:checked
Wait For Then Click Element css=button[name="form.button.BulkAction"]
Expand Down

0 comments on commit 1f502a8

Please sign in to comment.