Searching for a blogpost about testing live view

I am pretty sure I read a blog post once about how to test live view without using headless browsers.

And as I am experimenting with live view now, I wanted to re-read that article/post for my experiments.

Sadly everything I can find relies on headless browsers.

Can someone perhaps point me to some blog posts about testing live view without headless browsers?

This one is pretty basic, yet might be helpful:

1 Like

Can’t help with the specific blog post, but the liveview docs are good. The only reason you might need a headless browser is if you needed to test the js on a page as well. Otherwise the docs for liveview provide good info on testing.

1 Like

there’s also a talk from the same author (German Velasco) that’s already pointed to above, see here: https://www.youtube.com/watch?v=h8NURVLysrk

And he has another blog post https://www.germanvelasco.com/blog/using-has-element-for-better-liveviewtest-assertions

Another thing that could help you is this: https://github.com/dashbitco/bytepack_archive/tree/main/apps/bytepack_web/test/bytepack_web/live The source code behind bytepack from the ‘makers’ themselves :slight_smile: AFAICS it’s not using any headless browsers so could help you to see how they are doing it.

1 Like