@@ -3580,11 +3580,12 @@ defmodule LightningWeb.WorkflowLive.EditTest do
35803580 end
35813581 end
35823582
3583- describe "keyboard shortcuts" do
3583+ describe "keyboard shortcuts" do
35843584 setup % { project: project } do
35853585 workflow =
35863586 insert ( :simple_workflow , project: project )
35873587 |> with_snapshot ( )
3588+
35883589 { :ok , workflow: workflow }
35893590 end
35903591
@@ -3603,8 +3604,12 @@ defmodule LightningWeb.WorkflowLive.EditTest do
36033604 # Check that the OpenRunPanelViaCtrlEnter hook is present on the workflow container
36043605 workflow_container = view |> element ( "#workflow-edit-#{ workflow . id } " )
36053606 assert has_element? ( workflow_container )
3606- assert render ( workflow_container ) =~ "phx-hook=\" OpenRunPanelViaCtrlEnter\" "
3607- assert render ( workflow_container ) =~ "data-keybinding-scope=\" workflow-editor\" "
3607+
3608+ assert render ( workflow_container ) =~
3609+ "phx-hook=\" OpenRunPanelViaCtrlEnter\" "
3610+
3611+ assert render ( workflow_container ) =~
3612+ "data-keybinding-scope=\" workflow-editor\" "
36083613 end
36093614
36103615 test "OpenRunPanelViaCtrlEnter hook is present with job selected" , % {
@@ -3625,8 +3630,12 @@ defmodule LightningWeb.WorkflowLive.EditTest do
36253630 # Hook should still be present when a job is selected
36263631 workflow_container = view |> element ( "#workflow-edit-#{ workflow . id } " )
36273632 assert has_element? ( workflow_container )
3628- assert render ( workflow_container ) =~ "phx-hook=\" OpenRunPanelViaCtrlEnter\" "
3629- assert render ( workflow_container ) =~ "data-keybinding-scope=\" workflow-editor\" "
3633+
3634+ assert render ( workflow_container ) =~
3635+ "phx-hook=\" OpenRunPanelViaCtrlEnter\" "
3636+
3637+ assert render ( workflow_container ) =~
3638+ "data-keybinding-scope=\" workflow-editor\" "
36303639
36313640 # Run button should be present for step-aware behavior
36323641 run_button = view |> element ( "#run-from-step-#{ job . id } " )
@@ -3651,8 +3660,12 @@ defmodule LightningWeb.WorkflowLive.EditTest do
36513660 # Hook should be present even in expand mode
36523661 workflow_container = view |> element ( "#workflow-edit-#{ workflow . id } " )
36533662 assert has_element? ( workflow_container )
3654- assert render ( workflow_container ) =~ "phx-hook=\" OpenRunPanelViaCtrlEnter\" "
3655- assert render ( workflow_container ) =~ "data-keybinding-scope=\" workflow-editor\" "
3663+
3664+ assert render ( workflow_container ) =~
3665+ "phx-hook=\" OpenRunPanelViaCtrlEnter\" "
3666+
3667+ assert render ( workflow_container ) =~
3668+ "data-keybinding-scope=\" workflow-editor\" "
36563669 end
36573670 end
36583671
0 commit comments