Commit 0a72dbb3 authored by Romain Courteaud's avatar Romain Courteaud

Check if invalide search parameters are correctly handled by the form validator.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33663 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 14f9ef9e
...@@ -174,6 +174,76 @@ ...@@ -174,6 +174,76 @@
<td>//tr[@id="listbox_data_line_2"]/td[2]</td>\n <td>//tr[@id="listbox_data_line_2"]/td[2]</td>\n
<td>2001/01/01</td>\n <td>2001/01/01</td>\n
</tr>\n </tr>\n
\n
<!-- Compare Search -->\n
<tr>\n
<td>type</td>\n
<td>//tr[@id="listbox_search_line"]/td[2]//input</td>\n
<td>>=2002/01/01</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_doSelect:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//tr[@id="listbox_search_line"]/td[2]//input</td>\n
<td>>=2002/01/01</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>id=listbox_record_number</td>\n
<td>2 records</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_0"]/td[2]</td>\n
<td>2003/03/03</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_1"]/td[2]</td>\n
<td>2002/02/02</td>\n
</tr>\n
\n
<!-- Wrong Search Expression -->\n
<tr>\n
<td>type</td>\n
<td>//tr[@id="listbox_search_line"]/td[2]//input</td>\n
<td>>=</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_doSelect:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTextPresent</td>\n
<td>Input data has errors. Please look at the error messages below.</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyValue</td>\n
<td>//tr[@id="listbox_search_line"]/td[2]//input</td>\n
<td>>=2002/01/01</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>id=listbox_record_number</td>\n
<td>2 records</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_0"]/td[2]</td>\n
<td>2003/03/03</td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>//tr[@id="listbox_data_line_1"]/td[2]</td>\n
<td>2002/02/02</td>\n
</tr>\n
\n
</tal:block>\n </tal:block>\n
\n \n
</tbody></table>\n </tbody></table>\n
......
541 542
\ 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