From 0aaa767cd1ea29cf5350304b6385f2b05175d943 Mon Sep 17 00:00:00 2001 From: "Laurent Stukkens (LTU)" Date: Wed, 16 Mar 2022 14:46:16 +0000 Subject: [PATCH] [FIX] sale_timesheet: prevent session timeout at the end of test tour Prior to this commit: - The test tour was falling in some circumstances, when additional reads were done right after the last step. After this commit: - Adding the last step which is returning the the project app menu will prevent having those additional reads after the last step. closes odoo/odoo#86558 Signed-off-by: Laurent Stukkens (ltu) --- .../static/tests/tours/sale_timesheet_tour.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/addons/sale_timesheet/static/tests/tours/sale_timesheet_tour.js b/addons/sale_timesheet/static/tests/tours/sale_timesheet_tour.js index 0d18e507a5c..0ed2d66584c 100644 --- a/addons/sale_timesheet/static/tests/tours/sale_timesheet_tour.js +++ b/addons/sale_timesheet/static/tests/tours/sale_timesheet_tour.js @@ -368,6 +368,9 @@ tour.register('sale_timesheet_tour', { trigger: ".o_field_widget[name=description] h3:contains('Milestones')", content: "Milestones title must be in description", run: function () {}, -}]); - +}, +// This step is currently needed in order to prevent a session timeout at the end of the test. +tour.stepUtils.toggleHomeMenu(), +...tour.stepUtils.goToAppSteps("project.menu_main_pm", 'Go to the Project app.'), +]); });