20 lines
898 B
Python
20 lines
898 B
Python
# -*- coding: utf-8 -*-
|
|
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
|
|
|
import flectra
|
|
import flectra.tests
|
|
|
|
class TestUiTranslate(flectra.tests.HttpCase):
|
|
def test_admin_tour_rte_translator(self):
|
|
self.phantom_js("/", "flectra.__DEBUG__.services['web_tour.tour'].run('rte_translator')", "flectra.__DEBUG__.services['web_tour.tour'].tours.rte_translator.ready", login='admin', timeout=120)
|
|
|
|
class TestUi(flectra.tests.HttpCase):
|
|
post_install = True
|
|
at_install = False
|
|
|
|
def test_01_public_homepage(self):
|
|
self.phantom_js("/", "console.log('ok')", "'website.content.snippets.animation' in flectra.__DEBUG__.services")
|
|
|
|
def test_02_admin_tour_banner(self):
|
|
self.phantom_js("/", "flectra.__DEBUG__.services['web_tour.tour'].run('banner')", "flectra.__DEBUG__.services['web_tour.tour'].tours.banner.ready", login='admin')
|