diff --git a/apps/fz_http/test/fz_http_web/acceptance/admin_test.exs b/apps/fz_http/test/fz_http_web/acceptance/admin_test.exs index dbef633bd..5532fc0ca 100644 --- a/apps/fz_http/test/fz_http_web/acceptance/admin_test.exs +++ b/apps/fz_http/test/fz_http_web/acceptance/admin_test.exs @@ -226,6 +226,7 @@ defmodule FzHttpWeb.Acceptance.AdminTest do |> click(Query.css("button[phx-click=\"close\"]")) |> assert_el(Query.link("Add Device")) |> assert_el(Query.link("big-leg-007")) + |> assert_path(~p"/users/#{user.id}") assert device = Repo.one(FzHttp.Devices.Device) assert device.name == "big-leg-007" @@ -637,6 +638,7 @@ defmodule FzHttpWeb.Acceptance.AdminTest do |> assert_el(Query.text("API token secret:")) |> click(Query.css("button[aria-label=\"close\"]")) |> assert_el(Query.link("Delete")) + |> assert_path(~p"/settings/account") accept_confirm(session, fn session -> click(session, Query.link("Delete")) diff --git a/apps/fz_http/test/fz_http_web/acceptance/unprivileged_user_test.exs b/apps/fz_http/test/fz_http_web/acceptance/unprivileged_user_test.exs index 42278ce40..9d827b40d 100644 --- a/apps/fz_http/test/fz_http_web/acceptance/unprivileged_user_test.exs +++ b/apps/fz_http/test/fz_http_web/acceptance/unprivileged_user_test.exs @@ -50,6 +50,7 @@ defmodule FzHttpWeb.Acceptance.UnprivilegedUserTest do |> assert_el(Query.text("Device added!")) |> click(Query.css("button[phx-click=\"close\"]")) |> assert_el(Query.text("big-head-007")) + |> assert_path(~p"/user_devices") assert device = Repo.one(FzHttp.Devices.Device) assert device.name == "big-head-007" @@ -82,6 +83,7 @@ defmodule FzHttpWeb.Acceptance.UnprivilegedUserTest do |> assert_el(Query.text("Device added!")) |> click(Query.css("button[phx-click=\"close\"]")) |> assert_el(Query.text("big-hand-007")) + |> assert_path(~p"/user_devices") assert device = Repo.one(FzHttp.Devices.Device) assert device.name == "big-hand-007"