summaryrefslogtreecommitdiff
path: root/addons/website/tests/test_ui.py
diff options
context:
space:
mode:
authorBenjamin Vray <bvr@odoo.com>2020-03-13 12:59:25 +0000
committerqsm-odoo <qsm@odoo.com>2020-07-17 11:28:11 +0000
commita2fd2dacd977fb137c1aea7b5f9ee689f77ab05d (patch)
treeddbe5277eba78dc7c0b319764551a4826a1c0572 /addons/website/tests/test_ui.py
parent316ceaf4d8e27d7e4ea4e95365a16800fa4884d1 (diff)
[IMP] website: review carousel snippet
Add the width option for each slides in the carousel snippet. Remove share links from the third slide of the carousel. Part of https://github.com/odoo/odoo/pull/45096 task-2162952
Diffstat (limited to 'addons/website/tests/test_ui.py')
-rw-r--r--addons/website/tests/test_ui.py21
1 files changed, 20 insertions, 1 deletions
diff --git a/addons/website/tests/test_ui.py b/addons/website/tests/test_ui.py
index ec538bf7903..8ea2bcd9fcc 100644
--- a/addons/website/tests/test_ui.py
+++ b/addons/website/tests/test_ui.py
@@ -62,7 +62,7 @@ class TestUiHtmlEditor(odoo.tests.HttpCase):
Website = self.env['website']
View = self.env['ir.ui.view']
Page = self.env['website.page']
-
+
self.generic_view = View.create({
'name': 'Generic',
'type': 'qweb',
@@ -169,4 +169,23 @@ class TestUi(odoo.tests.HttpCase):
self.start_tour("/", "public_user_editor", login=None)
def test_07_snippet_version(self):
+ website_snippets = self.env.ref('website.snippets')
+ self.env['ir.ui.view'].create([{
+ 'name': 'Test snip',
+ 'type': 'qweb',
+ 'key': 'website.s_test_snip',
+ 'arch': """
+ <section class="s_test_snip">
+ <t t-snippet-call="website.s_share"/>
+ </section>
+ """,
+ }, {
+ 'type': 'qweb',
+ 'inherit_id': website_snippets.id,
+ 'arch': """
+ <xpath expr="//t[@t-snippet='website.s_parallax']" position="after">
+ <t t-snippet="website.s_test_snip" t-thumbnail="/website/static/src/img/snippets_thumbs/s_website_form.png"/>
+ </xpath>
+ """,
+ }])
self.start_tour("/", 'snippet_version', login='admin')