diff --git a/cypress/integration/dashboard_links.js b/cypress/integration/dashboard_links.js index b3cb8a540b..4c9fbc65e1 100644 --- a/cypress/integration/dashboard_links.js +++ b/cypress/integration/dashboard_links.js @@ -54,6 +54,7 @@ context("Dashboard links", () => { "frappe.tests.ui_test_helpers.create_dashboard_py_for_doctype", { name: doctype_a_with_child_table_with_link_to_doctype_b_name, + module: "custom", dashboard: doctype_a_with_child_table_with_link_to_doctype_b_dashboard, } diff --git a/frappe/tests/ui_test_helpers.py b/frappe/tests/ui_test_helpers.py index f25c0e42f5..a6c750e511 100644 --- a/frappe/tests/ui_test_helpers.py +++ b/frappe/tests/ui_test_helpers.py @@ -321,11 +321,12 @@ def update_child_table(name, doctype_to_link_name=None, doctype_to_link_fieldnam @whitelist_for_tests -def create_dashboard_py_for_doctype(name, dashboard): +def create_dashboard_py_for_doctype(name, module, dashboard): scrubbed_name = scrub(name) target_file = os.path.join( frappe.get_pymodule_path("frappe"), - "custom/doctype", + module, + "doctype", scrubbed_name, scrubbed_name + "_dashboard.py", )