[FIX] website_sale_coupon: force option activation to avoid race condition

This commit is contained in:
Christophe Simonis
2018-10-02 16:36:23 +02:00
parent a7af5679c2
commit 5a589e8c0a
+9 -1
View File
@@ -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",
)