Commit a71d577e authored by Ayush Tiwari's avatar Ayush Tiwari

[erp5_core + erp5_ui_test] Use view_mode_listbox in DiffTool

Following convention, it makes more sense to use view mode for DiffTool view.
Also, we don't need selection as of now.

Also, update the tests
parent 3d768494
...@@ -87,17 +87,17 @@ ...@@ -87,17 +87,17 @@
</tr> </tr>
<tr> <tr>
<td>assertText</td> <td>assertText</td>
<td>//tr[@class='listbox-data-line-2 DataA']/td[2]</td> <td>//tr[@class='listbox-data-line-2 DataA']/td[1]</td>
<td>title</td> <td>title</td>
</tr> </tr>
<tr> <tr>
<td>assertElementPresent</td> <td>assertElementPresent</td>
<td>//tr[@class='listbox-data-line-2 DataA']/td[3]/div[@data-gadget-sandbox="public"]</td> <td>//tr[@class='listbox-data-line-2 DataA']/td[2]/div[@data-gadget-sandbox="public"]</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>storeEval</td> <td>storeEval</td>
<td>document.querySelector('#selenium_myiframe').contentWindow.document.evaluate("//tr[@class='listbox-data-line-2 DataA']/td[3]/div[@data-gadget-sandbox='public']", document.querySelector('#selenium_myiframe').contentWindow.document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.getAttribute('data-gadget-value');</td> <td>document.querySelector('#selenium_myiframe').contentWindow.document.evaluate("//tr[@class='listbox-data-line-2 DataA']/td[2]/div[@data-gadget-sandbox='public']", document.querySelector('#selenium_myiframe').contentWindow.document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.getAttribute('data-gadget-value');</td>
<td>_data_gadget_value</td> <td>_data_gadget_value</td>
</tr> </tr>
<tr> <tr>
......
...@@ -78,17 +78,17 @@ ...@@ -78,17 +78,17 @@
</tr> </tr>
<tr> <tr>
<td>assertText</td> <td>assertText</td>
<td>//tr[@class='listbox-data-line-1 DataB']/td[2]</td> <td>//tr[@class='listbox-data-line-1 DataB']/td[1]</td>
<td>title</td> <td>title</td>
</tr> </tr>
<tr> <tr>
<td>assertElementPresent</td> <td>assertElementPresent</td>
<td>//tr[@class='listbox-data-line-1 DataB']/td[3]/div[@data-gadget-sandbox="public"]</td> <td>//tr[@class='listbox-data-line-1 DataB']/td[2]/div[@data-gadget-sandbox="public"]</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
<td>storeEval</td> <td>storeEval</td>
<td>document.querySelector('#selenium_myiframe').contentWindow.document.evaluate("//tr[@class='listbox-data-line-1 DataB']/td[3]/div[@data-gadget-sandbox='public']", document.querySelector('#selenium_myiframe').contentWindow.document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.getAttribute('data-gadget-value');</td> <td>document.querySelector('#selenium_myiframe').contentWindow.document.evaluate("//tr[@class='listbox-data-line-1 DataB']/td[2]/div[@data-gadget-sandbox='public']", document.querySelector('#selenium_myiframe').contentWindow.document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.getAttribute('data-gadget-value');</td>
<td>_data_gadget_value</td> <td>_data_gadget_value</td>
</tr> </tr>
<tr> <tr>
......
...@@ -90,7 +90,7 @@ ...@@ -90,7 +90,7 @@
</item> </item>
<item> <item>
<key> <string>field_id</string> </key> <key> <string>field_id</string> </key>
<value> <string>my_list_mode_listbox</string> </value> <value> <string>my_view_mode_listbox</string> </value>
</item> </item>
<item> <item>
<key> <string>form_id</string> </key> <key> <string>form_id</string> </key>
......
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