fix: Use yarn to figure out bin path instead of npm

Npm v9 doesn't have bin anymore. This causes run-ui-tests to fail

refs:
- https://docs.npmjs.com/cli/v8/commands/npm-bin
- https://yarnpkg.com/cli/bin
This commit is contained in:
Gavin D'souza 2023-02-13 13:42:59 +05:30
parent c3e526b475
commit 01cc586e20

View file

@ -908,7 +908,7 @@ def run_ui_tests(
os.chdir(app_base_path)
node_bin = subprocess.getoutput("npm bin")
node_bin = subprocess.getoutput("yarn bin")
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"