# Programming Phoenix LiveView B3.0 P276: Assertion in age group filter not working for me

**URL:** <https://forum.devtalk.com/t/programming-phoenix-liveview-b3-0-p276-assertion-in-age-group-filter-not-working-for-me/8678>\
**Category:** PragProg Customers\
**Tags:** book-programming-phoenix-liveview, question\
**Created:** [10 April 2021 14:34 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-b3-0-p276-assertion-in-age-group-filter-not-working-for-me/8678 "2021-04-10T14:34:11Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![SophieDeBenedetto](https://forum.devtalk.com/user_avatar/forum.devtalk.com/sophiedebenedetto/32/2521_2.png) [@SophieDeBenedetto](https://forum.devtalk.com/u/SophieDeBenedetto)\
**Post date:** [10 April 2021 16:12 UTC](https://forum.devtalk.com/t/programming-phoenix-liveview-b3-0-p276-assertion-in-age-group-filter-not-working-for-me/8678/2 "2021-04-10T16:12:14Z")

</div>

Hey @wyrdforge, thanks for bringing this up! I am in fact able to replicate the issue and it looks like the syntax for this particular test is wrong. The test block should read like this:

```elixir
test "it filters by age group", %{conn: conn} do
      {:ok, view, _html} = live(conn, "/admin-dashboard")
      params = %{"age_group_filter" => "18 and under"}
        assert view
                |> element("#age-group-form")
                |> render_change(params) =~ "<title>2.00</title>"
    end

```

Where [assert/1`](https://hexdocs.pm/ex_unit/ExUnit.Assertions.html#assert/1) is called with the argument of the logical evaluation of `pipeline\_results =~ some\_outcome`. That is because the `assert/`` function takes in an argument of some assertion, and our assertion should be “the resulting html from calling our pipeline does contain the given title element”.

The fix will be included in the next Beta release 🚀

---

_[View the full topic](https://forum.devtalk.com/t/programming-phoenix-liveview-b3-0-p276-assertion-in-age-group-filter-not-working-for-me/8678)._
