[FIX] website_sale_coupon: force option activation to avoid race condition
This commit is contained in:
@@ -2,10 +2,18 @@
|
||||
|
||||
import odoo.tests
|
||||
|
||||
|
||||
class TestUi(odoo.tests.HttpCase):
|
||||
|
||||
post_install = True
|
||||
at_install = False
|
||||
|
||||
def test_01_admin_shop_sale_coupon_tour(self):
|
||||
self.phantom_js("/", "odoo.__DEBUG__.services['web_tour.tour'].run('shop_sale_coupon')", "odoo.__DEBUG__.services['web_tour.tour'].tours.shop_sale_coupon.ready", login="admin")
|
||||
# pre enable "Show # found" option to avoid race condition...
|
||||
self.env.ref("website_sale.search count").write({"active": True})
|
||||
self.phantom_js(
|
||||
"/",
|
||||
"odoo.__DEBUG__.services['web_tour.tour'].run('shop_sale_coupon')",
|
||||
"odoo.__DEBUG__.services['web_tour.tour'].tours.shop_sale_coupon.ready",
|
||||
login="admin",
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user