Commit 0253bd46 authored by Jérome Perrin's avatar Jérome Perrin

Update tests for print actions, they now have a intermediate dialog added automatically

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@18025 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6ae3b946
......@@ -3,11 +3,8 @@
<record id="1" aka="AAAAAAAAAAE=">
<pickle>
<tuple>
<tuple>
<string>Products.PageTemplates.ZopePageTemplate</string>
<string>ZopePageTemplate</string>
</tuple>
<none/>
<global name="ZopePageTemplate" module="Products.PageTemplates.ZopePageTemplate"/>
<tuple/>
</tuple>
</pickle>
<pickle>
......@@ -73,7 +70,7 @@
</tr>\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/portal_types/Foo/PortalType_addAction?id=test_action2&name=Print Portal 2&category=object_print&action=string:%24{portal_url}/view">Create another dummy action that redirects to the portal</td>\n
<td tal:content="string: ${here/portal_url}/portal_types/Foo/PortalType_addAction?id=test_action2&name=Print Portal 2&category=object_print&action=string:%24{portal_url}/view%3Fportal_status_message=This%20was%20second%20action">Create another dummy action that redirects to the portal</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -91,9 +88,24 @@
<td>//select[@name=\'select_dialog\']</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertSelected</td>\n
<td>//select[@name=\'select_dialog\']</td>\n
<td>Print Portal</td>\n
</tr>\n
<tr>\n
<td>selectAndWait</td>\n
<td>//select[@name=\'select_dialog\']</td>\n
<td>label=Print Portal 2</td>\n
</tr>\n
<tr>\n
<td>assertSelected</td>\n
<td>//select[@name=\'select_dialog\']</td>\n
<td>Print Portal 2</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//button[@name=\'Base_doDialog:method\']</td>\n
<td>dialog_submit_button</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -101,6 +113,11 @@
<td>Welcome to ERP5</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertPortalStatusMessage</td>\n
<td>This was second action</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/portal_types/Foo/PortalType_deleteAction?id=test_action"></td>\n
......@@ -111,6 +128,11 @@
<td tal:content="string: ${here/portal_url}/portal_types/Foo/PortalType_deleteAction?id=test_action2"></td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Set Successfully.</td>\n
<td></td>\n
</tr>\n
</body>\n
</html>\n
......
293
\ No newline at end of file
294
\ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment