Commit 7659f6af authored by Mohamadou Mbengue's avatar Mohamadou Mbengue

2009-08-24 Mohamadou

* Skip testRelationFieldColumnsSort in mobile ui tests
* Update testRelationFieldWheelWithListbox to support mobile ui tests.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28599 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 4ad3e4f3
...@@ -50,6 +50,9 @@ ...@@ -50,6 +50,9 @@
<thead>\n <thead>\n
<tr><td rowspan="1" colspan="3">Test Relation Field with sorting columns</td></tr>\n <tr><td rowspan="1" colspan="3">Test Relation Field with sorting columns</td></tr>\n
</thead><tbody>\n </thead><tbody>\n
<!-- XXX Mobile listbox columns label are not clickable for quick sorting\n
So this test is skipped -->\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tal:block metal:use-macro="here/RelationFieldZuite_CommonTemplate/macros/init" />\n <tal:block metal:use-macro="here/RelationFieldZuite_CommonTemplate/macros/init" />\n
<tr>\n <tr>\n
<td>open</td>\n <td>open</td>\n
...@@ -78,7 +81,7 @@ ...@@ -78,7 +81,7 @@
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
<td>link=Title 0</td>\n <td>link=0</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -366,7 +369,7 @@ ...@@ -366,7 +369,7 @@
<td>//tr[@id="listbox_label_line"]/td[4]/img</td>\n <td>//tr[@id="listbox_label_line"]/td[4]/img</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
\n </tal:block>\n
\n \n
</tbody></table>\n </tbody></table>\n
</body>\n </body>\n
......
...@@ -88,11 +88,20 @@ ...@@ -88,11 +88,20 @@
<td>field_my_quantity</td>\n <td>field_my_quantity</td>\n
<td>x</td>\n <td>x</td>\n
</tr>\n </tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]/input</td>\n <td>//tr[@id=\'listbox_data_line_0\']/td[3]/input</td>\n
<td>y</td>\n <td>y</td>\n
</tr>\n </tr>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<tr>\n
<td>type</td>\n
<td>//*[@id="listbox_0data2"]//input[@type="text"]</td>\n
<td>y</td>\n
</tr>\n
</tal:block>\n
\n \n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
...@@ -106,9 +115,16 @@ ...@@ -106,9 +115,16 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>assertValue</td>\n <td>assertValue</td>\n
<td>//input[@id="listbox_set_page"]</td>\n <td>//input[@id="listbox_set_page"]</td>\n
<td>2</td>\n <td>2</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>10</td>\n
</tal:block>\n
</tr>\n </tr>\n
\n \n
<tr>\n <tr>\n
...@@ -117,9 +133,16 @@ ...@@ -117,9 +133,16 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>assertValue</td>\n <td>assertValue</td>\n
<td>//input[@id="listbox_set_page"]</td>\n <td>//input[@id="listbox_set_page"]</td>\n
<td>3</td>\n <td>3</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>20</td>\n
</tal:block>\n
</tr>\n </tr>\n
\n \n
<tr>\n <tr>\n
...@@ -128,11 +151,19 @@ ...@@ -128,11 +151,19 @@
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>assertValue</td>\n <td>assertValue</td>\n
<td>//input[@id="listbox_set_page"]</td>\n <td>//input[@id="listbox_set_page"]</td>\n
<td>2</td>\n <td>2</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>10</td>\n
</tal:block>\n
</tr>\n </tr>\n
\n \n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
<td>id=listbox_set_page</td>\n <td>id=listbox_set_page</td>\n
...@@ -148,12 +179,24 @@ ...@@ -148,12 +179,24 @@
<td>id=listbox_set_page</td>\n <td>id=listbox_set_page</td>\n
<td>1</td>\n <td>1</td>\n
</tr>\n </tr>\n
\n </tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<tr>\n
<td>select</td>\n
<td>id=listbox_page_selection</td>\n
<td>1 of 19</td>\n
</tr>\n
<tr>\n
<td>assertValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>0</td>\n
</tr>\n
</tal:block>\n
\n \n
\n \n
<tr>\n <tr>\n
<td>click</td>\n <td>click</td>\n
<td>//tr[@id="listbox_data_line_0"]/td[1]/input</td>\n <td>//*[@id=\'listbox_data_line_0\']//input[@type="checkbox"]</td>\n
<td></td>\n <td></td>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
...@@ -177,6 +220,7 @@ ...@@ -177,6 +220,7 @@
<td>field_my_quantity</td>\n <td>field_my_quantity</td>\n
<td>x</td>\n <td>x</td>\n
</tr>\n </tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n <tr>\n
<td>verifyElementPresent</td>\n <td>verifyElementPresent</td>\n
<td>//fieldset[@id=\'fieldset_right\']/div[@class=\'field error\']/span[@class=\'error\']</td>\n <td>//fieldset[@id=\'fieldset_right\']/div[@class=\'field error\']/span[@class=\'error\']</td>\n
...@@ -192,6 +236,25 @@ ...@@ -192,6 +236,25 @@
<td>//tr[@id=\'listbox_data_line_0\']/td[3]/span[@class=\'error\']</td>\n <td>//tr[@id=\'listbox_data_line_0\']/td[3]/span[@class=\'error\']</td>\n
<td/>\n <td/>\n
</tr>\n </tr>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//fieldset[@id=\'fieldset_right\']/div[1]/div[@class=\'field error\']/span[@class=\'error\']</td>\n
<td/>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//*[@id="listbox_0data2"]//input[@type="text"]</td>\n
<td>y</td>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
<td>//*[@id=\'listbox_0data2\']/div[1]/span[@class=\'error\']</td>\n
<td/>\n
</tr>\n
</tal:block>\n
\n
\n \n
<!-- now set correct values -->\n <!-- now set correct values -->\n
<tr>\n <tr>\n
...@@ -199,11 +262,20 @@ ...@@ -199,11 +262,20 @@
<td>field_my_quantity</td>\n <td>field_my_quantity</td>\n
<td>1</td>\n <td>1</td>\n
</tr>\n </tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n <tr>\n
<td>type</td>\n <td>type</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]/input</td>\n <td>//tr[@id=\'listbox_data_line_0\']/td[3]/input</td>\n
<td>2</td>\n <td>2</td>\n
</tr>\n </tr>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<tr>\n
<td>type</td>\n
<td>//*[@id="listbox_0data2"]//input[@type="text"]</td>\n
<td>2</td>\n
</tr>\n
</tal:block>\n
\n \n
<tr>\n <tr>\n
<td>clickAndWait</td>\n <td>clickAndWait</td>\n
......
476 478
\ 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