[FIX] test_sale_product_configurators: use saveForm
Currently, discardForm has some indeterministic problems during the nightly runs. To avoid this and until the problem is solved, these tours now use the saveForm instead. closes odoo/odoo#124544 X-original-commit: 29d6ba2716fe0067903f1b5ee480e2e03757e0f7 Signed-off-by: Morgane Demesmaeker <edm@odoo.com>
This commit is contained in:
+1
-1
@@ -92,5 +92,5 @@ registry.category("web_tour.tours").add('sale_product_configurator_advanced_tour
|
||||
}, {
|
||||
trigger: 'td.o_data_cell:contains("PA8: PAV1")',
|
||||
isCheck: true,
|
||||
}, ...stepUtils.discardForm()
|
||||
}, ...stepUtils.saveForm()
|
||||
]});
|
||||
|
||||
+9
-3
@@ -11,6 +11,12 @@ registry.category("web_tour.tours").add('sale_product_configurator_edition_tour'
|
||||
}, {
|
||||
trigger: '.o_list_button_add',
|
||||
extra_trigger: '.o_sale_order',
|
||||
}, {
|
||||
trigger: '.o_required_modifier[name=partner_id] input',
|
||||
run: 'text Tajine Saucisse',
|
||||
}, {
|
||||
trigger: '.ui-menu-item > a:contains("Tajine Saucisse")',
|
||||
auto: true,
|
||||
}, {
|
||||
trigger: 'a:contains("Add a product")',
|
||||
}, {
|
||||
@@ -83,8 +89,8 @@ registry.category("web_tour.tours").add('sale_product_configurator_edition_tour'
|
||||
isCheck: true,
|
||||
}, {
|
||||
trigger: 'tr:has(.o_sale_product_configurator_name:contains("Customizable Desk"))>td:nth-child(3)>div>button:has(i.fa-plus)',
|
||||
}, {
|
||||
trigger: 'main.modal-body>table:nth-child(1)>tbody>tr:nth-child(2)>td>span:contains("1,500.00")',
|
||||
}, { // Mr Tajine Saucisse uses the pricelist that has a rule when 2 or more products. Price is 600
|
||||
trigger: 'main.modal-body>table:nth-child(1)>tbody>tr:nth-child(2)>td>span:contains("1,200.00")',
|
||||
}, {
|
||||
trigger: 'button:contains(Confirm)',
|
||||
}, {
|
||||
@@ -103,5 +109,5 @@ registry.category("web_tour.tours").add('sale_product_configurator_edition_tour'
|
||||
extra_trigger: 'div[name="order_line"]',
|
||||
isCheck: true,
|
||||
},
|
||||
...stepUtils.discardForm(),
|
||||
...stepUtils.saveForm(),
|
||||
]});
|
||||
|
||||
+7
-1
@@ -11,6 +11,12 @@ registry.category("web_tour.tours").add('sale_product_configurator_optional_prod
|
||||
}, {
|
||||
trigger: '.o_list_button_add',
|
||||
extra_trigger: '.o_sale_order'
|
||||
}, {
|
||||
trigger: '.o_required_modifier[name=partner_id] input',
|
||||
run: 'text Tajine Saucisse',
|
||||
}, {
|
||||
trigger: '.ui-menu-item > a:contains("Tajine Saucisse")',
|
||||
auto: true,
|
||||
}, {
|
||||
trigger: 'a:contains("Add a product")',
|
||||
}, {
|
||||
@@ -44,5 +50,5 @@ registry.category("web_tour.tours").add('sale_product_configurator_optional_prod
|
||||
}, {
|
||||
trigger: 'tr:has(td.o_data_cell:contains("Chair floor protection")) td.o_data_cell:contains("1.0")',
|
||||
isCheck: true,
|
||||
}, ...stepUtils.discardForm()
|
||||
}, ...stepUtils.saveForm()
|
||||
]});
|
||||
|
||||
+1
-1
@@ -75,5 +75,5 @@ stepUtils.showAppsMenuItem(),
|
||||
}, {
|
||||
content: "verify SO final price included",
|
||||
trigger: 'span[name="amount_total"]:contains("1,437.00")',
|
||||
}, ...stepUtils.discardForm()
|
||||
}, ...stepUtils.saveForm()
|
||||
]});
|
||||
|
||||
+7
-1
@@ -14,6 +14,12 @@ registry.category("web_tour.tours").add('sale_product_configurator_tour', {
|
||||
}, {
|
||||
trigger: '.o_list_button_add',
|
||||
extra_trigger: '.o_sale_order'
|
||||
}, {
|
||||
trigger: '.o_required_modifier[name=partner_id] input',
|
||||
run: 'text Tajine Saucisse',
|
||||
}, {
|
||||
trigger: '.ui-menu-item > a:contains("Tajine Saucisse")',
|
||||
auto: true,
|
||||
}, {
|
||||
trigger: 'a:contains("Add a product")',
|
||||
}, {
|
||||
@@ -63,5 +69,5 @@ registry.category("web_tour.tours").add('sale_product_configurator_tour', {
|
||||
}, {
|
||||
trigger: 'span[name=amount_total]:contains("960.60")',
|
||||
isCheck: true,
|
||||
}, ...stepUtils.discardForm()
|
||||
}, ...stepUtils.saveForm(),
|
||||
]});
|
||||
|
||||
Reference in New Issue
Block a user