[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 <awa-odoo@users.noreply.github.com>
This commit is contained in:
Aurélien Warnon
2019-10-25 15:24:25 +00:00
committed by fw-bot
parent e32e73dbbe
commit aa53ba02fe
@@ -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
}
]);