[FIX] theme_*: Update homepage tours

Steps to reproduce
==================

Run the `test_02_homepage_tour_every_theme` tour.

Cause of the issue
==================

There is an homepage tour for every theme. Since the owl conversion of
web_tour, none of the custom theme tour were run and for every website,
the default homepage tour was used instead.

Some updates to those themes caused the tours to fail, but since they
weren't run, no one noticed.

The issue has been fixed in community:
https://github.com/odoo/odoo/pull/142350

Solution
========

Since 1aa6700c98,
some h1 tags were replaced by h2.

Since 68c68740bf,
The banner has been replaced by a text cover.

opw-3595512

Part-of: odoo/design-themes#745
This commit is contained in:
Hubert Van de Walle (huvw)
2023-11-20 15:42:47 +01:00
parent 758e2ab819
commit 2e263a4f6b
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ import wTourUtils from '@website/js/tours/tour_utils';
const snippets = [
{
id: 's_text_cover',
name: 'Banner',
name: 'Text Cover',
},
{
id: 's_images_wall',
+1 -1
View File
@@ -37,7 +37,7 @@ wTourUtils.registerThemeHomepageTour("artists_tour", () => [
wTourUtils.goBackToBlocks(),
wTourUtils.dragNDrop(snippets[2]),
wTourUtils.dragNDrop(snippets[3]),
wTourUtils.clickOnText(snippets[3], 'h1'),
wTourUtils.clickOnText(snippets[3], 'h2'),
wTourUtils.goBackToBlocks(),
wTourUtils.dragNDrop(snippets[4]),
wTourUtils.dragNDrop(snippets[5]),
+1 -1
View File
@@ -33,7 +33,7 @@ const snippets = [
wTourUtils.registerThemeHomepageTour("notes_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"notes-1"'),
wTourUtils.dragNDrop(snippets[0]),
wTourUtils.clickOnText(snippets[0], 'h1'),
wTourUtils.clickOnText(snippets[0], 'h2'),
wTourUtils.goBackToBlocks(),
wTourUtils.dragNDrop(snippets[1]),
wTourUtils.dragNDrop(snippets[2]),
+1 -1
View File
@@ -33,7 +33,7 @@ wTourUtils.registerThemeHomepageTour("yes_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"yes-3"'),
wTourUtils.dragNDrop(snippets[0]),
wTourUtils.dragNDrop(snippets[1]),
wTourUtils.clickOnText(snippets[1], 'h1'),
wTourUtils.clickOnText(snippets[1], 'h2'),
wTourUtils.goBackToBlocks(),
wTourUtils.dragNDrop(snippets[2]),
wTourUtils.dragNDrop(snippets[3]),