fix: tests for removed assist cards
This commit is contained in:
@@ -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", %{
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user