[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) <tde@openerp.com>
This commit is contained in:
Nasreddin (bon)
2020-04-10 11:04:56 +00:00
parent 6dc5b36739
commit 4fd97c2573
@@ -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',