fix: fix tests and remove navbar remainings
Some checks failed
continuous-integration/drone/push Build is failing
Some checks failed
continuous-integration/drone/push Build is failing
This commit is contained in:
parent
30805b07ca
commit
8a1b14fc79
9 changed files with 706 additions and 332 deletions
|
|
@ -33,7 +33,7 @@ defmodule MvWeb.ProfileNavigationTest do
|
|||
end
|
||||
end
|
||||
|
||||
describe "navbar" do
|
||||
describe "sidebar" do
|
||||
test "renders profile button with correct attributes", %{conn: conn} do
|
||||
# Setup: Create and login a user
|
||||
user = create_test_user(%{email: "test@example.com"})
|
||||
|
|
@ -167,8 +167,8 @@ defmodule MvWeb.ProfileNavigationTest do
|
|||
|
||||
test "layout shows user data on user profile page", %{conn: conn, user: user} do
|
||||
{:ok, _view, html} = live(conn, ~p"/users/#{user.id}")
|
||||
# The navbar (which requires current_user) should be visible
|
||||
assert html =~ "navbar"
|
||||
# The sidebar (which requires current_user) should be visible
|
||||
assert html =~ "sidebar"
|
||||
# Profile button should be visible
|
||||
assert html =~ "Profil"
|
||||
# User ID should be in profile link
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue