feat: more work on UI cleanup

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
2026-04-24 17:19:49 +02:00
parent eb609e1934
commit e51566d707
7 changed files with 141 additions and 21 deletions

View File

@@ -73,6 +73,13 @@ defmodule BDS.Desktop.ShellCommandsTest do
assert wait_for_task(result.task_id, &(&1.status in [:completed, :failed])).status == :completed
end
test "missing project schema returns a command error instead of raising" do
BDS.Repo.query!("DROP TABLE projects", [])
assert {:error, %{message: message}} = ShellCommands.execute("open_in_browser")
assert message =~ "Project database is not initialized"
end
defp wait_for_task(task_id, matcher, timeout \\ 2_000)
defp wait_for_task(task_id, _matcher, timeout) when timeout <= 0 do