Files
enterprise-addons/appointment_crm/static/tests/tours/appointment_crm_steps.js
T

26 lines
719 B
JavaScript

class AppointmentCrmSteps {
_goToAppointment(name) {
/**
* This method exists to be overridden as the steps to go to the
* appointment change in sub-modules.
* @param {String} name - The name of the appointment
*/
return [
{
content: "Select the appointment.",
trigger: "#appointment_type_id",
run: `selectByLabel ${name}`,
},
{
content: "Confirm the selection.",
trigger: ".o_appointment_select_button",
run: "click",
expectUnloadPage: true,
},
];
}
}
export default AppointmentCrmSteps;