Skip to content

Commit

Permalink
Fix redirect test
Browse files Browse the repository at this point in the history
  • Loading branch information
alxlion committed Apr 7, 2024
1 parent aede040 commit 9fe3b14
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/claper_web/live/event_live_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -32,14 +32,14 @@ defmodule ClaperWeb.EventLiveTest do

assert_patch(index_live, ~p"/events/#{presentation_file.event.uuid}/edit")

{:ok, _, html} =
{:ok, conn} =
index_live
|> form("#event-form", event: @update_attrs)
|> render_submit()
|> follow_redirect(conn, ~p"/events")

assert html =~ "Updated successfully"
assert html =~ "some updated name"
assert html_response(conn, 200) =~ "Updated successfully"
assert html_response(conn, 200) =~ "some updated name"
end

test "deletes event in listing", %{conn: conn, presentation_file: presentation_file} do
Expand Down

0 comments on commit 9fe3b14

Please sign in to comment.