bemade-addons/static/tests/tours/task_equipment_tour.js

47 lines
No EOL
1.6 KiB
JavaScript

/** @odoo-module **/
import tour from 'web_tour.tour';
tour.register('task_equipment_tour', {
test: true,
url: '/web',
}, [tour.stepUtils.showAppsMenuItem(), {
content: 'Navigate to the Service menu',
trigger: '.o_app[data-menu-xmlid="industry_fsm.fsm_menu_root"]',
}, {
content: 'Navigate to the Clients submenu',
trigger: '.o_app[data-menu-xmlid="bemade_fsm.menu_service_client"]',
}, {
content: 'Navigate to the Equipment menu',
trigger: '.o_app[data-menu-xmlid="bemade_fsm.menu_service_client_equipment"]',
}, {
content: 'Click the create button',
trigger: '.o_list_button_add',
extra_trigger: 'li.breadcrumb-item.active:has(span:contains(Equipment))',
}, {
content: 'Add a tag',
trigger: 'input[name="pid_tag"]',
run: 'text TestPIDTag',
}, {
content: 'Set the name',
trigger: 'input[name="name"]',
run: 'text Test Tag Name',
}, {
content: 'Set the partner',
trigger: 'input[id="o_field_input_303"]',
run: 'text Test Partner Company',
}, {
content: 'Click the partner in the dropdown',
trigger: 'li a.dropdown-item:contains(Test Partner Company)',
}
// Fill in the required fields, including creating a new Client Location and PID Tag
// Navigate to the client location, then to the client, making sure that the equipment and client location links appear
// Now make another one, but from the Partner interface
// Navigate to Service > Clients > Clients
// Search for and open the test client
// On the "Locations" tab, add a location
// Open the location and add a new Equipment to its equipment list
// Create a task in the test project
])