From 1e93741081f97aeca42f23f41d31e577be05a927 Mon Sep 17 00:00:00 2001 From: Kersten Jeremy Date: Tue, 15 Apr 2014 12:14:06 +0200 Subject: [PATCH] [FIX] Website banner tour - Fix test according to new banner structure bzr revid: jke@openerp.com-20140415101406-54cdr44xayvyq8xo --- .../website/static/src/js/website.tour.banner.js | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/addons/website/static/src/js/website.tour.banner.js b/addons/website/static/src/js/website.tour.banner.js index 63ef120d9a1..d401cc40128 100644 --- a/addons/website/static/src/js/website.tour.banner.js +++ b/addons/website/static/src/js/website.tour.banner.js @@ -45,13 +45,23 @@ content: _t("Drag the Banner block and drop it in your page."), popover: { fixed: true }, }, - { + { waitFor: '.oe_overlay_options .oe_options:visible', - element: '#wrap .carousel:first .carousel-caption > div', + element: '#wrap .carousel:first div.carousel-content', placement: 'top', title: _t("Customize banner's text"), content: _t("Click in the text and start editing it."), - popover: { next: _t("Continue") }, + sampleText: 'Here, a customized text', + }, + { + waitNot: '#wrap .carousel:first div.carousel-content:has(h2:'+ + 'containsExact('+_t('Your Banner Title')+')):has(h3:'+ + 'containsExact('+_t('Click to customize this text')+'))', + element: '.oe_snippet_parent:visible', + placement: 'bottom', + title: _t("Get banner properties"), + content: _t("Select the parent container to get the global options of the banner."), + popover: { fixed: true }, }, { element: '.oe_overlay_options .oe_options:visible',