Files
design-themes/theme_test_custo/tests/test_theme_creation.py
T
qsm-odoo c0d3a66313 [FIX] theme_test_custo: fix nightly theme preview tour
The theme preview feature before selection was disabled in [1]. This
commit disables the related tour steps that were testing it a nightly
tour... that was red since then.

[1]: https://github.com/odoo/odoo/commit/7cb71e9479df0ee9af0b7ad39302857666726177

Related to task-3454790

closes odoo/design-themes#1082

X-original-commit: b4dfb01abe
Related: odoo/odoo#210890
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
2025-05-22 20:28:05 +00:00

23 lines
1.0 KiB
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo.tests import HttpCase, tagged
from odoo.addons.website.tests.test_configurator import TestConfiguratorCommon
# TODO: `test_themes` tag should not be there, runbot config should be adapted
# to test this module too. There is a special config for the theme repo.
@tagged('post_install', '-at_install', 'test_themes')
class Crawler(HttpCase):
def test_01_menu_hierarchies(self):
theme_custo = self.env.ref('base.module_theme_test_custo')
website = self.env['website'].browse(1)
website.theme_id = theme_custo.id
theme_custo.with_context(load_all_views=True, apply_new_theme=True)._theme_load(website)
self.start_tour('/@/example', "theme_menu_hierarchies", login='admin')
@tagged('post_install', '-at_install')
class TestThemeConfigurator(TestConfiguratorCommon):
def test_website_theme_preview(self):
self.start_tour('/web#action=website.action_website_configuration', 'website_theme_preview', login="admin")