diff --git a/news/239.internal b/news/239.internal new file mode 100644 index 00000000..f18d4b17 --- /dev/null +++ b/news/239.internal @@ -0,0 +1 @@ +Fix robot test `Add a Comment to a Document and bulk delete it` 3. @wesleybl diff --git a/plone/app/discussion/tests/robot/test_moderation.robot b/plone/app/discussion/tests/robot/test_moderation.robot index c44add7f..ce231e39 100644 --- a/plone/app/discussion/tests/robot/test_moderation.robot +++ b/plone/app/discussion/tests/robot/test_moderation.robot @@ -73,7 +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 + 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"]