mirror of
https://github.com/odoo/design-themes.git
synced 2025-10-07 01:18:52 +07:00
[FIX] test_themes, theme_*: fix not working theme tours
*: loftspace, real_estate In commit [1], the test for the "Loftspace" and "Real Estate" themes has been disabled, as their tour was not working. This commit fixes the tours and reenables the test for these themes. The issue was coming from the fact that they were trying to drop more snippets than there really are, which made an acces to the array at an inexisting index. [1]: https://github.com/odoo/design-themes/commit/04f90cd883826bb8e4cbf8975aff6c14bf3c64db closes odoo/design-themes#976 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
@@ -48,6 +48,5 @@ class Crawler(HttpCase):
|
||||
# when designing a theme at the moment.
|
||||
Website = self.env['website']
|
||||
websites_themes = Website.get_test_themes_websites()
|
||||
websites_themes = [theme for index, theme in enumerate(websites_themes) if index not in (17, 23)] # FIXME
|
||||
for website in websites_themes:
|
||||
self.start_tour(f"/web?fw={website.id}", 'homepage', login='admin')
|
||||
|
||||
Reference in New Issue
Block a user