console.log()
doesn't work in evalScript
command when $
(dollar) is in the string
#1760
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
Describe the bug
Adding a $ (dollar sign) within the
${}
for inline-javascript for use as a string does not work as expected. It works with just a regular plain string e.g."$100"
but if you need to use it with an env variable then it goes awry.Case 1:
- evalScript: ${console.log('$')}
Case 2:
- text: '${"$" + ENV_VARIABLE + "+"}'
This was mentioned in Slack as well.
To Reproduce
0. Write the test with the single line
maestro test ...
Expected behavior
For cases written above:
assertVisible
etc works as expected with this while parsing the screen as usualScreenshots
N/A
Environment information (please complete the following information):
Workspace (if applicable)
N/A
Bugreport output (if applicable)
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: