[FIX] website: conditional_visibility_1 tour breaks when option hidden

In the conditional_visibility_1 tour, when setting up the UTM Medium,
the "Email" value is searched for.

But if more records (like with the design-themes testing enabled) push
this value out of the autocomplete initial proposition, the value cannot
be selected.

This commit fixes it by adding a step that search for the "Email" value
to ensure it is in the autocomplete propositions' list.

closes odoo/odoo#138834

Note: detected on the Lastest Chrome builds on the runbot (nightly)
X-original-commit: 8993a187f9918478f106c1913885cf980a6a9698
Signed-off-by: Christophe Monniez (moc) <moc@odoo.com>
Signed-off-by: Pierre Paridans (app) <app@odoo.com>
This commit is contained in:
Pierre Paridans
2023-10-17 05:28:53 +00:00
parent 096fdd3eef
commit 6b3284a023
@@ -58,6 +58,11 @@ wTourUtils.changeOption('ConditionalVisibility', 'we-toggler'),
trigger: '[data-save-attribute="visibilityValueUtmMedium"] we-toggler',
run: 'click',
},
{
trigger: '[data-save-attribute="visibilityValueUtmMedium"] we-selection-items .o_we_m2o_search input',
content: 'Search for Email',
run: 'text Email',
},
{
trigger: '[data-save-attribute="visibilityValueUtmMedium"] we-selection-items [data-add-record="Email"]',
content: 'click on Email',