summaryrefslogtreecommitdiff
path: root/addons/web_editor/tests
diff options
context:
space:
mode:
authorAntoine Guenet <age@odoo.com>2018-12-28 17:59:35 +0000
committerChristophe Matthieu <chm@odoo.com>2019-01-17 08:40:21 +0000
commiteb0ea8efbe932c140302e9f8da33a839bcd73146 (patch)
treee097625171b2b67ed5f5288ced67446608b9f633 /addons/web_editor/tests
parentf296992317e96562c66bd7ad59a5080d6c551ed5 (diff)
[ADD] web_editor,*: Tests for new structure of web editor
The refactoring also had to be done in order to create a set of unit tests. Each behavior can be tested, including the behaviors performed as a consequence of keyboard interactions (for instance: Enter, Tab...). This commit also contains some changes to test_utils that were necessary given the new structure of the wysiwyg editor. Co-authored-by: Gorash <chm@odoo.com>
Diffstat (limited to 'addons/web_editor/tests')
-rw-r--r--addons/web_editor/tests/__init__.py1
-rw-r--r--addons/web_editor/tests/test_ui.py13
2 files changed, 0 insertions, 14 deletions
diff --git a/addons/web_editor/tests/__init__.py b/addons/web_editor/tests/__init__.py
index b531e18c918..8b77588a13c 100644
--- a/addons/web_editor/tests/__init__.py
+++ b/addons/web_editor/tests/__init__.py
@@ -1,5 +1,4 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
-from . import test_ui
from . import test_converter
diff --git a/addons/web_editor/tests/test_ui.py b/addons/web_editor/tests/test_ui.py
deleted file mode 100644
index 9e9527e2d14..00000000000
--- a/addons/web_editor/tests/test_ui.py
+++ /dev/null
@@ -1,13 +0,0 @@
-# -*- coding: utf-8 -*-
-# Part of Odoo. See LICENSE file for full copyright and licensing details.
-
-import odoo.tests
-
-@odoo.tests.tagged('post_install', '-at_install')
-class TestUi(odoo.tests.HttpCase):
-
- def test_01_admin_rte(self):
- self.phantom_js("/web", "odoo.__DEBUG__.services['web_tour.tour'].run('rte')", "odoo.__DEBUG__.services['web_tour.tour'].tours.rte.ready", login='admin')
-
- def test_02_admin_rte_inline(self):
- self.phantom_js("/web", "odoo.__DEBUG__.services['web_tour.tour'].run('rte_inline')", "odoo.__DEBUG__.services['web_tour.tour'].tours.rte_inline.ready", login='admin')