Skip to content

Commit

Permalink
[FIX]document_page_portal: fixed tour_js file
Browse files Browse the repository at this point in the history
  • Loading branch information
Davit Lomauridze committed May 21, 2024
1 parent cf58eb1 commit 2ea3d89
Showing 1 changed file with 38 additions and 39 deletions.
77 changes: 38 additions & 39 deletions document_page_portal/static/src/js/document_page_portal_tour.js
Original file line number Diff line number Diff line change
@@ -1,45 +1,44 @@
odoo.define("document_page_portal.tour", function (require) {
"use strict";
/** @odoo-module **/
import { _t } from 'web.core';
import { Markup } from 'web.utils';
import tour from 'web_tour.tour';

var tour = require("web_tour.tour");

tour.register(
"document_page_portal_tour",
tour.register(
"document_page_portal_tour",
{
test: true,
url: "/my",
},
[
{
content: "Check document_page_portal is loaded",
trigger:
'a[href*="/my/knowledge/documents"]:contains("Knowledge Documents"):first',
},
{
test: true,
url: "/my",
content: "Check public document_page is loaded",
trigger:
'a[href*="/knowledge/document/"]:contains("Test Public Page 1"):first',
},
[
{
content: "Check document_page_portal is loaded",
trigger:
'a[href*="/my/knowledge/documents"]:contains("Knowledge Documents"):first',
},
{
content: "Check public document_page is loaded",
trigger:
'a[href*="/knowledge/document/"]:contains("Test Public Page 1"):first',
},
]
);
]
);

tour.register(
"document_page_portal_search_tour",
tour.register(
"document_page_portal_search_tour",
{
test: true,
url: "/my/knowledge/documents",
},
[
{
content: "Search",
trigger: "input[name='search']",
run: "text Test",
},
{
test: true,
url: "/my/knowledge/documents",
content: "Click Search.",
extra_trigger: "#wrap:not(:has(input[name=search]:propValue('')))",
trigger: ".search-submit",
},
[
{
content: "Search",
trigger: "input[name='search']",
run: "text Test",
},
{
content: "Click Search.",
extra_trigger: "#wrap:not(:has(input[name=search]:propValue('')))",
trigger: ".search-submit",
},
]
);
});
]
);

0 comments on commit 2ea3d89

Please sign in to comment.