From: Timo S. <svn...@pl...> - 2013-03-31 05:59:23
|
Repository: Products.CMFPlone Branch: refs/heads/4.3.x Date: 2013-03-30T22:58:19-07:00 Author: Timo Stollenwerk (tisto) <co...@ti...> Commit: https://github.com/plone/Products.CMFPlone/commit/d70a97bbb64eeb475fa132ef6eef3e250f77dc3f Remove acceptance test folder. Files changed: D Products/CMFPlone/tests/acceptance/__init__.txt D Products/CMFPlone/tests/acceptance/action-menu.txt D Products/CMFPlone/tests/acceptance/baseOverlays.txt D Products/CMFPlone/tests/acceptance/edit.txt D Products/CMFPlone/tests/acceptance/folder_contents.txt D Products/CMFPlone/tests/acceptance/livesearch.txt D Products/CMFPlone/tests/acceptance/login_overlay.txt D Products/CMFPlone/tests/acceptance/plone.txt D Products/CMFPlone/tests/acceptance/portlets.txt diff --git a/Products/CMFPlone/tests/acceptance/__init__.txt b/Products/CMFPlone/tests/acceptance/__init__.txt deleted file mode 100644 index ee656ab..0000000 --- a/Products/CMFPlone/tests/acceptance/__init__.txt +++ /dev/null @@ -1,5 +0,0 @@ -*** Settings *** -Resource plone.txt - -Suite Setup Start browser and wake Plone up -Suite Teardown Close browser and selenium server diff --git a/Products/CMFPlone/tests/acceptance/action-menu.txt b/Products/CMFPlone/tests/acceptance/action-menu.txt deleted file mode 100644 index 0851877..0000000 --- a/Products/CMFPlone/tests/acceptance/action-menu.txt +++ /dev/null @@ -1,96 +0,0 @@ -*** Settings *** -Resource plone.txt - -Suite setup Setup -Suite teardown Remove Document and Folder - -Test setup - -*** Test cases *** - - -Content Menu - [Tags] action-menu - Click Link Home - Click Link An actionsmenu page - Element Should Not Be Visible css=a#delete - Click Link css=dl#plone-contentmenu-actions dt.actionMenuHeader a - Element Should Be Visible css=a#delete - Click Link css=dl#plone-contentmenu-actions dt.actionMenuHeader a - Element Should Not Be Visible css=a#delete - -Switching Actions Menu - [Tags] action-menu - Click Link link=An actionsmenu page - Element Should Not Be Visible css=a#delete - Element Should Not Be Visible css=a#advanced - Click Link css=dl#plone-contentmenu-actions dt.actionMenuHeader a - Element Should Be Visible css=a#delete - Element Should Not Be Visible css=a#advanced - Mouse Over css=dl#plone-contentmenu-workflow dt.actionMenuHeader a - Element Should Not Be Visible css=a#delete - Element Should Be Visible css=a#advanced - Mouse Over css=dl#plone-contentmenu-actions dt.actionMenuHeader a - Element Should Be Visible css=a#delete - Element Should Not Be Visible css=a#advanced - Click Link css=dl#plone-contentmenu-actions dt.actionMenuHeader a - Element Should Not Be Visible css=a#delete - Element Should Not Be Visible css=a#advanced - -Clicking outside of Actions Menu - [Tags] action-menu - Click Link link=An actionsmenu page - Element Should Not Be Visible css=a#delete - Element Should Not Be Visible css=a#advanced - Click Link css=dl#plone-contentmenu-actions dt.actionMenuHeader a - Element Should Be Visible css=a#delete - Element Should Not Be Visible css=a#advanced - Mouse Down css=h1 - Wait until keyword succeeds 10s 1s Element Should Not Be Visible css=a#delete - Element Should Not Be Visible css=a#advanced - -Publish Document - Click Link link=An actionsmenu page - Page Should Contain Element css=dl#plone-contentmenu-workflow dt.actionMenuHeader a span.state-private - Open Workflow Menu - Click Link link=Publish - Page Should Contain Element css=dl#plone-contentmenu-workflow dt.actionMenuHeader a span.state-published - Open Workflow Menu - Click Link link=Send back - Page Should Contain Element css=dl#plone-contentmenu-workflow dt.actionMenuHeader a span.state-private - -Copy Document - Click Link An actionsmenu page - Open Action Menu - Click Link link=Copy - Wait until keyword succeeds 10s 1s Page Should Contain An actionsmenu page copied. - Click Link An actionsmenu folder - Open Action Menu - Click Link link=Paste - Wait until keyword succeeds 10s 1s Page Should Contain Item(s) pasted. - Click Link link=Contents - Xpath Should Match X Times //table[@id = 'listing-table']/tbody/tr 1 - Click Button Paste - Xpath Should Match X Times //table[@id = 'listing-table']/tbody/tr 2 - - -*** Keywords *** - - -Setup - Log in admin admin - Go to homepage - Add Page An actionsmenu page - Go to homepage - Create Folder - -Create Folder - Click Link css=li#portaltab-index_html a - Click Link Folder - Input Text title An actionsmenu folder - Click Button Save - -Remove Document and Folder - Remove Content an-actionsmenu-page - Remove Content an-actionsmenu-folder - diff --git a/Products/CMFPlone/tests/acceptance/baseOverlays.txt b/Products/CMFPlone/tests/acceptance/baseOverlays.txt deleted file mode 100644 index 6423278..0000000 --- a/Products/CMFPlone/tests/acceptance/baseOverlays.txt +++ /dev/null @@ -1,65 +0,0 @@ -*** Settings *** -Resource plone.txt - -Suite setup - -Test setup - -*** Test cases *** - -Base Overlay Tests - Check close on click off form - Check close on click close - - Check login by popup admin admin - -*** Keywords *** - -Check close on click off form - Goto homepage - Click Link Contact - Overlay should open - Page should contain Contact form - Click Element css=#exposeMask - Overlay should close on same page - Page should not contain Contact form - -Check close on click close - Goto homepage - Click Link Contact - Overlay should open - Page should contain Contact form - Click Element css=div.overlay div.close - Overlay should close on same page - Page should not contain Contact form - -Check login by popup - [Arguments] ${userid} ${password} - Confirm not logged in - Click Element id=personaltools-login - Overlay should open - Page should contain Login Name - Page should contain Password - Input text __ac_name ${userid} - Input text __ac_password ${password} - Click Button name=submit - Confirm logged in - Page should not contain element css=div.overlay - - - - -Overlay should open - Wait until keyword succeeds 1 5 Element Should Be Visible id=exposeMask - Element should be visible css=div.overlay - Element should be visible css=div.overlay div.close - -Overlay should close on same page - Wait until keyword succeeds 1 5 Element Should Not Be Visible id=exposeMask - Wait until keyword succeeds 1 5 Page should not contain element css=div.overlay - -Confirm not logged in - Wait until keyword succeeds 1 5 Page should not contain id=user-name - -Confirm logged in - Wait until keyword succeeds 1 5 Page should contain element id=user-name diff --git a/Products/CMFPlone/tests/acceptance/edit.txt b/Products/CMFPlone/tests/acceptance/edit.txt deleted file mode 100644 index 4dc565e..0000000 --- a/Products/CMFPlone/tests/acceptance/edit.txt +++ /dev/null @@ -1,97 +0,0 @@ -*** Settings *** -Resource plone.txt - -Suite setup Setup - -Suite teardown Remove Editing Pages - -*** Test cases *** - -Edit document - [Tags] edit - Click Link css=li#contentview-edit a - Element Should Be Visible css=input#title - Element Should Be Visible css=fieldset#fieldset-default - Element Should Not Be Visible css=textarea#subject_keywords - Element Should Not Be Visible css=fieldset#fieldset-dates - Element Should Not Be Visible css=fieldset#fieldset-categorization - -Select categorization tab - [Tags] edit - Click Link css=li#contentview-edit a - Click link css=a#fieldsetlegend-categorization - Element Should Not Be Visible css=fieldset#fieldset-default - Element Should Be Visible css=textarea#subject_keywords - Element Should Not Be Visible css=fieldset#fieldset-dates - Element Should Be Visible css=fieldset#fieldset-categorization - -Select settings tab - [Tags] edit - Click Link css=li#contentview-edit a - Click link css=a#fieldsetlegend-settings - Element Should Not Be Visible css=fieldset#fieldset-default - Element Should Not Be Visible css=textarea#subject_keywords - Element Should Not Be Visible css=fieldset#fieldset-dates - Element Should Be Visible css=fieldset#fieldset-settings - - -Test relationship - [Tags] edit - Click Link css=li#portaltab-an-edit-test-page a - Click Link css=li#contentview-edit a - Click link css=a#fieldsetlegend-categorization - Click Button css=input.addreference - Wait Until Page Contains Element css=input.insertreference - Click Element css=input.insertreference - Wait until keyword succeeds 10s 1s Xpath Should Match X Times //ul[@id = 'ref_browser_relatedItems']/descendant::input 1 - Click Element css=div.close - Click Button Save - Xpath Should Match X Times //dl[@id = 'relatedItemBox']/dd 1 - -Test DateTime widget - [Tags] edit - Click Link css=li#portaltab-an-edit-test-page a - Click Link css=li#contentview-edit a - Click link css=a#fieldsetlegend-dates - Select From List css=select#edit_form_effectiveDate_0_year 2001 - Select From List css=select#edit_form_effectiveDate_0_month January - Select From List css=select#edit_form_effectiveDate_0_day 01 - Select From List css=select#edit_form_effectiveDate_0_hour 01 - Select From List css=select#edit_form_effectiveDate_0_minute 00 - Select From List css=select#edit_form_effectiveDate_0_ampm AM - Click Element css=span#edit_form_effectiveDate_0_popup - Element Should Be Visible css=div.calendar - Element Text Should Be css=div.calendar thead td.title January, 2001 - Mouse Down xpath=//div[@class='calendar']/table/thead/tr[2]/td[4]/div - Mouse Up xpath=//div[@class='calendar']/table/thead/tr[2]/td[4]/div - Wait until keyword succeeds 10s 1s Element Text Should Be css=div.calendar thead td.title February, 2001 - Mouse Down xpath=//div[@class='calendar']/table/thead/tr[2]/td[5]/div - Mouse Up xpath=//div[@class='calendar']/table/thead/tr[2]/td[5]/div - Element Text Should Be css=div.calendar thead td.title February, 2002 - Click Button Save - Click Link css=span#content-history a.link-overlay - Wait until keyword succeeds 10s 1s Click Link xpath=//div/a[@class='historyComparePrevious'] - Wait Until Page Contains Show differences - Select Radio Button diffstyle code - Page Should Contain 2002/02/01 01:00:00 - - -*** Keywords *** -Setup - Log in admin admin - Create Editing Pages - -Create Editing Pages - - Go to homepage - Add Page An edit test page - Go to homepage - Add Page A related test page - -Remove Editing Pages - - Remove Content an-edit-test-page - Remove Content a-related-test-page - - - diff --git a/Products/CMFPlone/tests/acceptance/folder_contents.txt b/Products/CMFPlone/tests/acceptance/folder_contents.txt deleted file mode 100644 index 3dae800..0000000 --- a/Products/CMFPlone/tests/acceptance/folder_contents.txt +++ /dev/null @@ -1,168 +0,0 @@ -*** Settings *** -Resource plone.txt - -Suite setup Setup - -Suite teardown Remove Pages - -*** Variables *** - -${SELECT_ALL} = css=#foldercontents-selectall -${CLEAR_SELECTION} = css=#foldercontents-clearselection - -*** Test cases *** - -Test Select All - Go to homepage - Click Contents In Edit Bar - - # We have 4 pages on Plone site's root - Page Should Contain Element ${SELECT_ALL} - Click Element ${SELECT_ALL} - Page Should Contain All 4 items in this folder are selected. - Page Should Contain Element ${CLEAR_SELECTION} - Click Element ${CLEAR_SELECTION} - Page Should Contain Element ${SELECT_ALL} - - # XXX: There's a bug in the implementation of this: if I select all items - # and then I click on one checkbox, I have no longer selected all items - # ergo, I must see the Select All link again, but that is not happening - Click Element ${SELECT_ALL} - Select Checkbox css=#cb_test1 - Page Should Contain Element ${SELECT_ALL} - -Copy Paste Element - Go to homepage - Click Contents In Edit Bar - - Select Checkbox css=#cb_test1 - Click Button Copy - Page Should Contain 1 item(s) copied. - Click Button Paste - Page Should Contain Element css=#folder-contents-item-copy_of_test1 - -Cut Paste Element - Go to homepage - Click Contents In Edit Bar - - Select Checkbox css=#cb_test1 - Click Button Cut - Page Should Contain 1 item(s) cut. - Click Button Paste - Page Should Contain Element css=#folder-contents-item-test1 - -Test Rename Element - Go to homepage - Click Contents In Edit Bar - - Select Checkbox css=#cb_test1 - Click Button Rename - Input Text css=#test1_title TEST1 - Click Button Rename All - Page Should Contain TEST1 - -Delete Element - Go to homepage - Click Contents In Edit Bar - - Select Checkbox css=#cb_copy_of_test1 - Click Button Delete - Page Should Contain Item(s) deleted. - Page Should Not Contain Element css=#folder-contents-item-copy_of_test1 - -Test Change Element State - Go to homepage - Click Contents In Edit Bar - - Select Checkbox css=#cb_test1 - Click Button Change State - Select Radio Button workflow_action publish - Click Button Save - Page Should Contain Published - -Reorder Folder Contents - Go to homepage - Click Contents In Edit Bar - - # Original order - Should be above css=tr#folder-contents-item-test1 css=tr#folder-contents-item-test2 - Should be above css=tr#folder-contents-item-test2 css=tr#folder-contents-item-test3 - Should be above css=tr#folder-contents-item-test3 css=tr#folder-contents-item-test4 - - # Moving items could fail on a fast computer - Set Selenium Speed 0.1 seconds - - # Moves the test2 page above the test1 page - Reorder Element folder-contents-item-test1 folder-contents-item-test2 - - # Moves the test4 page above the test2 page - Reorder Element folder-contents-item-test4 folder-contents-item-test3 - Reorder Element folder-contents-item-test4 folder-contents-item-test1 - Reorder Element folder-contents-item-test4 folder-contents-item-test2 - - # Moves the test3 page above the test2 page - Reorder Element folder-contents-item-test3 folder-contents-item-test1 - Reorder Element folder-contents-item-test3 folder-contents-item-test2 - - # Go back to normal speed - Set Selenium Speed 0 seconds - - # The new order is 4 > 3 > 2 > 1 - Should be above css=tr#folder-contents-item-test4 css=tr#folder-contents-item-test3 - Should be above css=tr#folder-contents-item-test3 css=tr#folder-contents-item-test2 - Should be above css=tr#folder-contents-item-test2 css=tr#folder-contents-item-test1 - - # Moving items could fail on a fast computer - Set Selenium Speed 0.1 seconds - - # Moves the test1 page above the test4 page - Reorder Element folder-contents-item-test1 folder-contents-item-test2 - Reorder Element folder-contents-item-test1 folder-contents-item-test3 - Reorder Element folder-contents-item-test1 folder-contents-item-test4 - - # Moves the test2 page above the test4 page - Reorder Element folder-contents-item-test2 folder-contents-item-test3 - Reorder Element folder-contents-item-test2 folder-contents-item-test4 - - # Moves the test3 page above the test4 page - Reorder Element folder-contents-item-test3 folder-contents-item-test4 - - # Go back to normal speed - Set Selenium Speed 0 seconds - - # Original order - Should be above css=tr#folder-contents-item-test1 css=tr#folder-contents-item-test2 - Should be above css=tr#folder-contents-item-test2 css=tr#folder-contents-item-test3 - Should be above css=tr#folder-contents-item-test3 css=tr#folder-contents-item-test4 - -*** Keywords *** - -Setup - Log in admin admin - Create Pages - -Create Pages - Go to homepage - Add Page test1 - Go to homepage - Add Page test2 - Go to homepage - Add Page test3 - Go to homepage - Add Page test4 - Go to homepage - -Remove Pages - Remove Content test1 - Remove Content test2 - Remove Content test3 - Remove Content test4 - -Reorder Element - [arguments] ${element} ${destination} - - Mouse Down css=#${element} td.draggable - Mouse Move css=#${destination} td.draggable - Mouse Up css=#${element} td.draggable - Mouse Out css=#${element} td.draggable - diff --git a/Products/CMFPlone/tests/acceptance/livesearch.txt b/Products/CMFPlone/tests/acceptance/livesearch.txt deleted file mode 100644 index 6b39ae2..0000000 --- a/Products/CMFPlone/tests/acceptance/livesearch.txt +++ /dev/null @@ -1,82 +0,0 @@ -*** Settings *** -Resource plone.txt - -Suite setup Setup - -Suite teardown Remove Pages and Folder - -*** Test cases *** - - -Livesearch For pages - [Tags] livesearch justthis - Click Link Home - Count Livesearch Items For livesearch test page 4 - -Livesearch For folder - [Tags] livesearch - Click Link Home - Count Livesearch Items For livesearch test folder 2 - -Livesearch Within folder - [Tags] livesearch - Click Link Home - Click Link A livesearch test folder - Select Checkbox css=input#searchbox_currentfolder_only - Count Livesearch Items For livesearch test page 3 - - -*** Keywords *** - -Setup - Log in admin admin - Create Pages and Folder - -Create Pages and Folder - Go to homepage - Add Page A livesearch test page - Go to homepage - Create Folder - Add Page A livesearch test page 1 - Go to ${PLONE_URL}/a-livesearch-test-folder - Add Page A livesearch test page 2 - -Create Folder - Click Link css=li#portaltab-index_html a - Click Link Folder - Input Text title A livesearch test folder - Click Button Save - - -Remove Pages and Folder - Remove Content a-livesearch-test-page - Remove Content a-livesearch-test-folder - -Delete Document - Click Link A livesearch test page - Element Should Not Be Visible css=a#delete - Open Action Menu - Element Should Be Visible css=a#delete - Click Overlay Link link=Delete - Page Should Contain Do you really want to delete this item? - Click Button css=form#delete_confirmation input.destructive - -Delete Folder - Click Link A livesearch test folder - Element Should Not Be Visible css=a#delete - Click Link css=dl#plone-contentmenu-actions dt.actionMenuHeader a - Element Should Be Visible css=a#delete - Click Overlay Link link=Delete - Page Should Contain Do you really want to delete this folder and all its contents? - Click Button css=form#delete_confirmation input.destructive - -Count Livesearch Items For - [Arguments] ${string} ${count} - Focus css=input#searchGadget - Input Text css=input#searchGadget ${string} - Key Down css=input#searchGadget e - Key Up css=input#searchGadget e - Wait until keyword succeeds 5s 1s Element Should Be Visible css=div#LSResult - Wait until keyword succeeds 5s 1s Xpath Should Match X Times //div[@id = 'LSResult']/descendant::li ${count} - Focus css=input#searchbox_currentfolder_only - Wait until keyword succeeds 5s 1s Element Should Not Be Visible css=div#LSResult diff --git a/Products/CMFPlone/tests/acceptance/login_overlay.txt b/Products/CMFPlone/tests/acceptance/login_overlay.txt deleted file mode 100644 index 9eb0237..0000000 --- a/Products/CMFPlone/tests/acceptance/login_overlay.txt +++ /dev/null @@ -1,67 +0,0 @@ -*** Settings *** -Resource plone.txt - -Suite setup - -Test setup Log out - - -*** Variables *** - -${overlay_login_selector} = css=div.overlay-ajax form#login_form -${overlay_login_submit_selector} = ${overlay_login_selector} input[name="submit"] -${exposemask_selector} = css=#exposeMask -${personaltools_login_selector} = css=#personaltools-login -${personaltools_logout_selector} = css=#personaltools-logout -${portalmessage_error_selector} = css=dl.portalMessage.error - - -*** Test cases *** - -OpenLoginOverlay - # test that click on log-in opens overlay - Open login overlay - Wait Until Page Contains Element ${overlay_login_selector} - Wait Until Page Contains Element ${exposemask_selector} - -OpenCloseLoginOverlay - Open login overlay - - # clicking anywhere else should close overlay - Wait Until Page Contains Element ${exposemask_selector} - Click Element ${exposemask_selector} - Wait until keyword succeeds 1 5 Page Should Contain Element ${overlay_login_selector} - #Page Should Contain Element ${overlay_login_selector} - -SubmitEmptyLogin - Open login overlay - - # click on empty form submit - Wait Until Page Contains Element ${overlay_login_submit_selector} - Click Button ${overlay_login_submit_selector} - - # Error message must appear - Wait Until Page Contains Element ${portalmessage_error_selector} - Wait Until Page Contains Error - -SubmitLogin - Open login overlay - - Page should contain element __ac_name - Input text __ac_name admin - Input text __ac_password admin - Click Button Log in - - Wait Until Page Contains Element ${personaltools_logout_selector} - - # overlay should be gone - Wait until keyword succeeds 1 5 Page Should Not Contain Element ${overlay_login_selector} - #Page Should Not Contain Element ${overlay_login_selector} - - -*** Keywords *** - -Open login overlay - Click Element ${personaltools_login_selector} - Wait until keyword succeeds 1 5 Page Should Contain Element ${overlay_login_selector} - #Page Should Contain Element ${overlay_login_selector} diff --git a/Products/CMFPlone/tests/acceptance/plone.txt b/Products/CMFPlone/tests/acceptance/plone.txt deleted file mode 100644 index 9990dfe..0000000 --- a/Products/CMFPlone/tests/acceptance/plone.txt +++ /dev/null @@ -1,133 +0,0 @@ -*** Settings *** -Library Selenium2Library timeout=0 seconds implicit_wait=10 seconds - -*** Variables *** - -${PORT} = 8080 -${ZOPE_URL} = http://localhost:${PORT} -${PLONE_URL} = ${ZOPE_URL}/Plone -${BROWSER} = Firefox - -*** Keywords *** - -Start browser and wake plone up - -# Start selenium server - - Set Selenium timeout 3s - - ${previous} Register keyword to run on failure Close Browser - Wait until keyword succeeds 2min 3s Open Browser ${ZOPE_URL} browser=${BROWSER} - Register keyword to run on failure ${previous} - - Maximize browser window - - Set Selenium timeout 30s - Wait until keyword succeeds 30s 1s Log in admin admin - Log out - Set Selenium timeout 7s - -Close browser and selenium server - Close browser -# Stop selenium server - -Goto homepage - Go to ${PLONE_URL} - Page should contain Plone site - -Log out - Go to ${PLONE_URL}/logout - Page should contain logged out - -Log in - [Arguments] ${userid} ${password} - Go to ${PLONE_URL}/login_form - Page should contain element __ac_name - Input text __ac_name ${userid} - Input text __ac_password ${password} - Click Button Log in - Go to ${PLONE_URL} - -Click Overlay Link - [Arguments] ${element} - Click Link ${element} - Wait Until Page Contains Element css=div.pb-ajax div#content-core - -Should be above - [Arguments] ${locator1} ${locator2} - - ${locator1-position} = Get vertical position ${locator1} - ${locator2-position} = Get vertical position ${locator2} - Should be true ${locator1-position} < ${locator2-position} - -Open Menu - [Arguments] ${elementId} - - Element Should Not Be Visible css=dl#${elementId} dd.actionMenuContent - Click link css=dl#${elementId} dt.actionMenuHeader a - Wait until keyword succeeds 1 5 Element Should Be Visible css=dl#${elementId} dd.actionMenuContent - -Open User Menu - Open Menu portal-personaltools - -Open Add New Menu - Open Menu plone-contentmenu-factories - -Open Display Menu - Open Menu plone-contentmenu-display - -Open Action Menu - Open Menu plone-contentmenu-actions - -Open Workflow Menu - Open Menu plone-contentmenu-workflow - -Click ${name} In Edit Bar - Element Should Contain css=div#edit-bar ul#content-views ${name} - Click Link ${name} - -Click Actions ${name} - Open Action Menu - Element Should Contain css=dl#plone-contentmenu-actions dd.actionMenuContent ${name} - Click Link ${name} - -Click Cut Action - Click Actions Cut - -Click Copy Action - Click Actions Copy - -Click Delete Action - Click Actions Delete - -Click Rename Action - Click Actions Rename - -Add Page - [arguments] ${title} - - Open Add New Menu - Click Link link=Page - Input Text title ${title} - Click button name=form.button.save - Page Should Contain Changes saved. - -Remove Content - [arguments] ${id} - - Go to ${PLONE_URL}/${id} - Page Should Contain Element css=body.section-${id} - Click Delete Action - Wait Until Page Contains Element css=input.destructive - Click Button css=input.destructive - Page Should Contain Plone site - -Rename Content Title - [arguments] ${id} ${new_title} - - Go to ${PLONE_URL}/${id} - Page Should Contain Element css=body.section-${id} - Click Rename Action - Wait Until Page Contains Element css=input#${id}_id - Input Text css=input#${id}_title ${new_title} - Click Button Rename All diff --git a/Products/CMFPlone/tests/acceptance/portlets.txt b/Products/CMFPlone/tests/acceptance/portlets.txt deleted file mode 100644 index 71732c2..0000000 --- a/Products/CMFPlone/tests/acceptance/portlets.txt +++ /dev/null @@ -1,82 +0,0 @@ -*** Settings *** -Resource plone.txt - -Suite setup - -Test setup Log in admin admin - - -*** Test cases *** - -Add Login Portlet - - Given the view Manage portlets on Plone - when I add the portlet Login to the left column - then I should see Login in the left column - - -Add Calendar Portlet - - Given the view Manage portlets on Plone - when I add the portlet Calendar portlet to the right column - then I should see Calendar portlet in the right column - Given the default view of Plone - then I should see MoTuWeThFrSaSu in the right column - - -Delete A Portlet - - Given the view Manage portlets on Plone - when I delete the portlet Log in from the left column - then I should not see Log in in the left column - Given the view Manage portlets on Plone - when I delete the portlet Calendar from the right column - then I should not see Calendar in the right column - - - - -** Keywords ** - -Given the view ${view} on ${content} - Go to ${content} - Click link ${view} - -Given the default view of ${content} - Goto ${content} - - -when I add the portlet ${portlet} to the left column - Select from list xpath=//div[@id="portletmanager-plone-leftcolumn"]//select ${portlet} - - -when I add the portlet ${portlet} to the right column - Select from list xpath=//div[@id="portletmanager-plone-rightcolumn"]//select ${portlet} - - -when I delete the portlet ${portlet} from the left column - Click Link xpath=//div[@id="portal-column-one"]//div[@class="portletHeader" and contains(.,"${portlet}")]//a[@class="delete"] don't wait - Wait until keyword succeeds 1s 10s Flex Element Should not exist xpath=//div[@id="portal-column-one"]//div[@class="portletHeader" and contains(.,"${portlet}")] - - -when I delete the portlet ${portlet} from the right column - Click Link xpath=//div[@id="portal-column-two"]//div[@class="portletHeader" and contains(.,"${portlet}")]//a[@class="delete"] don't wait - Wait until keyword succeeds 1s 10s Flex Element Should not exist xpath=//div[@id="portal-column-two"]//div[@class="portletHeader" and contains(.,"${portlet}")] - - -then I should see ${text} in the left column - Element should contain portal-column-one ${text} - - -then I should see ${text} in the right column - Element should contain portal-column-two ${text} - - -then I should not see ${text} in the left column - Flex Element should not exist xpath=//div[@id="portal-column-one" and contains(.,"${text}")] - - -then I should not see ${text} in the right column - Flex Element should not exist xpath=//div[@id="portal-column-two" and contains(.,"${text}")] - - |