[REF] theme_*: remove extra_trigger

In order to simplify the tours API, it was decided to remove the
extra_trigger key from the steps.
To check that an element is in the DOM, simply create a step with
a trigger.

task~3974087

closes odoo/design-themes#816

Related: odoo/odoo#171309
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
Pierre Pulinckx (PIPU)
2024-07-01 14:02:37 +02:00
parent 3cd215853a
commit 96c4cb68ad
27 changed files with 216 additions and 216 deletions
+8 -8
View File
@@ -32,15 +32,15 @@ const snippets = [
wTourUtils.registerThemeHomepageTour("notes_tour", () => [
wTourUtils.assertCssVariable('--color-palettes-name', '"notes-1"'),
wTourUtils.dragNDrop(snippets[0]),
wTourUtils.clickOnText(snippets[0], 'h2'),
...wTourUtils.dragNDrop(snippets[0]),
...wTourUtils.clickOnText(snippets[0], 'h2'),
wTourUtils.goBackToBlocks(),
wTourUtils.dragNDrop(snippets[1]),
wTourUtils.dragNDrop(snippets[2]),
wTourUtils.clickOnSnippet(snippets[2]),
...wTourUtils.dragNDrop(snippets[1]),
...wTourUtils.dragNDrop(snippets[2]),
...wTourUtils.clickOnSnippet(snippets[2]),
wTourUtils.changeOption('ContainerWidth', 'we-button-group.o_we_user_value_widget', _t('width')),
wTourUtils.goBackToBlocks(),
wTourUtils.dragNDrop(snippets[3]),
wTourUtils.dragNDrop(snippets[4]),
wTourUtils.dragNDrop(snippets[5]),
...wTourUtils.dragNDrop(snippets[3]),
...wTourUtils.dragNDrop(snippets[4]),
...wTourUtils.dragNDrop(snippets[5]),
]);