fix: more alignments still
This commit is contained in:
@@ -26,6 +26,7 @@ defmodule BDS.Desktop.ShellLiveTest do
|
||||
{:ok, _project} = Projects.set_active_project(project.id)
|
||||
|
||||
original_shell_platform = Application.get_env(:bds, :shell_platform)
|
||||
original_git_remote_state_provider = Application.get_env(:bds, :git_remote_state_provider)
|
||||
|
||||
on_exit(fn ->
|
||||
if is_nil(original_shell_platform) do
|
||||
@@ -33,6 +34,12 @@ defmodule BDS.Desktop.ShellLiveTest do
|
||||
else
|
||||
Application.put_env(:bds, :shell_platform, original_shell_platform)
|
||||
end
|
||||
|
||||
if is_nil(original_git_remote_state_provider) do
|
||||
Application.delete_env(:bds, :git_remote_state_provider)
|
||||
else
|
||||
Application.put_env(:bds, :git_remote_state_provider, original_git_remote_state_provider)
|
||||
end
|
||||
end)
|
||||
|
||||
%{project: project, temp_dir: temp_dir}
|
||||
@@ -158,6 +165,18 @@ defmodule BDS.Desktop.ShellLiveTest do
|
||||
refute html =~ ~s(data-testid="window-titlebar-menu-dropdown")
|
||||
end
|
||||
|
||||
test "shell live renders the legacy git activity badge from remote behind count" do
|
||||
Application.put_env(:bds, :git_remote_state_provider, fn _project_id, _opts ->
|
||||
{:ok, %{local_branch: "main", upstream_branch: "origin/main", has_upstream: true, ahead: 0, behind: 7}}
|
||||
end)
|
||||
|
||||
{:ok, _view, html} = live_isolated(build_conn(), BDS.Desktop.ShellLive)
|
||||
|
||||
assert html =~ ~s(data-view="git")
|
||||
assert html =~ ~s(class="activity-bar-badge")
|
||||
assert html =~ ">7<"
|
||||
end
|
||||
|
||||
test "sidebar open supports preview and pin intents for entity tabs" do
|
||||
{:ok, view, _html} = live_isolated(build_conn(), BDS.Desktop.ShellLive)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user