[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) <ltu@odoo.com>
This commit is contained in:
Laurent Stukkens (LTU)
2022-03-17 17:43:41 +01:00
parent 5d64b9f069
commit 0aaa767cd1
@@ -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.'),
]);
});