From: Timo S. <svn...@pl...> - 2013-03-31 14:59:16
|
Repository: Products.CMFPlone Branch: refs/heads/4.3.x Date: 2013-03-31T07:58:50-07:00 Author: Timo Stollenwerk (tisto) <co...@ti...> Commit: https://github.com/plone/Products.CMFPlone/commit/e5b917ac36c8c522df6ed00f62b20684b9b992e5 Remove setup/teardown; make portlet check more robust; Make test pass with Chrome. Files changed: M Products/CMFPlone/tests/robot/test_portlets.robot diff --git a/Products/CMFPlone/tests/robot/test_portlets.robot b/Products/CMFPlone/tests/robot/test_portlets.robot index 595b9a9..3ed34cf 100644 --- a/Products/CMFPlone/tests/robot/test_portlets.robot +++ b/Products/CMFPlone/tests/robot/test_portlets.robot @@ -24,16 +24,8 @@ Scenario: Add Calendar Portlet Then I should see a 'Calendar' portlet in the left column - *** Keywords *** -Suite Setup - Open browser ${PLONE_URL} browser=${BROWSER} remote_url=${REMOTE_URL} desired_capabilities=${DESIRED_CAPABILITIES} - Given a site owner - -Suite Teardown - Close All Browsers - a manage portlets view Go to ${PLONE_URL}/@@manage-portlets @@ -52,9 +44,11 @@ when I delete the '${portlet}' portlet from the right column Wait until keyword succeeds 1s 10s Flex Element Should not exist xpath=//div[@id="portal-column-two"]//div[@class="portletHeader" and contains(.,"${portlet}")] I should see a '${portletname}' portlet in the left column + Wait until page contains ${portletname} Element should contain portal-column-one ${portletname} I should see a '${portletname}' portlet in the right column + Wait until page contains ${portletname} Element should contain portal-column-two ${portletname} I should not see '${text}' in the left column |