Support multiple js playwright scripts

Currently, we have the existing playwright script, however, it has several js files because we need to make the test more maintainable. Each js file is representing a feature testing,

featureA.js = search shopping cart
featureB.js = add shopping cart

In this current design, how do I allow uploading multiple js files?

Hi @xyngfei ,

You would need to create a Synthetics project and set it up which would bundle all the files (featurea.js and featureb.js) and the relevant journey files.

Please have a look at the setting up project monitors documentation. Let us know if you need help.

Thanks,
Vignesh

@vigneshshanmugam
Is there any boilerplate for beginners to get started on? so far, I only tried to use the recorder to copy the test script, and paste into the the textarea to try it out.

@xyngfei Missed this somehow, Yes you can setup a new synthetics project using the init command Use the Synthetics CLI | Elastic Observability [8.15] | Elastic

You would need to pass in the Kibana URL and APiKey which will setup the monitors and run them on the configured public/private locations of your choice. Let us know if you need any help.

Thanks,
Vignesh

I found a good example to cut down the whole learning journey