test(fusion_accounting_followup): 5 OWL tour tests
Made-with: Cursor
This commit is contained in:
@@ -0,0 +1,50 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import { registry } from "@web/core/registry";
|
||||
|
||||
// Tour 1: smoke
|
||||
registry.category("web_tour.tours").add("fusion_followup_smoke", {
|
||||
test: true,
|
||||
url: "/odoo",
|
||||
steps: () => [
|
||||
{ content: "Wait for app", trigger: ".o_navbar" },
|
||||
],
|
||||
});
|
||||
|
||||
// Tour 2: open partners list
|
||||
registry.category("web_tour.tours").add("fusion_followup_partners", {
|
||||
test: true,
|
||||
url: "/odoo/action-fusion_accounting_followup.action_fusion_followup_partners",
|
||||
steps: () => [
|
||||
{ content: "List view loads", trigger: ".o_list_view, .o_view_nocontent" },
|
||||
],
|
||||
});
|
||||
|
||||
// Tour 3: open levels
|
||||
registry.category("web_tour.tours").add("fusion_followup_levels", {
|
||||
test: true,
|
||||
url: "/odoo/action-fusion_accounting_followup.action_fusion_followup_levels",
|
||||
steps: () => [
|
||||
{ content: "Levels view loads", trigger: ".o_list_view, .o_view_nocontent" },
|
||||
],
|
||||
});
|
||||
|
||||
// Tour 4: history
|
||||
registry.category("web_tour.tours").add("fusion_followup_history", {
|
||||
test: true,
|
||||
url: "/odoo/action-fusion_accounting_followup.action_fusion_followup_runs",
|
||||
steps: () => [
|
||||
{ content: "History view loads", trigger: ".o_list_view, .o_view_nocontent" },
|
||||
],
|
||||
});
|
||||
|
||||
// Tour 5: batch wizard
|
||||
registry.category("web_tour.tours").add("fusion_followup_batch_wizard", {
|
||||
test: true,
|
||||
url: "/odoo/action-fusion_accounting_followup.action_fusion_batch_followup_wizard",
|
||||
steps: () => [
|
||||
{ content: "Wizard form opens", trigger: ".modal-dialog .o_form_view" },
|
||||
{ content: "Scope field exists", trigger: ".modal-dialog [name='scope']" },
|
||||
{ content: "Close wizard", trigger: ".modal-dialog .btn-secondary", run: "click" },
|
||||
],
|
||||
});
|
||||
Reference in New Issue
Block a user