Phx.gen.live generates faulty tests?

I’m currently playing with LiveView and I think that the generated tests for LiveViews with Date(Time) fields are faulty. E.g. generating an app with:

$ mix phx.new live_ts_test --live
$ # Follow instructions (e.g. ecto and routes)     
$ mix phx.gen.live Context Entry entries timestamp:utc_datetime
$ mix test

This creates tests that do not work out of the box. Using 1.5.6 raises errors. Using master (for phoenix and/or phoenix_live_view) “just” fails. I was hoping that issue 4017 would address the issue - hence the test with master.

Any pointers?

1 Like

It should have been fixed in the linked issue but apparently utc_datetime wasn’t tackled. Feel free to drop a comment on the existing issue.

ok - will do.