From 3751379f1e9a4c215fb6eb898b4ccc67659b9ace Mon Sep 17 00:00:00 2001 From: stephanchrst Date: Tue, 10 May 2022 21:51:50 +0700 Subject: initial commit 2 --- addons/portal/static/tests/tours/portal.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 addons/portal/static/tests/tours/portal.js (limited to 'addons/portal/static/tests/tours') diff --git a/addons/portal/static/tests/tours/portal.js b/addons/portal/static/tests/tours/portal.js new file mode 100644 index 00000000..e45cf1f1 --- /dev/null +++ b/addons/portal/static/tests/tours/portal.js @@ -0,0 +1,22 @@ +odoo.define('portal.tour', function (require) { +'use strict'; + +var tour = require("web_tour.tour"); + +tour.register('portal_load_homepage', { + test: true, + url: '/my', +}, + [ + { + content: "Check portal is loaded", + trigger: 'a[href*="/my/account"]:contains("Edit"):first', + }, + { + content: "Load my account details", + trigger: 'input[value="Joel Willis"]' + } + ] +); + +}); -- cgit v1.2.3