Commit 52b7b764 authored by Jérome Perrin's avatar Jérome Perrin

ListBoxZuite_resetReportSelections: Don't fail if selection does not exist.

testCancelWorkflowTransitionDialog:
testHistory: in reports listbox IDs are prefixed, update test

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@23225 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 3030f962
......@@ -127,7 +127,7 @@ workflow history. -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>listbox_record_number</td>\n
<td>x0_listbox_record_number</td>\n
<td>1 record(s)</td>\n
</tr>\n
\n
......
......@@ -137,14 +137,14 @@
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>x0_listbox_record_number</td>\n
<td>4 record(s)</td> <!-- Creation + edited 3 times -->\n
</tr>\n
\n
<!-- First modification --> \n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]/a</td>\n
<td>//tr[@id=\'x0_listbox_data_line_1\']/td[4]/a</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -186,7 +186,7 @@
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_data_line_2\']/td[4]/a</td>\n
<td>//tr[@id=\'x0_listbox_data_line_2\']/td[4]/a</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -245,7 +245,7 @@
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_data_line_3\']/td[4]/a</td>\n
<td>//tr[@id=\'x0_listbox_data_line_3\']/td[4]/a</td>\n
<td></td>\n
</tr>\n
<tr>\n
......
......@@ -67,7 +67,10 @@
<key> <string>_body</string> </key>
<value> <string>manage_deleteSelection = context.getPortalObject().portal_selections.manage_deleteSelection\n
for index in xrange(3):\n
manage_deleteSelection(\'x%s_foo_dummy_listbox_selection\' % (index, ))\n
try:\n
manage_deleteSelection(\'x%s_foo_dummy_listbox_selection\' % (index, ))\n
except KeyError:\n
pass\n
return "Done."\n
</string> </value>
</item>
......@@ -117,6 +120,7 @@ return "Done."\n
<string>_getiter_</string>
<string>xrange</string>
<string>index</string>
<string>KeyError</string>
</tuple>
</value>
</item>
......
380
\ No newline at end of file
381
\ 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