Commit 75fb36c8 authored by Mohamadou Mbengue's avatar Mohamadou Mbengue

2009-08-20 Mohamadou

* Update  "listbox_dialog_mode_zuite" to support mobile ui tests.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@28486 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent ba244c7a
......@@ -135,9 +135,16 @@
<td> - 0 item(s) selected</td>\n
</tr>\n
<tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>verifyValue</td>\n
<td>id=listbox_set_page</td>\n
<td>1</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>verifyValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>0</td>\n
</tal:block>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
......@@ -197,9 +204,16 @@
<!--tal:block metal:use-macro="here/ListBoxDialogModeZuite_CommonTemplate/macros/verify_dialog" /-->\n
\n
<tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>verifyValue</td>\n
<td>id=listbox_set_page</td>\n
<td>2</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>verifyValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>3</td>\n
</tal:block>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
......@@ -241,9 +255,16 @@
</tr>\n
<tal:block metal:use-macro="here/ListBoxDialogModeZuite_CommonTemplate/macros/verify_dialog" />\n
<tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>verifyValue</td>\n
<td>id=listbox_set_page</td>\n
<td>1</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>verifyValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>0</td>\n
</tal:block>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
......@@ -277,16 +298,28 @@
</tr>\n
\n
<!-- Select page -->\n
<!-- In mobile skin we do not use listbox_set_page \n
so change the page with the select -->\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tr>\n
<td>type</td>\n
<td>id=listbox_set_page</td>\n
<td>4</td>\n
</tr>\n
<tr>\n
<td>keyPressAndWait</td>\n
<td>id=listbox_set_page</td>\n
<td>\\13</td>\n
<td>keyPressAndWait</td>\n
<td>id=listbox_set_page</td>\n
<td>\\13</td>\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>4 of 4</td>\n
</tr>\n
</tal:block>\n
\n
<!--tal:block metal:use-macro="here/ListBoxDialogModeZuite_CommonTemplate/macros/verify_dialog" /-->\n
<tr>\n
<td>assertTextPresent</td>\n
......@@ -304,9 +337,16 @@
<td> - 1 item(s) selected</td>\n
</tr>\n
<tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>verifyValue</td>\n
<td>id=listbox_set_page</td>\n
<td>4</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>verifyValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>9</td>\n
</tal:block>\n
</tr>\n
<tr>\n
<td>verifyElementNotPresent</td>\n
......@@ -346,9 +386,16 @@
<td> - 0 item(s) selected</td>\n
</tr>\n
<tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>verifyValue</td>\n
<td>id=listbox_set_page</td>\n
<td>1</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>verifyValue</td>\n
<td>id=listbox_page_selection</td>\n
<td>0</td>\n
</tal:block>\n
</tr>\n
<tr>\n
<td>verifyElementPresent</td>\n
......
......@@ -53,16 +53,16 @@
<tal:block metal:use-macro="here/ListBoxDialogModeZuite_CommonTemplate/macros/init" />\n
<!-- Search by id -->\n
<tr>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<tal:block tal:condition="python: context.TestTool_getSkinName()!=\'Mobile\'">\n
<td>type</td>\n
<td>//tr[@id="listbox_search_line"]/td[2]//input</td>\n
<td>1</td>\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
</tal:block>\n
<tal:block tal:condition="python: context.TestTool_getSkinName()==\'Mobile\'">\n
<td>type</td>\n
<td>//div[@id="listbox_search_line"]//input[@id="input0"]</td>\n
<td>1</td>\n
</tal:block>\n
</tal:block>\n
</tr>\n
<!--\n
<tr>\n
......
......@@ -50,6 +50,9 @@
<thead>\n
<tr><td rowspan="1" colspan="3">Test Quick Sort</td></tr>\n
</thead><tbody>\n
<!-- 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/ListBoxDialogModeZuite_CommonTemplate/macros/init" />\n
<tr>\n
<td>assertElementPresent</td>\n
......@@ -140,7 +143,7 @@
<td>id=listbox_data_line_3</td>\n
<td></td>\n
</tr>\n
\n
</tal:block>\n
</tbody></table>\n
</body>\n
</html>\n
......
464
\ No newline at end of file
465
\ 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