2018-01-16 06:58:15 +01:00
|
|
|
# -*- coding: utf-8 -*-
|
2018-01-16 11:34:37 +01:00
|
|
|
# Part of Odoo, Flectra. See LICENSE file for full copyright and licensing details.
|
2018-01-16 06:58:15 +01:00
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
import flectra
|
|
|
|
import flectra.tests
|
2018-01-16 06:58:15 +01:00
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
class TestUiTranslate(flectra.tests.HttpCase):
|
2018-01-16 06:58:15 +01:00
|
|
|
def test_admin_tour_rte_translator(self):
|
2018-01-16 11:34:37 +01:00
|
|
|
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)
|
2018-01-16 06:58:15 +01:00
|
|
|
|
2018-01-16 11:34:37 +01:00
|
|
|
class TestUi(flectra.tests.HttpCase):
|
2018-01-16 06:58:15 +01:00
|
|
|
post_install = True
|
|
|
|
at_install = False
|
|
|
|
|
|
|
|
def test_01_public_homepage(self):
|
2018-01-16 11:34:37 +01:00
|
|
|
self.phantom_js("/", "console.log('ok')", "'website.content.snippets.animation' in flectra.__DEBUG__.services")
|
2018-01-16 06:58:15 +01:00
|
|
|
|
|
|
|
def test_02_admin_tour_banner(self):
|
2018-01-16 11:34:37 +01:00
|
|
|
self.phantom_js("/", "flectra.__DEBUG__.services['web_tour.tour'].run('banner')", "flectra.__DEBUG__.services['web_tour.tour'].tours.banner.ready", login='admin')
|