Commit 9dd34374 authored by Jérome Perrin's avatar Jérome Perrin

tests we show old value, new value and current value in history tab.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@10714 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent d92d616b
No related merge requests found
......@@ -102,6 +102,16 @@
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>type</td>\n
<td>field_my_title</td>\n
<td>Version 3</td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>Base_edit:method</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=History</td>\n
......@@ -110,7 +120,51 @@
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>3 record(s)</td> <!-- Creation + edited 2 times -->\n
<td>4 record(s)</td> <!-- Creation + edited 3 times -->\n
</tr>\n
\n
<!-- First modification --> \n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_data_line_1\']/td[4]/a</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTitle</td>\n
<td>Historical Comparision - Version 3</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>1 record(s)</td> <!-- Only one property changed. -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n
<td>title</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]</td>\n
<td></td> <!-- before -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]</td>\n
<td>Version 1</td> <!-- after -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]</td>\n
<td>Version 3</td> <!-- now -->\n
</tr>\n
\n
<!-- Second modification -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=History</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
......@@ -119,19 +173,35 @@
</tr>\n
<tr>\n
<td>assertTitle</td>\n
<td>Historical Comparision - Version 2</td>\n
<td>Historical Comparision - Version 3</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>1 record(s)</td> <!-- Only one property changed. -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n
<td>title</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]</td>\n
<td>Version 1</td>\n
<td>Version 1</td> <!-- before -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]</td>\n
<td>Version 2</td>\n
<td>Version 2</td> <!-- after -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]</td>\n
<td>Version 3</td> <!-- now -->\n
</tr>\n
<!-- Jump to old revision -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=View Old Revision</td>\n
......@@ -147,8 +217,49 @@
<td>field_my_title</td>\n
<td>Version 1</td>\n
</tr>\n
<!-- (subobjects are still the current version) -->\n
\n
<!-- subobjects are still the current version -->\n
<!-- Third modification -->\n
<tr>\n
<td>clickAndWait</td>\n
<td>link=History</td> <!-- even if we show an old version -->\n
<td></td> <!-- all links points to current version -->\n
</tr>\n
<tr>\n
<td>clickAndWait</td>\n
<td>//tr[@id=\'listbox_data_line_3\']/td[4]/a</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>assertTitle</td>\n
<td>Historical Comparision - Version 3</td>\n
<td></td>\n
</tr>\n
<tr>\n
<td>verifyText</td>\n
<td>listbox_record_number</td>\n
<td>1 record(s)</td> <!-- Only one property changed. -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[1]</td>\n
<td>title</td>\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[2]</td>\n
<td>Version 2</td> <!-- before -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[3]</td>\n
<td>Version 3</td> <!-- after -->\n
</tr>\n
<tr>\n
<td>assertText</td>\n
<td>//tr[@id=\'listbox_data_line_0\']/td[4]</td>\n
<td>Version 3</td> <!-- now -->\n
</tr>\n
\n
</tbody></table>\n
</body>\n
......
101
102
\ 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