Hi Team,
Please view the below of our questions/queries:
What are we trying to do?
We are trying to validate if the page is working or not based on action of submit button in the heartbeat.yml file inline script.
what are we expecting the output?
IF submit succeeds, app shows up monitors in the kibana dashboard
IF submit fails or redirects to an error page, app shows down monitors in the kibana dashboard
What are we actually seeing?
app shows up monitors even when submit redirects to error
Please confirm what is the actual scenario is considering as per the elastic documentation in both the scenarios of up and down monitors.
below is the sample inline script we are trying for this testing:
'''
step('submit form', async () => {
await (await page.$('form')).evaluate(form => form.submit());
});
'''