[REM] broken and PITA test_02_public_login_logout
* / fails to load, it turns out Tour is undefined because unlogged home does not load bootstrap-tour * after injecting bootstrap-tour, redirects to /login (to log in), tries to inject tour again except this time ``openerp.website`` is completely empty (although it is present on the page), no idea why. removed test because whatever, if enable-test-fix-tour is ever rewritten and fixed it may reappear. bzr revid: xmo@openerp.com-20140219142115-5kpu5uvzpkwnt1ef
This commit is contained in:
@@ -1,24 +1,11 @@
|
||||
import os
|
||||
|
||||
import unittest2
|
||||
|
||||
import openerp.tests
|
||||
|
||||
relfile = lambda *args: os.path.join(os.path.dirname(__file__), *args)
|
||||
|
||||
inject = [
|
||||
('openerp.website.Tour', relfile('../static/src/js/website.tour.js')),
|
||||
('openerp.website.Tour.LoginEdit', relfile('../static/src/js/website.tour.test.admin.js')),
|
||||
]
|
||||
|
||||
class TestUi(openerp.tests.HttpCase):
|
||||
def test_01_public_homepage(self):
|
||||
self.phantom_js("/", "console.log('ok')", "openerp.website.snippet")
|
||||
|
||||
@unittest2.expectedFailure
|
||||
def test_02_public_login_logout(self):
|
||||
self.phantom_js("/", "openerp.website.Tour.run_test('login_edit')", "openerp.website.Tour", inject=inject)
|
||||
|
||||
def test_03_admin_homepage(self):
|
||||
self.phantom_js("/", "console.log('ok')", "openerp.website.editor", login='admin')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user