Open
Description
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 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
step('Go to example,com', async () => {
const url = "https://example.com"
await page.goto(`${url}`);
});
- 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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment