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
|
||||
assert {:ok, _view, html} =
|
||||
conn
|
||||
|> log_in_user(moderator)
|
||||
|> log_in_user(user)
|
||||
|> live("/publishers")
|
||||
|
||||
assert html =~ "Listing Publishers"
|
||||
@@ -320,7 +320,7 @@ defmodule DecentralisedBookIndexWeb.LiveViewsPermissionsTest do
|
||||
for user <- [admin] do
|
||||
assert {:ok, _view, html} =
|
||||
conn
|
||||
|> log_in_user(admin)
|
||||
|> log_in_user(user)
|
||||
|> live("/servers")
|
||||
|
||||
assert html =~ "Listing Servers"
|
||||
@@ -445,7 +445,7 @@ defmodule DecentralisedBookIndexWeb.LiveViewsPermissionsTest do
|
||||
for user <- [admin] do
|
||||
assert {:ok, _view, html} =
|
||||
conn
|
||||
|> log_in_user(admin)
|
||||
|> log_in_user(user)
|
||||
|> live("/users")
|
||||
|
||||
assert html =~ "Listing Users"
|
||||
|
||||
Reference in New Issue
Block a user