When creating Synthetics monitors, If template strings are used in the Synthetics script steps for the Multi Step journeys, Execution of that monitor results in yaml parsing error on the Heartbeat side due to incorrect string serialization.
Steps to reproduce:
Create a Synthetics Multi Step monitor
Paste in any script containing steps that involves JS template literals. Example
Execution will result in error that calls out the YML parsing issue job could not be initialized: could not parse browser config: missing field accessing 'heartbeat.monitors.0.streams.0.source.inline.script' (source:'/heartbeat/heartbeat.yml')
Expected behavior: Steps should be executed successfully without any errors.
Kibana version: main
Describe the bug:
When creating Synthetics monitors, If template strings are used in the Synthetics script steps for the
Multi Step
journeys, Execution of that monitor results inyaml
parsing error on the Heartbeat side due to incorrect string serialization.Steps to reproduce:
JS template literals
. Examplejob could not be initialized: could not parse browser config: missing field accessing 'heartbeat.monitors.0.streams.0.source.inline.script' (source:'/heartbeat/heartbeat.yml')
Expected behavior: Steps should be executed successfully without any errors.
Screenshots (if relevant):