summaryrefslogtreecommitdiff
path: root/addons/website_slides/static
diff options
context:
space:
mode:
authorNasreddin (bon) <bon@odoo.com>2020-04-07 13:06:54 +0000
committerNasreddin (bon) <bon@odoo.com>2020-04-10 11:04:56 +0000
commit4fd97c257356dc8e19085a78fb792c921d3ee8d6 (patch)
tree8797e3740547a59d234031229e491f9bd57987a6 /addons/website_slides/static
parent6dc5b367398e9ede4d2500d7e1c5c73e86834f1b (diff)
[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>
Diffstat (limited to 'addons/website_slides/static')
-rw-r--r--addons/website_slides/static/src/tests/tours/slides_course_publisher.js5
1 files changed, 1 insertions, 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"]',
@@ -52,9 +52,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',
run: function () {