Initial commit: Sale packages

This commit is contained in:
Ernad Husremovic 2025-08-29 15:20:49 +02:00
commit 14e3d26998
6469 changed files with 2479670 additions and 0 deletions

View file

@ -0,0 +1,48 @@
/** @odoo-module **/
import tour from 'web_tour.tour';
tour.register('website_sale_stock_multilang', {
test: true,
url: '/fr/shop?search=unavailable',
},
[{
content: "Open unavailable product page",
trigger: 'a[content="unavailable_product"]',
}, {
content: "Check out of stock message",
trigger: '#out_of_stock_message:contains("Hors-stock")',
run: () => {}, // This is a check.
}, {
content: "Check price",
trigger: 'span:contains("123,45")',
run: () => {}, // This is a check.
}, {
content: "Open language selector",
trigger: '.js_language_selector button',
}, {
content: "Switch to English",
trigger: '.js_change_lang[data-url_code="en"]',
}, {
content: "Check out of stock message",
trigger: '#out_of_stock_message:contains("Out of stock")',
run: () => {}, // This is a check.
}, {
content: "Check price",
trigger: 'span:contains("123.45")',
run: () => {}, // This is a check.
}, {
content: "Open language selector",
trigger: '.js_language_selector button',
}, {
content: "Switch to French",
trigger: '.js_change_lang[data-url_code="fr"]',
}, {
content: "Check out of stock message",
trigger: '#out_of_stock_message:contains("Hors-stock")',
run: () => {}, // This is a check.
}, {
content: "Check price",
trigger: 'span:contains("123,45")',
run: () => {}, // This is a check.
}]);

View file

@ -0,0 +1,32 @@
/** @odoo-module **/
import tour from 'web_tour.tour';
tour.register('back_in_stock_notification_product', {
test: true,
url: '/shop?search=Macbook%20Pro',
},
[
{
content: "Open product page",
trigger: 'a:contains("Macbook Pro")',
},
{
content: "Click on 'Be notified when back in stock'",
trigger: '#product_stock_notification_message',
},
{
content: "Fill email form",
trigger: 'div[id="stock_notification_form"] input[name="email"]',
run: 'text test@test.test',
},
{
content: "Click on the button",
trigger: '#product_stock_notification_form_submit_button',
},
{
content: "Success Message",
trigger: '#stock_notification_success_message',
},
],
);