# Programming Phoenix LiveView: (65) Tests fail after changing authentication 

**URL:** <https://forum.devtalk.com/t/programming-phoenix-liveview-65-tests-fail-after-changing-authentication/209794>\
**Category:** PragProg Customers\
**Tags:** book-programming-phoenix-liveview, errata\
**Created:** [6 August 2025 15:43 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-65-tests-fail-after-changing-authentication/209794 "2025-08-06T15:43:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnSmall](https://forum.devtalk.com/user_avatar/forum.devtalk.com/johnsmall/32/7570_2.png) [@JohnSmall](https://forum.devtalk.com/u/JohnSmall)\
**Post date:** [6 August 2025 15:43 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-65-tests-fail-after-changing-authentication/209794/1 "2025-08-06T15:43:19Z")

</div>

**Title** : Programming Phoenix LiveView (65)  
After changing the authentication code to work with live view then 10 tests fail when running mix test.

It would be good to point that out and if the problem is going to be fixed in a later chapter then let the reader know. Alternatively add fixing the tests as an exercise in the list of things to try on page 66.

Also after setting up mailcatcher as a local SMTP server and registering a new account, when I followed the link in the received email I got the same problem as is visible in the failing tests.

```key
    (pento 0.1.0) lib/pento_web/user_auth.ex:150: PentoWeb.UserAuth.on_mount/4

```
