36 lines
1000 B
JavaScript
36 lines
1000 B
JavaScript
|
/* @odoo-module */
|
||
|
|
||
|
import { registry } from "@web/core/registry";
|
||
|
|
||
|
/**
|
||
|
* Verify that a user can modify their own profile information.
|
||
|
*/
|
||
|
registry.category("web_tour.tours").add("mail/static/tests/tours/user_modify_own_profile_tour.js", {
|
||
|
test: true,
|
||
|
steps: () => [
|
||
|
{
|
||
|
content: "Open user account menu",
|
||
|
trigger: ".o_user_menu button",
|
||
|
},
|
||
|
{
|
||
|
content: "Open preferences / profile screen",
|
||
|
trigger: "[data-menu=settings]",
|
||
|
},
|
||
|
{
|
||
|
content: "Update the email address",
|
||
|
trigger: 'div[name="email"] input',
|
||
|
run: "text updatedemail@example.com",
|
||
|
},
|
||
|
{
|
||
|
content: "Save the form",
|
||
|
trigger: 'button[name="preference_save"]',
|
||
|
extra_trigger: "body.modal-open",
|
||
|
},
|
||
|
{
|
||
|
content: "Wait until the modal is closed",
|
||
|
isCheck: true,
|
||
|
trigger: "body:not(.modal-open)",
|
||
|
},
|
||
|
],
|
||
|
});
|