| 1 |
import { registry } from "@web/core/registry"; |
| 2 |
|
| 3 |
registry.category("web_tour.tours").add("invited_on_payment_course_public", { |
| 4 |
steps: () => [ |
| 5 |
{ |
| 6 |
content: "Check that there is an identification banner", |
| 7 |
trigger: ".o_wslides_identification_banner a:contains(Log in)", |
| 8 |
}, |
| 9 |
{ |
| 10 |
trigger: ".o_wslides_js_course_join:not(:has(#add_to_cart)) a:contains(Log in)", |
| 11 |
}, |
| 12 |
{ |
| 13 |
trigger: |
| 14 |
".o_wslides_slides_list_slide:contains(Gardening: The Know-How):not(:has(.o_wslides_js_slides_list_slide_link))", |
| 15 |
}, |
| 16 |
{ |
| 17 |
isActive: ["body:has(.modal:not(.o_inactive_modal):contains(oops))"], |
| 18 |
content: "Close Oops modal", |
| 19 |
trigger: ".modal button:contains(close)", |
| 20 |
run: "click", |
| 21 |
}, |
| 22 |
{ |
| 23 |
trigger: ".o_wslides_identification_banner a.o_underline:contains(Log in)", |
| 24 |
run: "click", |
| 25 |
expectUnloadPage: true, |
| 26 |
}, |
| 27 |
{ |
| 28 |
trigger: 'input[id="password"]', |
| 29 |
run: "edit portal", |
| 30 |
}, |
| 31 |
{ |
| 32 |
trigger: 'button:contains("Log in")', |
| 33 |
run: "click", |
| 34 |
expectUnloadPage: true, |
| 35 |
}, |
| 36 |
{ |
| 37 |
trigger: "a:contains(Gardening: The Know-How)", |
| 38 |
content: "Check that preview slides are now accessible", |
| 39 |
}, |
| 40 |
|
| 41 |
{ |
| 42 |
trigger: "a[id=review-tab]", |
| 43 |
run: "click", |
| 44 |
}, |
| 45 |
{ |
| 46 |
content: "Wait for the whole page to load", |
| 47 |
trigger: "#chatterRoot:shadow .o-mail-Chatter", |
| 48 |
}, |
| 49 |
{ |
| 50 |
trigger: "a[id=home-tab]", |
| 51 |
run: "click", |
| 52 |
}, |
| 53 |
{ |
| 54 |
trigger: '.o_wslides_js_course_join:contains("Add to Cart")', |
| 55 |
content: "Check that the course can now be bought", |
| 56 |
}, |
| 57 |
], |
| 58 |
}); |