Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Console.error doesn't do anything #2055

Open
1 task done
Fishbowler opened this issue Sep 15, 2024 · 0 comments
Open
1 task done

Console.error doesn't do anything #2055

Fishbowler opened this issue Sep 15, 2024 · 0 comments
Labels
bug Something isn't working js Related to JavaScript support maestro cli Related to the command-line Maestro tool P2 Important and valid issues not at the top of the work list

Comments

@Fishbowler
Copy link
Contributor

Fishbowler commented Sep 15, 2024

Is there an existing issue for this?

  • I have searched the existing issues and didn't find mine.

Steps to reproduce

Found whilst trying to repro nicely for #2001

Repro steps

  1. Clone https://github.com/Fishbowler/maestro-examples
  2. cd logging
  3. maestro test flow.yaml

console.error doesn't error, like console.potato would, but it doesn't create any output or add anything to the logMessages metadata in the logs.

Actual results

Console output:

 ║  > Flow                                                          
 ║                                                                  
 ║    ✅   Run loggingInJS_simple.js                                
 ║         Log messages:                                            
 ║           A simple message                                       
 ║    ✅   Run loggingInJS_withEnv.js                               
 ║         Log messages:                                            
 ║           An env var - TESTDATA is potato                        
 ║    ✅   Run loggingInJS_withVar.js                               
 ║         Log messages:                                            
 ║           A variable - TESTDATA is banana                        
 ║    ✅   Run ${console.log('Hello from evalScript')}              
 ║         Log messages:                                            
 ║           Hello from evalScript
 ║    ✅   Run console.log('This will not log')
 ║    ✅   Run ${console.error('Error from evalScript')}

Log output:

maestro.log

Expected results

Output to console and logfile

About app

No app needed.

About environment

Tested on an Macbook M3 Pro

Maestro version

1.38.1

How did you install Maestro?

install script (https://get.maestro.mobile.dev)

@bartekpacia bartekpacia added bug Something isn't working maestro cli Related to the command-line Maestro tool js Related to JavaScript support P2 Important and valid issues not at the top of the work list labels Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working js Related to JavaScript support maestro cli Related to the command-line Maestro tool P2 Important and valid issues not at the top of the work list
Projects
None yet
Development

No branches or pull requests

2 participants