Commit 8599fdfd authored by Romain Courteaud's avatar Romain Courteaud

Finish testDelete.

It's now check that an object without workflow can be deleted and that an object with a workflow is not modified if it hasn't a delete_action transition.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10382 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent e3e7f53f
...@@ -145,6 +145,134 @@ ...@@ -145,6 +145,134 @@
\t<td>deleted</td>\n \t<td>deleted</td>\n
\t<td></td>\n \t<td></td>\n
</tr>\n </tr>\n
<tr>\n
\t<td>open</td>\n
\t<td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>assertTextPresent</td>\n
\t<td>Done.</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>open</td>\n
\t<td>${base_url}/foo_module/view</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>verifyText</td>\n
\t<td>//tr[@id="listbox_data_line_0"]/td[2]</td>\n
\t<td>0</td>\n
</tr>\n
<tr>\n
\t<td>clickAndWait</td>\n
\t<td>Folder_deleteObjectList:method</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>clickAndWait</td>\n
\t<td>Base_callDialogMethod:method</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>verifyTextPresent</td>\n
\t<td>Sorry You Can Not Delete 1 Item.</td>\n
\t<td></td>\n
</tr>\n
\n
\n
<tr>\n
\t<td>clickAndWait</td>\n
\t<td>link=0</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>selectAndWait</td>\n
\t<td>select_action</td>\n
\t<td>Add Foo Line</td>\n
</tr>\n
<tr>\n
\t<td>clickAndWait</td>\n
\t<td>link=Title 0</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>open</td>\n
\t<td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>assertTextPresent</td>\n
\t<td>Done.</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>open</td>\n
\t<td>${base_url}/foo_module/view</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>clickAndWait</td>\n
\t<td>link=0</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>clickAndWait</td>\n
\t<td>link=Foo Lines:</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>click</td>\n
\t<td>uids:list</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>clickAndWait</td>\n
\t<td>Folder_deleteObjectList:method</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>clickAndWait</td>\n
\t<td>document.forms[0].elements[\'Base_callDialogMethod:method\'][1]</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>verifyTextPresent</td>\n
\t<td>Deleted.</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>clickAndWait</td>\n
\t<td>link=Title 0</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>open</td>\n
\t<td>${base_url}/foo_module/ListBoxZuite_waitForActivities</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>assertTextPresent</td>\n
\t<td>Done.</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>open</td>\n
\t<td>${base_url}/foo_module/view</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>clickAndWait</td>\n
\t<td>link=0</td>\n
\t<td></td>\n
</tr>\n
<tr>\n
\t<td>assertTextPresent</td>\n
\t<td>0 record</td>\n
\t<td></td>\n
</tr>\n
\n
</tbody></table>\n </tbody></table>\n
</body>\n </body>\n
</html>\n </html>\n
......
92 94
\ No newline at end of file \ 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