@@ -3580,11 +3580,12 @@ defmodule LightningWeb.WorkflowLive.EditTest do
3580
3580
end
3581
3581
end
3582
3582
3583
- describe "keyboard shortcuts" do
3583
+ describe "keyboard shortcuts" do
3584
3584
setup % { project: project } do
3585
3585
workflow =
3586
3586
insert ( :simple_workflow , project: project )
3587
3587
|> with_snapshot ( )
3588
+
3588
3589
{ :ok , workflow: workflow }
3589
3590
end
3590
3591
@@ -3603,8 +3604,12 @@ defmodule LightningWeb.WorkflowLive.EditTest do
3603
3604
# Check that the OpenRunPanelViaCtrlEnter hook is present on the workflow container
3604
3605
workflow_container = view |> element ( "#workflow-edit-#{ workflow . id } " )
3605
3606
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\" "
3608
3613
end
3609
3614
3610
3615
test "OpenRunPanelViaCtrlEnter hook is present with job selected" , % {
@@ -3625,8 +3630,12 @@ defmodule LightningWeb.WorkflowLive.EditTest do
3625
3630
# Hook should still be present when a job is selected
3626
3631
workflow_container = view |> element ( "#workflow-edit-#{ workflow . id } " )
3627
3632
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\" "
3630
3639
3631
3640
# Run button should be present for step-aware behavior
3632
3641
run_button = view |> element ( "#run-from-step-#{ job . id } " )
@@ -3651,8 +3660,12 @@ defmodule LightningWeb.WorkflowLive.EditTest do
3651
3660
# Hook should be present even in expand mode
3652
3661
workflow_container = view |> element ( "#workflow-edit-#{ workflow . id } " )
3653
3662
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\" "
3656
3669
end
3657
3670
end
3658
3671
0 commit comments