NobbZ

NobbZ

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?

Most Liked

dalerka

dalerka

This one is pretty basic, yet might be helpful:

Adzz

Adzz

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.

rjk

rjk

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 Using has_element?/3 for better LiveViewTest assertions

Another thing that could help you is this: bytepack_archive/apps/bytepack_web/test/bytepack_web/live at main · dashbitco/bytepack_archive · GitHub 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.

Where Next?

Popular in Questions Top

JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
vertexbuffer
Hello, can anybody help here..? I have a list of players and I what to delete an element, but every for loop the list is reverting to ori...
New
hariharasudhan94
I would like to know what is the best IDE for elixir development?
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a > b) do {:ok, "a"} end if (a < b) do {:ok, b} end if (a == b) do {:ok, "equa...
New
aalberti333
As the title describes, I’m trying to run Enum.map() over a list of key/value pairs, where the value is a map. My data looks like this: ...
New
Patoshizzle
After calling mix ecto.create I get this error: 17:00:32.162 [error] GenServer #PID<0.412.0> terminating ** (Postgrex.Error) FATAL...
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

Other popular topics Top

joaquinalcerro
Hi there, I am working with Ecto-Postgresql and I need to call all of the records from a specific table but the table has 40,000 records...
New
jononomo
For some reason my phoenix channels are working for me in my local dev environment, but as soon as I deploy via Docker, I get a 403 error...
New
sen
Hi All, I set a environment variables in dev.exs , like below code. when i start server, how can i set the ${enable} value? thanks. d...
New
AstonJ
Seen any cool LiveView demos, sample apps or examples? Please post them here! :003:
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
New
dblack
I’ve got an issue with an app and I’ve no idea of how to troubleshoot it. I’m hoping someone here might have seen something similar. I p...
New

We're in Beta

About us Mission Statement