Commit 2a240dd6 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_pdm_ui_test: update selenium test so it works in chrome

parent 7bc47227
......@@ -21,7 +21,7 @@ Test quantity steps for price on sale supply line
<tr>
<td>type</td>
<td>field_my_sale_supply_line_quantity_step_list</td>
<td>10<br />20</td>
<td>10&NewLine;20</td>
</tr>
<tr>
<td>clickAndWait</td>
......@@ -29,10 +29,10 @@ Test quantity steps for price on sale supply line
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>field_my_sale_supply_line_quantity_step_list</td>
<td>10.0
20.0</td>
<td>assertEval</td>
<td>selenium.browserbot.getCurrentWindow().document.getElementsByName("field_my_sale_supply_line_quantity_step_list")[0].value === "10.0\n20.0"</td>
<td>true</td>
</tr>
<tr>
<td>assertText</td>
<td>//input[@name="field_matrixbox_base_price_cell_0_0_0"]/../../../td[1]</td>
......@@ -94,7 +94,7 @@ Test quantity steps for price on sale supply line
<tr>
<td>type</td>
<td>field_my_sale_supply_line_quantity_step_list</td>
<td>foo<br />bar</td>
<td>foo&NewLine;bar</td>
</tr>
<tr>
<td>clickAndWait</td>
......@@ -102,16 +102,9 @@ Test quantity steps for price on sale supply line
<td></td>
</tr>
<tr>
<td>assertText</td>
<td>field_my_sale_supply_line_quantity_step_list</td>
<td>foo
bar</td>
</tr>
<tr>
<td>assertText</td>
<td>field_my_sale_supply_line_quantity_step_list</td>
<td>foo
bar</td>
<td>assertEval</td>
<td>selenium.browserbot.getCurrentWindow().document.getElementsByName("field_my_sale_supply_line_quantity_step_list")[0].value === "foo\nbar"</td>
<td>true</td>
</tr>
<tr>
<td>assertText</td>
......@@ -135,4 +128,4 @@ bar</td>
</tbody></table>
</body>
</html>
<!-- vim: syntax=html foldmethod=marker -->
<!-- vim: syntax=html foldmethod=marker -->
\ 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