LTheGreats

LTheGreats

Why are my auto generated LiveView tests failing?

I have installed the latest Phoenix 1.7 release candidate, and created a new project with all of the default options. I ran the tests and they all passed. Then, I used the built in generators to create a new LiveView and added the routes to my router. However, when I then went to run my tests, all of the tests generated for the live view that called the follow_redirect/2 function failed with a runtime error saying that the live view did not redirect.
Was there a step I missed? How should I resolve this?

Marked As Solved

dmarcoux

dmarcoux

It sounds like you hit this issue: Using the `phx.gen.live` generator creates failing tests when using the types `:date` and `:time`. · Issue #5077 · phoenixframework/phoenix · GitHub

It was fixed a day after Phoenix v1.7.0-rc.2 was released, so you either have to wait for the next release candidate, the final version or use the master branch directly. You also have the possibility of fixing manually the errors as noted in the issue above.

Last Post!

LTheGreats

LTheGreats

Thanks! What you said was the issue.

Where Next?

Popular in Questions Top

baxterw3b
Hi guys, i’m new in the Elixir world, and i have to say, that i love it! i’m having some problem to understand anonymous functions with ...
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
fireproofsocks
Forgive me if this is obvious, but how does one delete a database record WITHOUT selecting it first? Ecto.Repo — Ecto v3.14.0 has exampl...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
shijith.k
I am trying to start a new phoenix project with elixir 1.9, but mix phx.new does not work. It says that ** (Mix) The task "phx.new" could...
New
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
New
senggen
Erlang/OTP 25 [erts-13.2.2] [source] [64-bit] [smp:8:8] [ds:8:8:10] [async-threads:1] 15:22:35.803 [error] gen_event {lager_file_backend...
New

Other popular topics Top

electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
grych
Hi folks, Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
639 54006 488
New
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
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
ashish173
I am using Ecto timestamps with postgres, I can see the timestamps() use the :naive_dateime but for my use case I wanted to store the ti...
New

We're in Beta

About us Mission Statement