| 1 |
import { registry } from "@web/core/registry"; |
| 2 |
import { stepUtils } from "@web_tour/tour_utils"; |
| 3 |
|
| 4 |
registry.category("web_tour.tours").add("time_off_card_tour", { |
| 5 |
url: "/odoo", |
| 6 |
steps: () => [ |
| 7 |
stepUtils.showAppsMenuItem(), |
| 8 |
{ |
| 9 |
content: "Open Time Off app", |
| 10 |
trigger: '.o_app[data-menu-xmlid="hr_holidays.menu_hr_holidays_root"]', |
| 11 |
run: "click", |
| 12 |
}, |
| 13 |
{ |
| 14 |
content: "Click on the Time Off name", |
| 15 |
trigger: '.o_timeoff_name:not(:contains("Pending Requests"))', |
| 16 |
run: "click", |
| 17 |
}, |
| 18 |
{ |
| 19 |
content: "Ensure the list view for Time Off requests is displayed", |
| 20 |
trigger: ".o_list_view", |
| 21 |
}, |
| 22 |
{ |
| 23 |
content: "Navigate back to the previous view", |
| 24 |
trigger: ".o_back_button", |
| 25 |
run: "click", |
| 26 |
}, |
| 27 |
{ |
| 28 |
content: "Click on the time off card to open the detailed popover.", |
| 29 |
trigger: "span.o_timeoff_details", |
| 30 |
run: "click", |
| 31 |
}, |
| 32 |
{ |
| 33 |
content: "Verify that the popover is displayed after clicking on the time off details.", |
| 34 |
trigger: ".o_popover", |
| 35 |
}, |
| 36 |
{ |
| 37 |
content: "Click on the link containing 'Allocated'.", |
| 38 |
trigger: ".o_popover .btn-link:contains('Allocated')", |
| 39 |
run: "click", |
| 40 |
}, |
| 41 |
{ |
| 42 |
content: "Ensure the list view for Time Off requests is displayed", |
| 43 |
trigger: ".o_list_view", |
| 44 |
}, |
| 45 |
{ |
| 46 |
content: "Navigate back to the previous view", |
| 47 |
trigger: ".o_back_button", |
| 48 |
run: "click", |
| 49 |
}, |
| 50 |
{ |
| 51 |
content: "Click on the time off card to open the detailed popover.", |
| 52 |
trigger: "span.o_timeoff_details", |
| 53 |
run: "click", |
| 54 |
}, |
| 55 |
{ |
| 56 |
content: "Click on the link containing 'Approved'", |
| 57 |
trigger: ".o_popover .btn-link:contains('Approved')", |
| 58 |
run: "click", |
| 59 |
}, |
| 60 |
{ |
| 61 |
content: "Ensure the list view for Time Off requests is displayed", |
| 62 |
trigger: ".o_list_view", |
| 63 |
}, |
| 64 |
{ |
| 65 |
content: "Navigate back to the previous view", |
| 66 |
trigger: ".o_back_button", |
| 67 |
run: "click", |
| 68 |
}, |
| 69 |
{ |
| 70 |
content: "Click on the time off card to open the detailed popover.", |
| 71 |
trigger: "span.o_timeoff_details", |
| 72 |
run: "click", |
| 73 |
}, |
| 74 |
{ |
| 75 |
content: "Click on the link containing 'Planned'", |
| 76 |
trigger: ".o_popover .btn-link:contains('Planned')", |
| 77 |
run: "click", |
| 78 |
}, |
| 79 |
{ |
| 80 |
content: "Ensure the list view for Time Off requests is displayed", |
| 81 |
trigger: ".o_list_view", |
| 82 |
}, |
| 83 |
], |
| 84 |
}); |