summaryrefslogtreecommitdiff
path: root/addons/website/static/tests
diff options
context:
space:
mode:
authorRomeo Fragomeli <rfr@odoo.com>2020-03-05 13:44:24 +0000
committerAdrien Dieudonne <adr@odoo.com>2020-03-11 10:10:16 +0000
commitab2e3fdb7d801f8846b84733a47127e818a49d5b (patch)
tree27ad68a03a0c57a571902ba4e1bfd114bbf836a8 /addons/website/static/tests
parentedf4f5c781fa75ad1506912c4494006caddcaa4e (diff)
[REF] *: add tour steps utils
This commit moves some step utils in a dedicated file and add new ones. These steps will be very useful for the Main Flow Tour to avoid duplicated code. To do this, we also had to transform it into functions to allow utils to call each other. Existing one are converted for standardization purpose. Note that 'WEBSITE_NEW_PAGE' wasn't considered as an util. This is a very simple step only used twice.
Diffstat (limited to 'addons/website/static/tests')
-rw-r--r--addons/website/static/tests/tours/dashboard_tour.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/website/static/tests/tours/dashboard_tour.js b/addons/website/static/tests/tours/dashboard_tour.js
index b02747c6caa..de1a5f10473 100644
--- a/addons/website/static/tests/tours/dashboard_tour.js
+++ b/addons/website/static/tests/tours/dashboard_tour.js
@@ -6,7 +6,7 @@ var tour = require("web_tour.tour");
tour.register("backend_dashboard", {
test: true,
url: "/web",
-}, [tour.STEPS.SHOW_APPS_MENU_ITEM,
+}, [tour.stepUtils.showAppsMenuItem(),
{
trigger: 'a[data-menu-xmlid="website.menu_website_configuration"]',
}, {