requiere login para realizar el checkout, cogido de OCA/e-commnerce

This commit is contained in:
santiky 2022-04-22 19:48:25 +02:00
parent 50f2a6d592
commit d6de99c5aa
Signed by: snt
GPG key ID: A9FD34930EADBE71
23 changed files with 885 additions and 0 deletions

View file

@ -0,0 +1 @@
from . import test_checkout

View file

@ -0,0 +1,31 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import odoo.tests
class TestUi(odoo.tests.HttpCase):
def run_tour(self, login=None):
self.phantom_js(
"/",
"odoo.__DEBUG__.services['web_tour.tour']"
".run('shop_buy_product')",
"odoo.__DEBUG__.services['web_tour.tour']"
".tours.shop_buy_product.ready",
login=login
)
# keep test numbering from module website_sale.
# Test 01 is not needed in this module
def test_02_admin_checkout(self):
self.run_tour("admin")
def test_03_demo_checkout(self):
self.run_tour("demo")
def test_04_public_checkout(self):
# Disable sign up, in case auth_signup is installed
self.env["ir.config_parameter"].set_param(
"auth_signup.invitation_scope", "b2b")
self.run_tour()