From 085d7ed6d4a82d29fc2e616cd1977513024047f6 Mon Sep 17 00:00:00 2001 From: "Arthur Detroux (ard)" Date: Thu, 15 Sep 2022 14:55:30 +0000 Subject: [PATCH] [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) --- .../static/tests/tours/slide_course_publisher_standard.js | 1 + .../website_slides/static/tests/tours/slides_course_publisher.js | 1 + 2 files changed, 2 insertions(+) diff --git a/addons/website_slides/static/tests/tours/slide_course_publisher_standard.js b/addons/website_slides/static/tests/tours/slide_course_publisher_standard.js index d0d7cf9aff9..dc512e31b51 100644 --- a/addons/website_slides/static/tests/tours/slide_course_publisher_standard.js +++ b/addons/website_slides/static/tests/tours/slide_course_publisher_standard.js @@ -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', diff --git a/addons/website_slides/static/tests/tours/slides_course_publisher.js b/addons/website_slides/static/tests/tours/slides_course_publisher.js index f2d0976b214..5c121edb40c 100644 --- a/addons/website_slides/static/tests/tours/slides_course_publisher.js +++ b/addons/website_slides/static/tests/tours/slides_course_publisher.js @@ -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',