From 63a60101179dc8bcb5b64625ffe6d30078a2b952 Mon Sep 17 00:00:00 2001 From: David Glick Date: Fri, 14 Mar 2014 01:05:07 -0700 Subject: [PATCH] fix robot tests: initially set default page in a way that works with auto-csrf checks --- Products/CMFPlone/tests/robot/test_overlays.robot | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/Products/CMFPlone/tests/robot/test_overlays.robot b/Products/CMFPlone/tests/robot/test_overlays.robot index 39e64b2e3a..ad6b3693a3 100644 --- a/Products/CMFPlone/tests/robot/test_overlays.robot +++ b/Products/CMFPlone/tests/robot/test_overlays.robot @@ -259,7 +259,12 @@ I set the default content view of the test folder a document as the default view of the test folder a document 'doc' in the test folder - Go to ${PLONE_URL}/${TEST_FOLDER}/select_default_page?form.submitted=1&objectId=doc + Go to ${PLONE_URL}/${TEST_FOLDER} + Click link xpath=//li[@id='plone-contentmenu-moreoptions']/a + Wait until element is visible id=contextSetDefaultPage + Click link id=contextSetDefaultPage + Click element id=doc + Click element css=div.modal-footer input[name="form.button.Save"] I change the default content view of the test folder Go to ${PLONE_URL}/${TEST_FOLDER}