[IMP] test_themes: add a test which goes over all theme tours

Part of https://github.com/odoo/design-themes/pull/2
task-2491890

X-original-commit: 52d224fd9b
This commit is contained in:
qsm-odoo
2021-05-12 10:22:32 +00:00
parent 2da6c2e84d
commit 336d7d9fe2
+10
View File
@@ -1,6 +1,8 @@
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.
import unittest
from odoo.tests import HttpCase, tagged
@@ -37,3 +39,11 @@ class Crawler(HttpCase):
# 2. Test as admin
self.authenticate('admin', 'admin')
test_crawling()
# Does not work without editor fix but really useful to build the pages automatically with cr.commit()
@unittest.skip
def test_02_homepage_tour_every_theme(self):
Website = self.env['website']
websites_themes = Website.get_test_themes_websites()
for website in websites_themes:
self.start_tour(f"/?fw={website.id}", 'homepage', login='admin')