Fork me on GitHub
#clojure-europe
<
2024-02-16
>
slipset04:02:54

Morning!

🌅 1
schmalz08:02:36

Morning all.

pez08:02:33

Morning!

maleghast08:02:22

madainn mhath :flag-scotland:

reefersleep09:02:44

Good morning 🙂

ray09:02:21

Good morning

reefersleep10:02:26

Playwright for Java or Playwright for js - which one to pick? I'd like to call it from either Clojurescript or Clojure to do some testing of our frontend. There's a Clojure Playwright wrapper called https://github.com/pfeodrippe/wally , but very alpha and development is not very active, it seems. No known CLJS wrapper. We could iterate on either platform and either expand on Wally or build gradually roll our own wrapper, either in CLJ or CLJS. But I can't figure out whether there's feature parity between the platforms, + maybe other considerations (like ecosystems around particular implementations). For example, I see that js Playwright has visual regression testing, and I can't find the same for the Java version.

👀 1
mkvlr11:02:19

js for sure

✅ 1
mkvlr11:02:30

we’ve come around from writing playwright tests in cljs

mkvlr11:02:49

the playwright is tooling is just too nice, the recorder etc

reefersleep11:02:24

@U5H74UNSF Do you mean that you used to write cljs and now write js, or that you currently write in cljs?

mkvlr12:02:58

we’ve previously written them in (squint) cljs, now just plain js

reefersleep12:02:20

Is the interop too much of a hassle?

mkvlr12:02:38

we’re using the ui tests to only drive the browser, so no interop is needed. Made some endpoints which the tests call to get data for forms also return plain json but that was it.

1
reefersleep12:02:43

Ah, well, I mean the interop between CLJS and the playwright objects or whatever the nomenclature is

reefersleep12:02:29

I guess if the code is really minimal and generally just calling Playwright functions, there's no reason as such for it to be CLJS over JS

reefersleep12:02:24

Thank you for sharing 🙂

mkvlr12:02:28

that was exactly why we switched it over, yes

Mario Trost14:02:07

npx playwright codegen is just too convenient to ignore

Mario Trost14:02:38

Or

npx playwright codegen --save-har="10_05_2023.har" --save-har-glob="**/api/**" 

Mario Trost14:02:23

for recording all network traffic to an api and later replaying it when you run your tests

jackrusher06:02:46

I heard a rumor that @U5H74UNSF will do a talk about this, and some other pieces) that are very useful for testing, one of these days 🙂

reefersleep14:02:47

Looking forward to it @U5H74UNSF 😄