fix: issue #20 cmd-J panel tab strip visibility and output panel parity
This commit is contained in:
@@ -129,6 +129,31 @@ defmodule BDS.Desktop.AutomationTest do
|
||||
assert automation_process_counts() == baseline
|
||||
end
|
||||
|
||||
@tag timeout: 120_000
|
||||
test "cmd-J panel tab strip is visible and switches between tasks and output (issue #20)" do
|
||||
{:ok, session} = Automation.start_session()
|
||||
|
||||
on_exit(fn ->
|
||||
Automation.stop_session(session)
|
||||
end)
|
||||
|
||||
assert :ok = Automation.press(session, "Meta+J")
|
||||
|
||||
snapshot = await(session, & &1.panel_visible)
|
||||
assert snapshot.panel_visible == true
|
||||
|
||||
# The tab strip must offer both tabs and be tall enough to actually see
|
||||
# and hit them — issue #20 was the strip collapsing to an unusable sliver.
|
||||
assert "Tasks" in snapshot.panel_tab_labels
|
||||
assert "Output" in snapshot.panel_tab_labels
|
||||
assert snapshot.panel_tabs_height >= 20
|
||||
|
||||
assert :ok = Automation.click(session, "button[phx-value-tab='output']")
|
||||
|
||||
snapshot = await(session, &(&1.panel_active_tab == "Output"))
|
||||
assert snapshot.panel_active_tab == "Output"
|
||||
end
|
||||
|
||||
@tag timeout: 120_000
|
||||
test "automation dispatches native menu actions into the liveview shell" do
|
||||
{:ok, session} = Automation.start_session()
|
||||
|
||||
Reference in New Issue
Block a user