This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2024-02-16
Channels
- # ai (2)
- # announcements (9)
- # asami (6)
- # babashka (6)
- # beginners (49)
- # clojure (33)
- # clojure-europe (31)
- # clojure-nl (2)
- # clojure-norway (29)
- # clojure-uk (12)
- # clr (3)
- # cursive (3)
- # data-science (27)
- # datomic (13)
- # emacs (1)
- # graalvm (12)
- # gratitude (1)
- # hyperfiddle (39)
- # integrant (14)
- # leiningen (1)
- # matrix (3)
- # music (1)
- # off-topic (39)
- # other-languages (3)
- # pathom (7)
- # pedestal (19)
- # polylith (5)
- # portal (9)
- # releases (4)
- # shadow-cljs (8)
- # spacemacs (11)
- # squint (7)
- # testing (11)
Morning
Good Morning!
Hi all!
Good morning 🙂
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.
@U5H74UNSF Do you mean that you used to write cljs and now write js, or that you currently write in cljs?
Is the interop too much of a hassle?
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.
Ah, well, I mean the interop between CLJS and the playwright objects or whatever the nomenclature is
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
Thank you for sharing 🙂
npx playwright codegen
is just too convenient to ignore
Or
npx playwright codegen --save-har="10_05_2023.har" --save-har-glob="**/api/**"
for recording all network traffic to an api and later replaying it when you run your tests
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 🙂
Very nice @ULA8H51LP!
Looking forward to it @U5H74UNSF 😄