[Maestro 1.36.0] console.log statements not output to terminal from runScript commands within flows #1710
Labels
bug
Something isn't working
js
Related to JavaScript support
maestro cli
Related to the command-line Maestro tool
Describe the bug
When executing JavaScript files before a flow is executed, the log statements appear as expected in the terminal, ie:
However, if the same file is executed within the flow, ie if myFlow.yaml above were to contain:
Any log statements within the scripts do not appear in the terminal.
To Reproduce
Create script.js with below, and replicate using the two options for executing the script above:
Expected behavior
console.log output to always appear in the terminal when running flow for debugging purposes.
Screenshots
![image](https://github.com/mobile-dev-inc/maestro/assets/8707115/dd9c9845-af82-401c-b13d-37392c12e34f)
An example of the difference in output can be seen below, where the script.js is executed once before the flow (with output), and the second during a flow execution:
Environment information (please complete the following information):
The text was updated successfully, but these errors were encountered: