[FIX] website_slide: wait for the url to be checked before clicking

In the tour course_publisher_standard and course_publisher, the triggers
were not making sure that the url was validated before clicking on the
button, therefore clicking on a disabled button. This resulted in tests
randomly failing on runbot.

This commit adds an extra trigger to make sure the URL has been
validated.

runbot-4060

closes odoo/odoo#100369

X-original-commit: 2795d33d756e3101537c8ed0a017e6cc22afb1db
Signed-off-by: Romain Derie (rde) <rde@odoo.com>
This commit is contained in:
Arthur Detroux (ard)
2022-09-16 16:20:56 +02:00
parent e234810faa
commit 085d7ed6d4
2 changed files with 2 additions and 0 deletions
@@ -59,6 +59,7 @@ wTourUtils.registerWebsitePreviewTour('course_publisher_standard', {
}, {
content: 'eLearning: click "Add URL" really adding image',
trigger: '.o_upload_media_url_button',
extra_trigger: '.o_we_url_success',
}, {
content: 'eLearning: is the Corgi set ?',
trigger: 'iframe img.o_wslides_course_pict',
@@ -60,6 +60,7 @@ wTourUtils.registerWebsitePreviewTour('course_publisher', {
}, {
content: 'eLearning: click "Add URL" really adding image',
trigger: '.o_upload_media_url_button',
extra_trigger: '.o_we_url_success',
}, {
content: 'eLearning: is the Corgi set ?',
trigger: 'iframe img.o_wslides_course_pict',