[Koha-devel] Cross-browser automated testing in Javascript (Puppeteer/Playwright)

dcook at prosentient.com.au dcook at prosentient.com.au
Mon Feb 1 05:08:28 CET 2021


Hi all,

 

What do people think about doing our cross-browser automated testing in
Javascript rather than Perl? We're already using Node.js for generating
Koha's CSS:
https://wiki.koha-community.org/wiki/Working_with_SCSS_in_the_OPAC_and_staff
_interface. 

 

I've been playing with Puppeteer and Playwright lately for non-test related
browser automation, and they're pretty easy to work with. Playwright is
based on Puppeteer, and their basic APIs are the same, so fairly
interchangeable. (We'd need to use another library like Jest or
Playwright-test to do the test evaluation.)

 

It looks like we only have 6 files that use Selenium, so it wouldn't be a
big drama to replace them. 

 

There is a Perl library https://metacpan.org/pod/Playwright but it's just a
wrapper around Playwright anyway and it's so new that I'd be a bit wary of
using it.

 

David Cook

Software Engineer

Prosentient Systems

Suite 7.03

6a Glen St

Milsons Point NSW 2061

Australia

 

Office: 02 9212 0899

Online: 02 8005 0595

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.koha-community.org/pipermail/koha-devel/attachments/20210201/ddd1d336/attachment.htm>


More information about the Koha-devel mailing list