From 4fd97c257356dc8e19085a78fb792c921d3ee8d6 Mon Sep 17 00:00:00 2001 From: "Nasreddin (bon)" Date: Tue, 7 Apr 2020 13:06:54 +0000 Subject: [PATCH] [FIX] website_slides: Fix course publisher tour test There was 2 problems that caused the Publisher tour to fail: 1. The pointer on the main menu was pointing to a link containg "New Course" as text instead of "Course". 2. After selecting a picture (by clicking on it), the picture is automatically added and so no need to click on add button; had to remove this extra step. Task ID 2228922 closes odoo/odoo#49390 X-original-commit: b2f2c5e4ecfd6bf39ce0b2b724827202629231f1 Signed-off-by: Thibault Delavallee (tde) --- .../static/src/tests/tours/slides_course_publisher.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/addons/website_slides/static/src/tests/tours/slides_course_publisher.js b/addons/website_slides/static/src/tests/tours/slides_course_publisher.js index f357a2296c8..98cca8579c1 100644 --- a/addons/website_slides/static/src/tests/tours/slides_course_publisher.js +++ b/addons/website_slides/static/src/tests/tours/slides_course_publisher.js @@ -19,7 +19,7 @@ tour.register('course_publisher', { trigger: 'li.o_new_content_menu a' }, { content: 'eLearning: click on New Course', - trigger: 'a:contains("New Course")' + trigger: 'a:contains("Course")' }, { content: 'eLearning: set name', trigger: 'input[name="name"]', @@ -51,9 +51,6 @@ tour.register('course_publisher', { }, { content: 'eLearning: click pâtissière', trigger: 'img[title="s_company_team_image_4.png"]', -}, { - content: 'eLearning: validate pâtissière', - trigger: 'footer.modal-footer button:contains("Add")', }, { content: 'eLearning: is the pâtissière set ?', trigger: 'img.o_wslides_course_pict',