From 26abfa6c828cf433cf32ee3238ea6fbb8b447ccf Mon Sep 17 00:00:00 2001 From: Stefan Haller Date: Thu, 20 Aug 2026 21:01:06 +0200 Subject: [PATCH] Move the last explorer workflows onto the focused diff Historical file removal and the staging/custom-patch demos still entered the old panels even though their line actions already exist in the main diff. Preserve their prompts, timing, and downstream results while changing only the interaction surface. Co-Authored-By: GitHub Copilot --- pkg/integration/tests/commit/discard_old_file_changes.go | 4 ++-- pkg/integration/tests/demo/custom_patch.go | 4 ++-- pkg/integration/tests/demo/stage_lines.go | 4 ++-- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/pkg/integration/tests/commit/discard_old_file_changes.go b/pkg/integration/tests/commit/discard_old_file_changes.go index 2dc8006bb..d7f4acdc1 100644 --- a/pkg/integration/tests/commit/discard_old_file_changes.go +++ b/pkg/integration/tests/commit/discard_old_file_changes.go @@ -131,9 +131,9 @@ var DiscardOldFileChanges = NewIntegrationTest(NewIntegrationTestArgs{ Equals(" A file2ToRemove"), ). NavigateToLine(Contains("multiLineFile")). - PressEnter() + Press(keys.Universal.FocusMainView) - t.Views().PatchBuilding(). + t.Views().Main(). IsFocused(). SelectedLine( Contains("+this file has"), diff --git a/pkg/integration/tests/demo/custom_patch.go b/pkg/integration/tests/demo/custom_patch.go index 24e05c633..34516f73b 100644 --- a/pkg/integration/tests/demo/custom_patch.go +++ b/pkg/integration/tests/demo/custom_patch.go @@ -52,9 +52,9 @@ var CustomPatch = NewIntegrationTest(NewIntegrationTestArgs{ IsFocused(). NavigateToLine(Contains("users.go")). Wait(1000). - PressEnter(). + Press(keys.Universal.FocusMainView). Tap(func() { - t.Views().PatchBuilding(). + t.Views().Main(). IsFocused(). NavigateToLine(Contains("TODO")). Wait(500). diff --git a/pkg/integration/tests/demo/stage_lines.go b/pkg/integration/tests/demo/stage_lines.go index 1304d39e5..4881722a7 100644 --- a/pkg/integration/tests/demo/stage_lines.go +++ b/pkg/integration/tests/demo/stage_lines.go @@ -56,9 +56,9 @@ var StageLines = NewIntegrationTest(NewIntegrationTestArgs{ t.Views().Files(). IsFocused(). - PressEnter() + Press(keys.Universal.FocusMainView) - t.Views().Staging(). + t.Views().Main(). IsFocused(). Press(keys.Universal.ToggleRangeSelect). PressFast(keys.Universal.NextItem).