mikail10000000's avatar

How to locally test cross website app

Hi, I'm writing an app that will involve an iframe and pulling a js widget from my website to a third party website , and I want to test it locally , I use laragon as my local dev , what would be a good way to set it up, thank You

0 likes
1 reply
m7vm7v's avatar

I would suggest that you could create a /widget-sample route that will return from the controller a 'blank'/the default layout page.

The test would look like -

//when I visit that page
//I expect to see empty page/layout
//when I add/inject the widget to the page - as that is what would the user do, it will inject the code into their page.
//I expect to see the title of the widget, some body and some functionality that you know its been written for that widget

Please or to participate in this conversation.