| 1 | import { registry } from "@web/core/registry"; |
| 2 | |
| 3 | registry.category("web_tour.tours").add("mail_attachment_removal_tour", { |
| 4 | steps: () => [ |
| 5 | |
| 6 | { |
| 7 | content: "click on send by email", |
| 8 | trigger: ".o_statusbar_buttons > button[name='action_quotation_send']", |
| 9 | run: "click" |
| 10 | }, |
| 11 | { |
| 12 | content: "save a new layout", |
| 13 | trigger: ".o_technical_modal button[name='document_layout_save']", |
| 14 | run: "click" |
| 15 | }, |
| 16 | { |
| 17 | content: "delete attachment", |
| 18 | trigger: ".o_field_widget[name='attachment_ids'] li > button .fa-times", |
| 19 | run: "click" |
| 20 | }, |
| 21 | { |
| 22 | content: "send the email", |
| 23 | trigger: ".o_mail_send", |
| 24 | run: "click" |
| 25 | }, |
| 26 | { |
| 27 | content: "confirm quotation", |
| 28 | trigger: "button[name='action_confirm']", |
| 29 | run: "click" |
| 30 | } |
| 31 | ] |
| 32 | }) |