From d31ceb72cbeb56eef38933f51bf524ccaf895cd9 Mon Sep 17 00:00:00 2001 From: Chili Palmer Date: Mon, 6 Jul 2026 10:55:41 +0200 Subject: [PATCH] fix: tests for removed assist cards --- test/bds/desktop/shell_live_test.exs | 8 ++++++-- test/bds/image_import_pipeline_test.exs | 10 +++++----- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/test/bds/desktop/shell_live_test.exs b/test/bds/desktop/shell_live_test.exs index 41b09ce..af126e0 100644 --- a/test/bds/desktop/shell_live_test.exs +++ b/test/bds/desktop/shell_live_test.exs @@ -3311,7 +3311,9 @@ defmodule BDS.Desktop.ShellLiveTest do |> render_click() 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 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() 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 test "ai suggestions overlay uses the local model in airplane mode for media", %{ diff --git a/test/bds/image_import_pipeline_test.exs b/test/bds/image_import_pipeline_test.exs index f5f58d7..9dfde4b 100644 --- a/test/bds/image_import_pipeline_test.exs +++ b/test/bds/image_import_pipeline_test.exs @@ -207,12 +207,12 @@ defmodule BDS.ImageImportPipelineTest do "subtitle" => "draft" }) - html = - view - |> element("[phx-click='add_gallery_images']") - |> render_click() + view + |> element("[phx-click='add_gallery_images']") + |> 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) end