fix: more work on liveview

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-25 23:21:25 +02:00
parent 2f34040aed
commit 9fd8cb9e1d
7 changed files with 571 additions and 339 deletions

View File

@@ -10,6 +10,8 @@ defmodule BDS.Desktop.ShellLiveTest do
{:ok, view, html} = live_isolated(build_conn(), BDS.Desktop.ShellLive)
assert html =~ ~s(data-testid="sidebar-shell")
assert html =~ ~s(data-testid="status-bar")
assert html =~ ~s(data-testid="status-task-button")
assert html =~ ~s(class="panel-shell is-hidden")
assert html =~ ~s(data-testid="activity-button")
assert html =~ ~s(data-view="posts")
@@ -38,5 +40,20 @@ defmodule BDS.Desktop.ShellLiveTest do
assert html =~ ~s(aria-label="Media")
assert html =~ ~s(data-view="media")
html =
view
|> element("[data-testid='activity-button'][data-view='settings']")
|> render_click()
assert html =~ ~s(data-testid="sidebar-open-item")
html =
view
|> element("[data-testid='sidebar-open-item'][data-item-id='settings-project']")
|> render_click()
assert html =~ ~s(data-tab-type="settings")
assert html =~ ">Settings<"
end
end