Automated tests for OpenLayers library (Cucumber, gherkin...)?

Viewed 17

I am actually coding an app with OpenLayers (v7) and Angular framework. I would like to automate some tests in order to check if everything is running as planned.

We use Cucumber (gherkin).

Does anyone has experienced building automated test with a similar tool for OpenLayers features ? For instance, I am looking forward to test some "clicks" feature. If a click on an OpenLayers vector then it should change its styling etc...

I could not find any resources so far neither here or in the library's github page.

As far as I understand it might not be possible because Cucumber is easy to use with HTML elements and OpenLayers uses a canvas that could not be used with the tests.

I would appreciate any lead as small it could be. Thanks in advance.

0 Answers
Related