website_membership_signup_required: accept terms & conditions in signup form. Redirect to cart

This commit is contained in:
Luis 2026-07-22 17:42:28 +02:00
parent 07b0e546c4
commit ba52c72b78
6 changed files with 151 additions and 22 deletions

View file

@ -59,23 +59,22 @@ registry.category("web_tour.tours").add("website_membership_signup_required_tour
run: "edit TourMember1!",
},
{
content: "Submit the signup form -> redirect back to product page",
content: "Accept the terms & conditions checkbox",
trigger: ".oe_signup_form input[name='accepted_terms']",
run: "click",
},
{
content: "Submit the signup form -> redirect straight to cart "
+ "with the product already added (post-login auto-add)",
trigger: ".oe_signup_form button[type='submit']",
run: "click",
expectUnloadPage: true,
},
// -- Back on the product page, now authenticated --------------------
// -- Lands directly on /shop/cart with the membership line ---------
{
content: "We're back on the membership product page (authenticated)",
trigger: `#product_details h1:contains("${PRODUCT_NAME}")`,
content: "We land on /shop/cart with the membership product",
trigger: `#cart_products td.t-w-employee a:text("${PRODUCT_NAME}")`,
},
{
content: "Add to cart as authenticated user",
trigger: "#add_to_cart",
run: "click",
expectUnloadPage: true,
},
tourUtils.goToCart(),
tourUtils.assertCartContains({ productName: PRODUCT_NAME }),
],
});