This commit is contained in:
parent
9b9e7ec995
commit
8e387d8e17
5 changed files with 429 additions and 79 deletions
|
|
@ -15,19 +15,19 @@ defmodule MvWeb.Components.SearchBarComponentTest do
|
|||
{:ok, view, _html} = live(conn, "/members")
|
||||
|
||||
# simulate search input and check that other members are not listed
|
||||
html =
|
||||
_html =
|
||||
view
|
||||
|> element("form[role=search]")
|
||||
|> render_submit(%{"query" => "Friedrich"})
|
||||
|
||||
refute html =~ "Greta"
|
||||
refute has_element?(view, "input[data-testid='search-input'][value='Greta']")
|
||||
|
||||
html =
|
||||
_html =
|
||||
view
|
||||
|> element("form[role=search]")
|
||||
|> render_submit(%{"query" => "Greta"})
|
||||
|
||||
refute html =~ "Friedrich"
|
||||
refute has_element?(view, "input[data-testid='search-input'][value='Friedrich']")
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue