fix: fix tests and remove navbar remainings
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Simon 2026-01-12 15:16:31 +01:00
parent 30805b07ca
commit 8a1b14fc79
Signed by: simon
GPG key ID: 40E7A58C4AA1EDB2
9 changed files with 706 additions and 332 deletions

View file

@ -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