From 13920b09f1d14666e300a7afbda4cc1051437eec Mon Sep 17 00:00:00 2001 From: Christophe Matthieu Date: Fri, 13 Jun 2014 14:10:53 +0200 Subject: [PATCH] [IMP] website_sale: add a tour of test to check confirm dialog box --- .../static/src/js/website.tour.sale.js | 23 +++++++++++++++++-- 1 file changed, 21 insertions(+), 2 deletions(-) diff --git a/addons/website_sale/static/src/js/website.tour.sale.js b/addons/website_sale/static/src/js/website.tour.sale.js index 8cfb4e2cdad..0d72f8866b3 100644 --- a/addons/website_sale/static/src/js/website.tour.sale.js +++ b/addons/website_sale/static/src/js/website.tour.sale.js @@ -19,6 +19,7 @@ }, { title: "select product attribute memory 16 Go", + waitNot: '#customize-menu:visible', element: 'form.js_attributes label:contains(16 Go) input:not(:checked)', }, { @@ -30,10 +31,28 @@ waitNot: '.oe_website_sale .oe_product_cart:eq(2)', element: '.oe_product_cart a:contains("iPod")', }, + { + title: "open customize menu 2", + waitFor: 'form[action^="/shop/cart/update"] label:contains(32 Go) input', + element: '#customize-menu-button', + }, + { + title: "click on 'Confirm: Add To Cart'", + element: "#customize-menu a:contains(Confirm: Add To Cart)", + }, + { + title: "click on 'Add to Cart' button", + waitNot: '#customize-menu:visible', + element: "a[data-toggle='modal']:contains(Add to Cart)", + }, + { + title: "click in modal on 'Proceed to checkout' button", + element: '.modal a:contains("Proceed to checkout")', + }, { title: "finish", - waitFor: 'form[action="/shop/cart/update"] label:contains(32 Go) input', - } + waitFor: '#cart_products', + }, ] });