Commit 7567efe0 authored by Jérome Perrin's avatar Jérome Perrin

Update functional tests after new folder workflow action behaviour

parent 4a1af9c8
......@@ -93,60 +93,60 @@
Validated Foo -->\n
<tr>\n
<td>assertText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>//span[@class="listbox-current-page-total-number workflow_action_listbox-current-page-total-number"]</td>\n
<td>2 records</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[1]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[1]/a</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[2]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[2]/a</td>\n
<td>Foo</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[3]/a</td>\n
<td>Draft</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[4]/a</td>\n
<td>Foo Workflow</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>label=Validate Action</td>\n
</tr>\n
\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[1]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-1 DataB\']/td[1]/a</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[2]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-1 DataB\']/td[2]/a</td>\n
<td>Foo</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-1 DataB\']/td[3]/a</td>\n
<td>Validated</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[4]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-1 DataB\']/td[4]/a</td>\n
<td>Foo Workflow</td>\n
</tr>\n
\n
<tr>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
<td>click</td>\n
<td>field_your_enable_detail_list</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
......@@ -192,7 +192,7 @@ and the same columns. -->\n
</tr>\n
\n
<tr>\n
<td>assertValue</td>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
</tr>\n
......@@ -232,8 +232,7 @@ script. -->\n
\n
\n
</body>\n
</html>\n
</html>
]]></unicode> </value>
</item>
......
......@@ -98,47 +98,51 @@
<!-- we have a listbox with 1 line, for 1 Draft Foo -->\n
<tr>\n
<td>assertText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>//span[@class="listbox-current-page-total-number workflow_action_listbox-current-page-total-number"]</td>\n
<td>1 records</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[1]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[1]/a</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[2]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[2]/a</td>\n
<td>Foo</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[3]/a</td>\n
<td>Draft</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[4]/a</td>\n
<td>Foo Workflow</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>label=Validate Action</td>\n
</tr>\n
\n
<tr>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
<td>click</td>\n
<td>field_your_enable_detail_list</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_callDialogMethod:method</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
......@@ -184,8 +188,7 @@ This is the same script as Filtered Selection\n
\n
\n
</body>\n
</html>\n
</html>
]]></unicode> </value>
</item>
......
......@@ -40,12 +40,12 @@
xmlns:metal="http://xml.zope.org/namespaces/metal">\n
<head>\n
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
<title>Test Folder Workflow Action, multiple actions</title>\n
<title>Test Folder Workflow Action With a Custom Workflow Dialog</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Test Folder Workflow Action, multiple actions</td></tr>\n
<tr><td rowspan="1" colspan="3">Test Folder Workflow Action With a Custom Workflow Dialog</td></tr>\n
</thead><tbody>\n
<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n
<tr>\n
......@@ -93,65 +93,60 @@
Validated Foo -->\n
<tr>\n
<td>assertText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>//span[@class="listbox-current-page-total-number workflow_action_listbox-current-page-total-number"]</td>\n
<td>2 records</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[1]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[1]/a</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[2]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[2]/a</td>\n
<td>Foo</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[3]/a</td>\n
<td>Draft</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[4]/a</td>\n
<td>Foo Workflow</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>label=Validate Action</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>label=Custom Dialog Action</td>\n
</tr>\n
\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[1]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-1 DataB\']/td[1]/a</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[2]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-1 DataB\']/td[2]/a</td>\n
<td>Foo</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[3]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-1 DataB\']/td[3]/a</td>\n
<td>Validated</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[4]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-1 DataB\']/td[4]/a</td>\n
<td>Foo Workflow</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[5]/select</td>\n
<td>label=Invalidate Action</td>\n
</tr>\n
\n
<tr>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
<td>click</td>\n
<td>field_your_enable_detail_list</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
......@@ -160,16 +155,14 @@ Validated Foo -->\n
<td></td>\n
</tr>\n
\n
<!-- Now we are on a listbox showing *all* documents we are about to process.\n
Note that if a document cannot be processed, it\'s not shown in this list\n
<!-- Now we have the custom dialog, plus a listbox with the documents we are\n
modifying.\n
-->\n
<tr>\n
<td>assertText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>3 records</td>\n
<td>2 records</td>\n
</tr>\n
<!-- This listbox is a proxy to the module listbox, so it has the same title\n
and the same columns. -->\n
<tr>\n
<td>assertText</td>\n
<td>//a[@class="listbox_title"]</td>\n
......@@ -178,39 +171,37 @@ and the same columns. -->\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[2]</td>\n
<td>Title 1</td>\n
<td>Title 2</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]</td>\n
<td>Invalidate Action</td>\n
<td>Custom Dialog Action</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[2]</td>\n
<td>Title 2</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[4]</td>\n
<td>Validate Action</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-2 DataA\']/td[2]</td>\n
<td>Title 3</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-2 DataA\']/td[4]</td>\n
<td>Validate Action</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[4]</td>\n
<td>Custom Dialog Action</td>\n
</tr>\n
\n
<tr>\n
<td>assertValue</td>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
</tr>\n
\n
<!-- this field only exist in our custom dialog for this workflow action. -->\n
<tr>\n
<td>type</td>\n
<td>field_your_custom_workflow_variable</td>\n
<td>Custom Workflow Variable</td>\n
</tr>\n
\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_callDialogMethod:method</td>\n
......@@ -236,7 +227,7 @@ and the same columns. -->\n
script. -->\n
<tr>\n
<td>open</td>\n
<td>${base_url}/foo_module/Zuite_testFolderWorkflowActionMultipleActionsCheckWorkflowHistory</td>\n
<td>${base_url}/foo_module/Zuite_testFolderWorkflowActionCheckCustomDialogWorkflowHistory</td>\n
<td></td>\n
</tr>\n
<tr>\n
......@@ -247,8 +238,7 @@ script. -->\n
\n
\n
</body>\n
</html>\n
</html>
]]></unicode> </value>
</item>
......@@ -262,7 +252,7 @@ script. -->\n
</item>
<item>
<key> <string>id</string> </key>
<value> <string>testFolderWorkflowActionMultipleActions</string> </value>
<value> <string>testFolderWorkflowActionCustomDialog</string> </value>
</item>
<item>
<key> <string>output_encoding</string> </key>
......
......@@ -133,7 +133,7 @@
<td>2 records</td>\n
</tr>\n
\n
<!-- Change Stat of this element list -->\n
<!-- Change State of this element list -->\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
......@@ -143,40 +143,39 @@
<!-- we have a listbox with 1 line for 2 Draft Foos -->\n
<tr>\n
<td>assertText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>//span[@class="listbox-current-page-total-number workflow_action_listbox-current-page-total-number"]</td>\n
<td>1 records</td>\n
</tr>\n
<!-- It\'s the number of element which will be validate -->\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[1]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[1]/a</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[2]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[2]/a</td>\n
<td>Foo</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[3]/a</td>\n
<td>Draft</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[4]/a</td>\n
<td>Foo Workflow</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>label=Validate Action</td>\n
</tr>\n
\n
<tr>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
<td>click</td>\n
<td>field_your_enable_detail_list</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
......@@ -222,7 +221,7 @@ and the same columns. -->\n
<td>Validate Action</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
</tr>\n
......
......@@ -103,41 +103,35 @@
<!-- we have a listbox with 1 line, for 1 Draft Foo -->\n
<tr>\n
<td>assertText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>//span[@class="listbox-current-page-total-number workflow_action_listbox-current-page-total-number"]</td>\n
<td>1 records</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[1]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[1]/a</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[2]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[2]/a</td>\n
<td>Foo</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[3]/a</td>\n
<td>Draft</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[4]/a</td>\n
<td>Foo Workflow</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>label=Validate Action</td>\n
</tr>\n
\n
<tr>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
</tr>\n
\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_callDialogMethod:method</td>\n
......@@ -145,9 +139,15 @@
</tr>\n
\n
<tr>\n
<td>assertText</td>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
</tr>\n
\n
<tr>\n
<td>assertElementNotPresent</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>1 records</td>\n
<td>We did not check the "display detailed list" checkbox, so we don\'t have a listbox here</td>\n
</tr>\n
\n
<tr>\n
......
......@@ -105,39 +105,39 @@
<!-- we have a listbox with 1 line, for 1 Draft Foo -->\n
<tr>\n
<td>assertText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>//span[@class="listbox-current-page-total-number workflow_action_listbox-current-page-total-number"]</td>\n
<td>1 records</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[1]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[1]/a</td>\n
<td>1</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[2]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[2]/a</td>\n
<td>Foo</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[3]/a</td>\n
<td>Draft</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/a</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[4]/a</td>\n
<td>Foo Workflow</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>label=Validate Action</td>\n
</tr>\n
\n
<tr>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
<td>click</td>\n
<td>field_your_enable_detail_list</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
......@@ -152,6 +152,12 @@
<td>1 records</td>\n
</tr>\n
\n
<tr>\n
<td>type</td>\n
<td>field_your_comment</td>\n
<td>Comment !</td>\n
</tr>\n
\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_callDialogMethod:method</td>\n
......@@ -191,8 +197,7 @@ This is the same script as Filtered Selection\n
\n
\n
</body>\n
</html>\n
</html>
]]></unicode> </value>
</item>
......
......@@ -40,12 +40,12 @@
xmlns:metal="http://xml.zope.org/namespaces/metal">\n
<head>\n
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">\n
<title>Test Folder Workflow Action, multiple actions in invert mode</title>\n
<title>Test Folder Workflow Action With Nothing Selected</title>\n
</head>\n
<body>\n
<table cellpadding="1" cellspacing="1" border="1">\n
<thead>\n
<tr><td rowspan="1" colspan="3">Test Folder Workflow Action, multiple actions in invert mode</td></tr>\n
<tr><td rowspan="1" colspan="3">Test Folder Workflow Action With Nothing Selected</td></tr>\n
</thead><tbody>\n
<tal:block metal:use-macro="here/PTZuite_CommonTemplate/macros/init" />\n
<tr>\n
......@@ -84,158 +84,87 @@
<td></td>\n
</tr>\n
\n
<!--select everything, and then this test is the same that\n
testFolderWorkflowActionInvertModeMultipleActions -->\n
\n
<!-- first case, the user select nothing -->\n
<tr>\n
<td>click</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[1]/input</td>\n
<td></td>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>Change State</td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//tr[@class=\'listbox-data-line-1 DataB\']/td[1]/input</td>\n
<td>clickAndWait</td>\n
<td>Base_callDialogMethod:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>click</td>\n
<td>//tr[@class=\'listbox-data-line-2 DataA\']/td[1]/input</td>\n
<td>assertPortalStatusMessage</td>\n
<td>You must select one action.</td>\n
<td></td>\n
</tr>\n
\n
<!-- second case, the user select two actions, this is not possible -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>Folder_filter:method</td>\n
<td>open</td>\n
<td tal:content="string: ${here/portal_url}/foo_module/view">/erp5/foo_module/view</td>\n
<td></td>\n
</tr>\n
\n
<tr>\n
<td>selectAndWait</td>\n
<td>select_action</td>\n
<td>Change State</td>\n
</tr>\n
\n
<!-- we have a listbox with 2 lines, one for 2 Draft Foos, the other for 1\n
Validated Foo -->\n
<tr>\n
<td>assertText</td>\n
<td>//span[@class="listbox-current-page-total-number"]</td>\n
<td>2 records</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[1]/a</td>\n
<td>2</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[2]/a</td>\n
<td>Foo</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[3]/a</td>\n
<td>Draft</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[4]/a</td>\n
<td>Foo Workflow</td>\n
</tr>\n
<tr>\n
<td>select</td>\n
<td>//tr[@class=\'listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>//tr[@class=\'workflow_action_listbox-data-line-0 DataA\']/td[5]/select</td>\n
<td>label=Validate Action</td>\n
</tr>\n
\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@class=\'listbox-