Update the LiveViews permission test to fix misuse of the user values.
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
This commit is contained in:
@@ -206,7 +206,7 @@ defmodule DecentralisedBookIndexWeb.LiveViewsPermissionsTest do
|
|||||||
for user <- [moderator, admin] do
|
for user <- [moderator, admin] do
|
||||||
assert {:ok, _view, html} =
|
assert {:ok, _view, html} =
|
||||||
conn
|
conn
|
||||||
|> log_in_user(moderator)
|
|> log_in_user(user)
|
||||||
|> live("/publishers")
|
|> live("/publishers")
|
||||||
|
|
||||||
assert html =~ "Listing Publishers"
|
assert html =~ "Listing Publishers"
|
||||||
@@ -320,7 +320,7 @@ defmodule DecentralisedBookIndexWeb.LiveViewsPermissionsTest do
|
|||||||
for user <- [admin] do
|
for user <- [admin] do
|
||||||
assert {:ok, _view, html} =
|
assert {:ok, _view, html} =
|
||||||
conn
|
conn
|
||||||
|> log_in_user(admin)
|
|> log_in_user(user)
|
||||||
|> live("/servers")
|
|> live("/servers")
|
||||||
|
|
||||||
assert html =~ "Listing Servers"
|
assert html =~ "Listing Servers"
|
||||||
@@ -445,7 +445,7 @@ defmodule DecentralisedBookIndexWeb.LiveViewsPermissionsTest do
|
|||||||
for user <- [admin] do
|
for user <- [admin] do
|
||||||
assert {:ok, _view, html} =
|
assert {:ok, _view, html} =
|
||||||
conn
|
conn
|
||||||
|> log_in_user(admin)
|
|> log_in_user(user)
|
||||||
|> live("/users")
|
|> live("/users")
|
||||||
|
|
||||||
assert html =~ "Listing Users"
|
assert html =~ "Listing Users"
|
||||||
|
|||||||
Reference in New Issue
Block a user