fix: tests for removed assist cards

This commit is contained in:
2026-07-06 10:55:41 +02:00
parent c8d2c73a72
commit d31ceb72cb
2 changed files with 11 additions and 7 deletions

View File

@@ -3311,7 +3311,9 @@ defmodule BDS.Desktop.ShellLiveTest do
|> render_click() |> render_click()
refute html =~ "ai-suggestions-modal" refute html =~ "ai-suggestions-modal"
assert html =~ "Automatic AI actions stay gated by airplane mode"
output_html = render_click(view, "select_panel_tab", %{"tab" => "output"})
assert output_html =~ "Automatic AI actions stay gated by airplane mode"
end end
test "ai suggestions overlay fetches async results for posts when online", %{project: project} do test "ai suggestions overlay fetches async results for posts when online", %{project: project} do
@@ -3482,7 +3484,9 @@ defmodule BDS.Desktop.ShellLiveTest do
|> render_click() |> render_click()
refute html =~ "ai-suggestions-modal" refute html =~ "ai-suggestions-modal"
assert html =~ "Automatic AI actions stay gated by airplane mode"
output_html = render_click(view, "select_panel_tab", %{"tab" => "output"})
assert output_html =~ "Automatic AI actions stay gated by airplane mode"
end end
test "ai suggestions overlay uses the local model in airplane mode for media", %{ test "ai suggestions overlay uses the local model in airplane mode for media", %{

View File

@@ -207,12 +207,12 @@ defmodule BDS.ImageImportPipelineTest do
"subtitle" => "draft" "subtitle" => "draft"
}) })
html = view
view |> element("[phx-click='add_gallery_images']")
|> element("[phx-click='add_gallery_images']") |> render_click()
|> render_click()
assert html =~ "Automatic AI actions stay gated by airplane mode" output_html = render_click(view, "select_panel_tab", %{"tab" => "output"})
assert output_html =~ "Automatic AI actions stay gated by airplane mode"
assert :ok = AI.set_airplane_mode(false) assert :ok = AI.set_airplane_mode(false)
end end