Drop test steps owned by the retiring explorers

The generic filter and range-selection suites already exercise their state
machines on surviving views, while focused-diff tests own range selection
and drag autoscroll. Remove only the repetitions that enter an explorer,
along with the staging-panel screen-mode test whose UI no longer survives.

Co-Authored-By: GitHub Copilot <copilot@github.com>
This commit is contained in:
Stefan Haller
2026-10-05 11:44:42 +02:00
co-authored by GitHub Copilot
parent f1232bbfd9
commit 0902d0a5ea
4 changed files with 14 additions and 39 deletions
@@ -71,19 +71,7 @@ var NestedFilter = NewIntegrationTest(NewIntegrationTestArgs{
FilterOrSearch("grape").
Lines(
Equals("A grape").IsSelected(),
).
PressEnter()
t.Views().PatchBuilding().
IsFocused().
FilterOrSearch("newline").
SelectedLine(Contains("No newline at end of file")).
PressEscape(). // cancel search
Tap(func() {
t.Views().Search().IsInvisible()
}).
// escape to commit-files view
PressEscape()
)
t.Views().CommitFiles().
IsFocused().
@@ -1,12 +1,12 @@
package staging
package main_view
import (
"github.com/jesseduffield/lazygit/pkg/config"
. "github.com/jesseduffield/lazygit/pkg/integration/components"
)
var DiffChangeScreenMode = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Change the staged changes screen mode",
var ChangeScreenModeInFocusedDiff = NewIntegrationTest(NewIntegrationTestArgs{
Description: "Enlarge the focused diff, which leaves the pane showing the other side of the file behind",
ExtraCmdArgs: []string{},
Skip: false,
SetupConfig: func(config *config.AppConfig) {},
@@ -16,32 +16,30 @@ var DiffChangeScreenMode = NewIntegrationTest(NewIntegrationTestArgs{
Run: func(t *TestDriver, keys config.KeybindingConfig) {
t.Views().Files().
Focus().
PressEnter()
Press(keys.Universal.FocusMainView)
t.Views().Staging().
t.Views().Main().
IsFocused().
PressPrimaryAction().
Title(Equals("Unstaged changes")).
Content(Contains("+second line").DoesNotContain("+first line")).
PressTab()
t.Views().StagingSecondary().
t.Views().Secondary().
IsFocused().
Title(Equals("Staged changes")).
Content(Contains("+first line").DoesNotContain("+second line")).
Press(keys.Universal.NextScreenMode).
Tap(func() {
t.Views().AppStatus().
IsInvisible()
t.Views().Staging().
IsVisible()
// Half screen: the side panels are gone, the two diff panes are not.
t.Views().AppStatus().IsInvisible()
t.Views().Main().IsVisible()
}).
Press(keys.Universal.NextScreenMode).
Tap(func() {
t.Views().AppStatus().
IsInvisible()
t.Views().Staging().
IsInvisible()
// Full screen: the focused pane has the window to itself.
t.Views().AppStatus().IsInvisible()
t.Views().Main().IsInvisible()
})
},
})
+1 -2
View File
@@ -24,7 +24,6 @@ import (
"github.com/jesseduffield/lazygit/pkg/integration/tests/reflog"
"github.com/jesseduffield/lazygit/pkg/integration/tests/remote"
"github.com/jesseduffield/lazygit/pkg/integration/tests/shell_commands"
"github.com/jesseduffield/lazygit/pkg/integration/tests/staging"
"github.com/jesseduffield/lazygit/pkg/integration/tests/stash"
"github.com/jesseduffield/lazygit/pkg/integration/tests/status"
"github.com/jesseduffield/lazygit/pkg/integration/tests/submodule"
@@ -377,6 +376,7 @@ var tests = []*components.IntegrationTest{
main_view.BuildPatchFromAReflogEntry,
main_view.BuildPatchFromAWholeCommitsDiff,
main_view.BuildPatchWithMixedSelections,
main_view.ChangeScreenModeInFocusedDiff,
main_view.ClickSelectsDiffLine,
main_view.CommitFromMainView,
main_view.CopyRowsThatAreNoDiffLine,
@@ -516,7 +516,6 @@ var tests = []*components.IntegrationTest{
shell_commands.EditHistory,
shell_commands.History,
shell_commands.OmitFromHistory,
staging.DiffChangeScreenMode,
stash.Apply,
stash.ApplyPatch,
stash.CreateBranch,
@@ -33,15 +33,5 @@ var RangeSelectWithAutoscroll = NewIntegrationTest(NewIntegrationTestArgs{
OriginYAtLeast(3).
SelectedLineIdxAtLeast(3).
MouseRelease()
t.Views().Files().
Focus().
PressEnter()
t.Views().Staging().
ClickAndHold(1, 6).
MouseMoveToBottom(1).
OriginYAtLeast(3).
SelectedLineIdxAtLeast(9).
MouseRelease()
},
})