diff options
| author | Christophe Simonis <chs@odoo.com> | 2019-12-17 18:58:30 +0000 |
|---|---|---|
| committer | Christophe Simonis <chs@odoo.com> | 2019-12-17 18:58:30 +0000 |
| commit | 1f8706edd4c12e8381ffdb49ed0bf4e196c75166 (patch) | |
| tree | deefc71bcfcfad28aae10d88ee52d5d621cf1d1c /odoo/addons/test_main_flows | |
| parent | 55d82393dd3e10f95051de2fbc73147e5638e0c1 (diff) | |
[FIX] test_main_flows: auto expand buttons in "More" dropdown
We are looking for the "Bom Count" stat-button, which can be hidden
behind the "More" dropdown, depending on the number of installed modules
and views inheritance order loading.
closes odoo/odoo#42085
X-original-commit: dc4a40cc130175a60aa77a0660613b23c4bb916f
Signed-off-by: Adrien Dieudonné (adr) <adr@odoo.com>
Diffstat (limited to 'odoo/addons/test_main_flows')
| -rw-r--r-- | odoo/addons/test_main_flows/static/tests/tours/main_flow.js | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/odoo/addons/test_main_flows/static/tests/tours/main_flow.js b/odoo/addons/test_main_flows/static/tests/tours/main_flow.js index 272e98c5f54..26800770c3e 100644 --- a/odoo/addons/test_main_flows/static/tests/tours/main_flow.js +++ b/odoo/addons/test_main_flows/static/tests/tours/main_flow.js @@ -82,6 +82,17 @@ tour.register('main_flow_tour', { content: _t('Save this product and the modifications you\'ve made to it.'), position: 'bottom', }, { + trigger: ".oe_button_box", + extra_trigger: '.o_form_readonly', + auto: true, + run: function (actions) { + // auto expand "More" buttons + var $more = $(".oe_button_box .o_button_more"); + if ($more.length) { + actions.click($more); + } + }, +},{ trigger: ".oe_button_box .oe_stat_button:has(div[name=bom_count])", extra_trigger: '.o_form_readonly', content: _t('See Bill of material'), |
