[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:
Soukéina Bojabza
2024-10-01 16:08:17 +02:00
parent f6012ce86e
commit 4c3d843615
3 changed files with 0 additions and 3 deletions
-1
View File
@@ -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')