Commit 42bd6df0 authored by Ayush Tiwari's avatar Ayush Tiwari

[erp5_web_renderjs_ui_test] Update test for Historical Revision Link so as not...

[erp5_web_renderjs_ui_test] Update test for Historical Revision Link so as not to display empty diffs

This change is based on the change in DiffTool: 610a15b3
where we don't display diffs for data types whose value is None, '' or empty data types.
parent fd5818e7
...@@ -135,7 +135,7 @@ ...@@ -135,7 +135,7 @@
<tr> <tr>
<td>waitForElementPresent</td> <td>waitForElementPresent</td>
<td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[4]/td[2]//iframe</td> <td>//div[@data-gadget-scope='field_listbox']//table/tbody/tr[2]/td[2]//iframe</td>
<td></td> <td></td>
</tr> </tr>
<tr> <tr>
...@@ -146,7 +146,7 @@ ...@@ -146,7 +146,7 @@
<!-- Check for the value of diff in Iframe --> <!-- Check for the value of diff in Iframe -->
<tr> <tr>
<td>storeEval</td> <td>storeEval</td>
<td>document.querySelector('#selenium_myiframe').contentWindow.document.evaluate("//div[@data-gadget-scope='field_listbox']//table/tbody/tr[4]/td[2]//iframe", document.querySelector('#selenium_myiframe').contentWindow.document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.contentWindow.document.body.textContent</td> <td>document.querySelector('#selenium_myiframe').contentWindow.document.evaluate("//div[@data-gadget-scope='field_listbox']//table/tbody/tr[2]/td[2]//iframe", document.querySelector('#selenium_myiframe').contentWindow.document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue.contentWindow.document.body.textContent</td>
<td>diff_content</td> <td>diff_content</td>
</tr> </tr>
<tr> <tr>
......
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