mirror of
https://github.com/bringout/oca-ocb-sale.git
synced 2026-04-27 17:52:01 +02:00
19.0 vanilla
This commit is contained in:
parent
79f83631d5
commit
73afc09215
6267 changed files with 1534193 additions and 1130106 deletions
|
|
@ -0,0 +1,41 @@
|
|||
import { registry } from "@web/core/registry";
|
||||
|
||||
registry.category("web_tour.tours").add("invited_on_payment_course_logged", {
|
||||
steps: () => [
|
||||
{
|
||||
trigger: 'a:contains("Add to Cart")',
|
||||
content: "Check that the course can be bought but not joined",
|
||||
run: function () {
|
||||
if (document.querySelector(".o_wslides_js_course_join_link")) {
|
||||
console.error("The course should not be joinable before buying");
|
||||
}
|
||||
},
|
||||
},
|
||||
// Chatter is lazy loading. Wait for it.
|
||||
{
|
||||
trigger: "a[id=review-tab]",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Wait for the whole page to load",
|
||||
trigger: "#chatterRoot:shadow .o-mail-Chatter",
|
||||
},
|
||||
{
|
||||
trigger: "a[id=home-tab]",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: '.o_wslides_slides_list_slide:contains("Home Gardening")',
|
||||
content: "Check that non-preview slides are not accessible",
|
||||
run: function () {
|
||||
if (this.anchor.querySelector(".o_wslides_js_slides_list_slide_link")) {
|
||||
console.error("Invited attendee should not access non-preview slides");
|
||||
}
|
||||
},
|
||||
},
|
||||
{
|
||||
trigger: 'a:contains("Gardening: The Know-How")',
|
||||
content: "Check that preview slides are accessible",
|
||||
},
|
||||
],
|
||||
});
|
||||
|
|
@ -0,0 +1,58 @@
|
|||
import { registry } from "@web/core/registry";
|
||||
|
||||
registry.category("web_tour.tours").add("invited_on_payment_course_public", {
|
||||
steps: () => [
|
||||
{
|
||||
content: "Check that there is an identification banner",
|
||||
trigger: ".o_wslides_identification_banner a:contains(Log in)",
|
||||
},
|
||||
{
|
||||
trigger: ".o_wslides_js_course_join:not(:has(#add_to_cart)) a:contains(Log in)",
|
||||
},
|
||||
{
|
||||
trigger:
|
||||
".o_wslides_slides_list_slide:contains(Gardening: The Know-How):not(:has(.o_wslides_js_slides_list_slide_link))",
|
||||
},
|
||||
{
|
||||
isActive: ["body:has(.modal:not(.o_inactive_modal):contains(oops))"],
|
||||
content: "Close Oops modal",
|
||||
trigger: ".modal button:contains(close)",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: ".o_wslides_identification_banner a.o_underline:contains(Log in)",
|
||||
run: "click",
|
||||
expectUnloadPage: true,
|
||||
},
|
||||
{
|
||||
trigger: 'input[id="password"]',
|
||||
run: "edit portal",
|
||||
},
|
||||
{
|
||||
trigger: 'button:contains("Log in")',
|
||||
run: "click",
|
||||
expectUnloadPage: true,
|
||||
},
|
||||
{
|
||||
trigger: "a:contains(Gardening: The Know-How)",
|
||||
content: "Check that preview slides are now accessible",
|
||||
},
|
||||
// Chatter is lazy loading. Wait for it.
|
||||
{
|
||||
trigger: "a[id=review-tab]",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
content: "Wait for the whole page to load",
|
||||
trigger: "#chatterRoot:shadow .o-mail-Chatter",
|
||||
},
|
||||
{
|
||||
trigger: "a[id=home-tab]",
|
||||
run: "click",
|
||||
},
|
||||
{
|
||||
trigger: '.o_wslides_js_course_join:contains("Add to Cart")',
|
||||
content: "Check that the course can now be bought",
|
||||
},
|
||||
],
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue