Skip to content

Commit 6a55917

Browse files
committed
[IMP] *: adapt test for shape options refactoring
* : theme_odoo_experts, theme_test_custo See also: odoo/odoo#229261 task-5156981 closes #1184 Signed-off-by: Benjamin Vray (bvr) <[email protected]>
1 parent 1e69f20 commit 6a55917

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

theme_odoo_experts/static/src/js/tour.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
/** @odoo-module */
22

33
import * as wTourUtils from '@website/js/tours/tour_utils';
4-
import { _t } from "@web/core/l10n/translation";
54

65
const snippets = [
76
{
@@ -52,8 +51,7 @@ wTourUtils.registerThemeHomepageTour("odoo_experts_tour", () => [
5251
...wTourUtils.insertSnippet(snippets[4]),
5352
...wTourUtils.insertSnippet(snippets[5]),
5453
...wTourUtils.clickOnSnippet(snippets[5], 'top'),
55-
wTourUtils.changeOption('FAQ Block', 'toggleBgShape', _t('Background Shape')),
56-
wTourUtils.clickOnElement("shape", ".builder_select_page [data-action-id='setBackgroundShape']"),
54+
...wTourUtils.changeBackgroundShape(),
5755
wTourUtils.goBackToBlocks(),
5856
...wTourUtils.insertSnippet(snippets[6]),
5957
]);

theme_test_custo/static/tests/tours/theme_menu_hierarchies.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ wTourUtils.registerWebsitePreviewTour('theme_menu_hierarchies', {
4747
run: "click",
4848
}, {
4949
content: 'The theme custom "Blob 01" shape should be listed and selected',
50-
trigger: '[data-container-title="Image"] [data-label="Shape"] div.dropdown:contains("Blob 01")',
50+
trigger: '[data-container-title="Image"] [data-label="Shape"] button.btn-secondary:contains("Blob 01")',
5151
}, {
5252
content: 'Click on section which has a bg shape',
5353
trigger: ':iframe #wrap .s_text_block[data-oe-shape-data]',

0 commit comments

Comments
 (0)