From c5048ebc6a926435831c89a71ecf6ea48bccbbd8 Mon Sep 17 00:00:00 2001 From: "Cedric Prieels (cpr)" Date: Thu, 2 Sep 2021 12:56:29 +0200 Subject: [PATCH] [IMP] test_main_flows: improve test for project,timesheet This commit improves the test to handle the changes made in the project, sale_timesheet modules. PR : #72736 See odoo/upgrade#2706 task-2545084 --- .../static/tests/tours/main_flow.js | 38 +++++++++++++++++++ 1 file changed, 38 insertions(+) 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 6e5c77b9c1f..5a9c31893af 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 @@ -895,6 +895,44 @@ tour.stepUtils.mobileModifier(tour.stepUtils.autoExpandMoreButtons('.o_control_p extra_trigger: '.o_form_readonly', content: _t('See Timesheets'), position: 'bottom', +}, { + mobile: true, + trigger: '.o_enable_searchview', + content: _t('Open the search field'), + position: 'bottom', +}, { + mobile: true, + trigger: '.o_toggle_searchview_full', + content: _t('Open the full search field'), + position: 'bottom', +}, { + trigger: '.o_group_by_menu .o_dropdown_toggler', + content: _t('Click on the group by button'), + position: 'bottom', +}, { + trigger: '.dropdown-item.selected:contains(Employee)', + extra_trigger: '.dropdown-menu.show', + content: _t('Remove group by employee'), + position: 'bottom', +}, { + trigger: '.dropdown-item.selected:contains(Billable Type)', + extra_trigger: '.dropdown-menu.show', + content: _t('Remove group by billable type'), + position: 'bottom', +}, { + mobile: true, + trigger: '.o_mobile_search_footer', + content: _t('Close the search dropdown on mobile'), + position: 'bottom', +}, { + mobile: true, + trigger: '.o_cp_bottom_right .o_cp_switch_buttons .btn-link', + content: _t('Prepare to change the view on mobile'), + position: 'bottom', +}, { + trigger: '.o_switch_view.o_list', + content: _t('Activate the list view'), + position: 'bottom', }, { trigger: '.o_list_button_add', content: _t('Add a Timesheet'),