Fork me on GitHub
#re-frame
<
2018-01-04
>
genRaiy15:01:13

what do the good folks here use for clicking / button pushing tests?

akiroz16:01:29

@raymcdermott I just dispatch the event that the button triggers, all my click handlers are just 1-liners that look something like this: :on-click #(dispatch [::my/event])

akiroz16:01:44

One of the best parts about re-frame is that UI automation is super easy, you can even deliver these event vectors to the clients via a websocket to automatically test multiple browsers at the same time!

genRaiy16:01:27

@akiroz that makes sense for events that change state … what about the actual UI?

genRaiy16:01:13

i.e. does the correct panel become visible after a click? etc…

borkdude17:01:10

@raymcdermott fwiw, I’m excited about #etaoin

borkdude17:01:39

@raymcdermott we use it with headless chrome in a Docker container

genRaiy17:01:53

@borkdude nice - i’ll check it out

akiroz17:01:21

I usually just observe manually....

genRaiy18:01:35

@akiroz fair enough though I’m looking for a CI style approach so the @borkdude tech looks more appropriate

genRaiy18:01:16

@akiroz but I do appreciate the click / event handler point - it’s indeed a nice part of the architecture

ErhardtMundt20:01:46

I'm using re-frame for a project and I noticed that, when I launch it through the uberjar, it doesn't serve other static files than index.html

ErhardtMundt20:01:32

do you know how can I inspect this issue?

ErhardtMundt20:01:44

I created the project with lein new re-frame foo +test +handler +garden +trace +re-frisk +routes +aliases