Commit 1780a1e9 authored by Nicolas Wavrant's avatar Nicolas Wavrant

erp5_pdm_ui_test: update selenium test so it works in chrome

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