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