Skip to content

Commit

Permalink
[FIX] test_main_flows: auto expand buttons in "More" dropdown
Browse files Browse the repository at this point in the history
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#42073

X-original-commit: dc4a40c
Signed-off-by: Adrien Dieudonné (adr) <[email protected]>
  • Loading branch information
KangOl committed Dec 17, 2019
1 parent 6e30f03 commit 7feb6c1
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions odoo/addons/test_main_flows/static/tests/tours/main_flow.js
Original file line number Diff line number Diff line change
Expand Up @@ -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'),
Expand Down

0 comments on commit 7feb6c1

Please sign in to comment.