Select to view content in your preferred language

playwright and arcgis js sdk e2e tests

68
1
Thursday
Aeseir
by
Frequent Contributor

I am looking to integrate playwright in my map testing as i built some custom code around core library to take out the human factor, yet I cannot seem to find any documentation so that I can ensure to do it properly.

Is anyone been able to do this successfully and is there any documentation anywhere that can help provide some insights?

0 Kudos
1 Reply
ReneRubalcava
Esri Frequent Contributor

We don't have any doc directly for this, but Playwright tests everything in the browser, so you would use Playwrights test method that returns a page method for selection you can use.

https://playwright.dev/docs/api/class-test

I don't have anything on hand to demo, but interaction with map and other widgets/components should be same as other HTML elements. I think trickiest part would be trying "click" on a feature to show popup, that I'm not sure on. But you can use page selectors to click buttons and other bits and test for UI state.

Is there a particular error or workflow you are getting blocked at with it?

0 Kudos