Commit a52e850c authored by Mohamadou Mbengue's avatar Mohamadou Mbengue

2009-08-20 Mohamadou

* Skip testListModeListboxProxy in mobile ui tests
* Update testMultiRelationFieldSearchDialogChangePage to support mobile ui tests

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28585 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 0ef257b6
...@@ -50,6 +50,9 @@ ...@@ -50,6 +50,9 @@
<thead>\n <thead>\n
<tr><td rowspan="1" colspan="3">Test List Mode Listbox Proxy</td></tr>\n <tr><td rowspan="1" colspan="3">Test List Mode Listbox Proxy</td></tr>\n
</thead><tbody>\n </thead><tbody>\n
<!-- XXX listbox_title is not displayed in mobile mode\n
So this test is skipped -->\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />\n <tal:block metal:use-macro="here/ListBoxZuite_CommonTemplate/macros/init" />\n
<tr>\n <tr>\n
<td>open</td>\n <td>open</td>\n
...@@ -133,6 +136,7 @@ ...@@ -133,6 +136,7 @@
<td>listbox_record_number</td>\n <td>listbox_record_number</td>\n
<td>1 record(s)</td>\n <td>1 record(s)</td>\n
</tr>\n </tr>\n
</tal:block>\n
\n \n
</tbody></table>\n </tbody></table>\n
</body>\n </body>\n
......
...@@ -78,7 +78,7 @@ ...@@ -78,7 +78,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
...@@ -119,9 +119,16 @@ ...@@ -119,9 +119,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
<tr>\n <tr>\n
<td>assertValue</td>\n <td>assertValue</td>\n
...@@ -135,9 +142,16 @@ ...@@ -135,9 +142,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
<tr>\n <tr>\n
<td>assertValue</td>\n <td>assertValue</td>\n
...@@ -151,11 +165,19 @@ ...@@ -151,11 +165,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
...@@ -166,10 +188,26 @@ ...@@ -166,10 +188,26 @@
<td>id=listbox_set_page</td>\n <td>id=listbox_set_page</td>\n
<td>\\13</td>\n <td>\\13</td>\n
</tr>\n </tr>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<tr>\n <tr>\n
<td>verifyValue</td>\n <td>select</td>\n
<td>id=listbox_page_selection</td>\n
<td>1 of 3</td>\n
</tr>\n
</tal:block>\n
\n
<tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>assertValue</td>\n
<td>id=listbox_set_page</td>\n <td>id=listbox_set_page</td>\n
<td>1</td>\n <td>1</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>0</td>\n
</tal:block>\n
</tr>\n </tr>\n
<tr>\n <tr>\n
<td>assertValue</td>\n <td>assertValue</td>\n
...@@ -177,6 +215,7 @@ ...@@ -177,6 +215,7 @@
<td>"%1%" OR "%2%"</td>\n <td>"%1%" OR "%2%"</td>\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
...@@ -192,6 +231,20 @@ ...@@ -192,6 +231,20 @@
<td>id=listbox_set_page</td>\n <td>id=listbox_set_page</td>\n
<td>3</td>\n <td>3</td>\n
</tr>\n </tr>\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>3 of 3</td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>20</td>\n
</tr>\n
</tal:block>\n
\n
<tr>\n <tr>\n
<td>assertValue</td>\n <td>assertValue</td>\n
<td>title</td>\n <td>title</td>\n
...@@ -200,7 +253,7 @@ ...@@ -200,7 +253,7 @@
\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
......
474 475
\ 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