Skip to content

Commit

Permalink
[FIX] test_main_flow: adapt test to default taxes on products
Browse files Browse the repository at this point in the history
  • Loading branch information
KangOl committed Mar 20, 2018
1 parent a4a16f3 commit 500e3f4
Showing 1 changed file with 23 additions and 13 deletions.
36 changes: 23 additions & 13 deletions odoo/addons/test_main_flows/static/src/js/tour.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,16 +57,21 @@ tour.register('main_flow_tour', {
content: _t('Uncheck Make To Order'),
position: 'right',
}, {
trigger: '.o_notebook a:contains("Invoicing")',
content: _t('Go to invoicing tab'),
trigger: '.o_notebook a:contains("General Information")',
content: _t('Go to main tab'),
position: 'top',
}, {
trigger: ".o_field_widget[name=taxes_id] input",
content: _t("Focus on customer taxes field."),
run: 'click',
}, {
trigger: ".ui-menu-item.ui-state-focus",
content: _t("Select suggested customer tax"),
run: function(actions) {
actions.click();
var $e = $(".ui-menu-item.ui-state-focus:not(.o_m2o_dropdown_option)");
if ($e.length) {
actions.click($e);
} else {
actions.click(); // close dropdown
}
},
}, {
trigger: '.o_form_button_save',
content: _t('Save this product and the modifications you\'ve made to it.'),
Expand Down Expand Up @@ -218,17 +223,22 @@ tour.register('main_flow_tour', {
content: _t('Set to service'),
position: 'left',
run: 'text "service"',
}, {
trigger: '.o_notebook a:contains("Sales")',
content: _t('Go to sales tab'),
position: 'bottom',
}, {
trigger: ".o_field_widget[name=taxes_id] input",
content: _t("Focus on customer taxes field."),
run: 'click',
run: function(actions) {
actions.click();
var $e = $(".ui-menu-item.ui-state-focus:not(.o_m2o_dropdown_option)");
if ($e.length) {
actions.click($e);
} else {
actions.click(); // close dropdown
}
},
}, {
trigger: ".ui-menu-item.ui-state-focus",
content: _t("Select suggested customer tax"),
trigger: '.o_notebook a:contains("Sales")',
content: _t('Go to sales tab'),
position: 'bottom',
}, {
trigger: '.o_field_widget[name=service_policy] .o_radio_input[data-value="delivered_timesheet"]',
content: _t('Change service policy'),
Expand Down

0 comments on commit 500e3f4

Please sign in to comment.