2014-02-18 16:03:39 +00:00
|
|
|
import openerp.tests
|
2014-02-10 00:59:26 +00:00
|
|
|
|
2014-03-18 15:34:56 +00:00
|
|
|
@openerp.tests.common.at_install(False)
|
2014-03-18 12:32:25 +00:00
|
|
|
@openerp.tests.common.post_install(True)
|
2014-02-10 00:59:26 +00:00
|
|
|
class TestUi(openerp.tests.HttpCase):
|
2014-02-17 01:28:27 +00:00
|
|
|
def test_01_admin_shop_tour(self):
|
2014-06-18 10:25:13 +00:00
|
|
|
self.phantom_js("/", "openerp.Tour.run('shop', 'test')", "openerp.Tour.tours.shop", login="admin")
|
2014-02-17 01:28:27 +00:00
|
|
|
|
|
|
|
def test_02_admin_checkout(self):
|
2014-06-28 17:59:59 +00:00
|
|
|
self.phantom_js("/", "openerp.Tour.run('shop_buy_product', 'test')", "openerp.Tour.tours.shop_buy_product", login="admin")
|
2014-02-10 00:59:26 +00:00
|
|
|
|
2014-02-17 01:28:27 +00:00
|
|
|
def test_03_demo_checkout(self):
|
2014-06-28 17:59:59 +00:00
|
|
|
self.phantom_js("/", "openerp.Tour.run('shop_buy_product', 'test')", "openerp.Tour.tours.shop_buy_product", login="demo")
|
2014-02-10 00:59:26 +00:00
|
|
|
|
2014-02-17 01:28:27 +00:00
|
|
|
def test_04_public_checkout(self):
|
2014-06-28 17:59:59 +00:00
|
|
|
self.phantom_js("/", "openerp.Tour.run('shop_buy_product', 'test')", "openerp.Tour.tours.shop_buy_product")
|