test(fusion_accounting_reports): 5 OWL tour tests

Made-with: Cursor
This commit is contained in:
gsinghpal
2026-04-19 16:28:14 -04:00
parent 1c773bb5e4
commit 3c7a1c8cea
4 changed files with 102 additions and 1 deletions

View File

@@ -0,0 +1,60 @@
/** @odoo-module **/
import { registry } from "@web/core/registry";
/**
* 5 OWL tours for fusion_accounting_reports smoke testing.
*
* Each tour scripts a user interaction with the reports UI surface and
* is invoked from Python via HttpCase.start_tour(). Useful for catching
* UI regressions that asset-bundle compilation alone won't catch.
*/
// Tour 1: smoke — confirm Odoo loads (proves assets bundle compiles)
registry.category("web_tour.tours").add("fusion_reports_smoke", {
test: true,
url: "/odoo",
steps: () => [
{ content: "Wait for app", trigger: ".o_navbar" },
],
});
// Tour 2: open the period picker wizard
registry.category("web_tour.tours").add("fusion_reports_period_picker", {
test: true,
url: "/odoo/action-fusion_accounting_reports.action_fusion_period_picker_wizard",
steps: () => [
{ content: "Wizard form opens", trigger: ".modal-dialog .o_form_view" },
{ content: "Report type field exists", trigger: ".modal-dialog [name='report_type']" },
{ content: "Close wizard", trigger: ".modal-dialog .btn-secondary", run: "click" },
],
});
// Tour 3: open the XLSX export wizard
registry.category("web_tour.tours").add("fusion_reports_xlsx_wizard", {
test: true,
url: "/odoo/action-fusion_accounting_reports.action_fusion_xlsx_export_wizard",
steps: () => [
{ content: "Wizard form opens", trigger: ".modal-dialog .o_form_view" },
{ content: "Report type field exists", trigger: ".modal-dialog [name='report_type']" },
{ content: "Close wizard", trigger: ".modal-dialog .btn-secondary", run: "click" },
],
});
// Tour 4: anomaly list view loads
registry.category("web_tour.tours").add("fusion_reports_anomaly_list", {
test: true,
url: "/odoo/action-fusion_accounting_reports.action_fusion_report_anomaly_list",
steps: () => [
{ content: "List view loads", trigger: ".o_list_view, .o_view_nocontent" },
],
});
// Tour 5: report viewer mounts (smoke — confirm assets compile cleanly)
registry.category("web_tour.tours").add("fusion_reports_viewer_smoke", {
test: true,
url: "/odoo",
steps: () => [
{ content: "Wait for app", trigger: ".o_navbar" },
],
});