Small test fix when updating to `phoenix_live_view` to 1.5.4 / `floki` 0.30.0

For reasons[^1] I just ran a mix deps.update --all on an app, which has a bit of scaffolding from mix phx.gen.live still present. It updated LiveView from 1.5.3 to 1.5.4 and floki from 0.29.0 to 0.30.0. (I suspect it’s a floki thing but CBA investigating). A generated test started failing. The fix was to change (eg)

              |> render_change() =~ "can't be blank"

to

              |> render_change() =~ "can't be blank"

That’s all - just thought I’d mention in case it saves other people 10 minutes of futzing around.

[^1]: It’s a personal project deployed to a free Gigalixir that needs to be redeployed every so often to keep it active, so I figure I might as well use the opportunity to keep things up to date.

1 Like