From aa53ba02fec66d0b452181860aff68c25da52116 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20Warnon?= Date: Thu, 24 Oct 2019 09:03:26 +0000 Subject: [PATCH] [FIX] website_slides: fix course_member tour rating step The last step of the 'course_member' test tour adds a new rating on the course. This commit improves the test by actually checking the rating is added. At the same time, we fix a potential build error caused by the fact that the test was closed potentially before finishing the rating request. Task#2091810 closes odoo/odoo#39393 X-original-commit: e26e99fae06d49f83ed2bfc9927dc60ec1af3b83 Signed-off-by: awa-odoo --- addons/website_slides/tests/tours/slides_course_member.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/addons/website_slides/tests/tours/slides_course_member.js b/addons/website_slides/tests/tours/slides_course_member.js index 3f2a6325681..53e7b51f114 100644 --- a/addons/website_slides/tests/tours/slides_course_member.js +++ b/addons/website_slides/tests/tours/slides_course_member.js @@ -130,6 +130,11 @@ tour.register('course_member', { }, { trigger: 'button.o_portal_chatter_composer_btn', in_modal: false, +}, { + trigger: 'a[id="review-tab"]' +}, { + trigger: '.o_portal_chatter_message:contains("This is a great course. Top !")', + run: function () {}, // check review is correctly added } ]);