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
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
Popular in Questions
Other popular topics
Latest Phoenix Threads
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #hex
- #security









