[FIX] sale_product_configurator: adapt tests to 84c8f66
closes odoo/odoo#35805 Signed-off-by: Damien Bouvy (dbo) <dbo@odoo.com>
This commit is contained in:
+1
-1
@@ -25,7 +25,7 @@ tour.register('sale_product_configurator_advanced_tour', {
|
||||
auto: true,
|
||||
}, {
|
||||
trigger: "a:contains('Add a product')",
|
||||
extra_trigger: ".o_field_widget[name=pricelist_id] > .o_external_button", // Wait for pricelist (onchange_partner_id)
|
||||
extra_trigger: ".o_field_widget[name=partner_shipping_id] > .o_external_button", // Wait for onchange_partner_id
|
||||
}, {
|
||||
trigger: 'div[name="product_template_id"] input',
|
||||
run: function (){
|
||||
|
||||
-4
@@ -35,10 +35,6 @@ tour.STEPS.SHOW_APPS_MENU_ITEM,
|
||||
}, {
|
||||
content: "select the pricelist",
|
||||
trigger: 'ul.ui-autocomplete > li > a:contains(Public Pricelist)',
|
||||
}, {
|
||||
content: "wait for pricelist to be set",
|
||||
trigger: 'div.o_with_button[name="pricelist_id"]',
|
||||
run: function () {},
|
||||
}, {
|
||||
trigger: "a:contains('Add a product')"
|
||||
}, {
|
||||
|
||||
@@ -15,11 +15,13 @@ class TestUi(odoo.tests.HttpCase):
|
||||
def test_02_product_configurator_advanced(self):
|
||||
# group_product_variant: use the product configurator
|
||||
# group_sale_pricelist: display the pricelist to determine when it is changed after choosing
|
||||
# group_delivery_invoice_address: show the shipping address (needed for a trigger)
|
||||
# the partner
|
||||
self.env.ref('base.user_admin').write({
|
||||
'groups_id': [
|
||||
(4, self.env.ref('product.group_product_variant').id),
|
||||
(4, self.env.ref('product.group_product_pricelist').id),
|
||||
(4, self.env.ref('sale.group_delivery_invoice_address').id),
|
||||
],
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user