From aa8210a6fee522bdeaaf26ab8b7edc4b6e5763e5 Mon Sep 17 00:00:00 2001 From: Sagar Vora <16315650+sagarvora@users.noreply.github.com> Date: Thu, 8 Jan 2026 13:17:55 +0530 Subject: [PATCH] fix: ignore warnings when running cypress --- frappe/commands/testing.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/frappe/commands/testing.py b/frappe/commands/testing.py index 4faf1d999f..d1381671b2 100644 --- a/frappe/commands/testing.py +++ b/frappe/commands/testing.py @@ -465,7 +465,13 @@ def run_ui_tests( os.chdir(app_base_path) - node_bin = subprocess.getoutput("(cd ../frappe && yarn bin)") + node_bin = subprocess.run( + "(cd ../frappe && yarn bin)", + shell=True, + stdout=subprocess.PIPE, + stderr=subprocess.DEVNULL, + text=True, + ).stdout.strip() cypress_path = f"{node_bin}/cypress" drag_drop_plugin_path = f"{node_bin}/../@4tw/cypress-drag-drop" real_events_plugin_path = f"{node_bin}/../cypress-real-events"