| 1 | import { registry } from "@web/core/registry"; |
| 2 | |
| 3 | registry.category("web_tour.tours").add('website_profile_description', { |
| 4 | url: "/profile/users", |
| 5 | steps: () => [{ |
| 6 | content: "Click on one user profile card", |
| 7 | trigger: "div[onclick]:contains(\"test_user\")", |
| 8 | run: "click", |
| 9 | expectUnloadPage: true, |
| 10 | }, { |
| 11 | content: "Edit profile", |
| 12 | trigger: "a:contains('EDIT PROFILE')", |
| 13 | run: "click", |
| 14 | }, { |
| 15 | content: "Add some content", |
| 16 | trigger: ".odoo-editor-editable", |
| 17 | run: "editor content <p>code here</p>", |
| 18 | }, { |
| 19 | content: "Save changes", |
| 20 | trigger: "button:contains('Update')", |
| 21 | run: "click", |
| 22 | expectUnloadPage: true, |
| 23 | }, { |
| 24 | content: "Check the content is saved", |
| 25 | trigger: "span[data-oe-field='website_description']:contains('content <p>code here</p>')", |
| 26 | }] |
| 27 | }) |