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