mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-10-06 14:06:32 -04:00
Migrate range select tests to focused main view
This commit is contained in:
@@ -28,7 +28,7 @@ import (
|
||||
// the range.
|
||||
|
||||
var RangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Description: "Verify range select works as expected in list views and in patch explorer views",
|
||||
Description: "Verify range select works as expected in list views and in focused main view",
|
||||
ExtraCmdArgs: []string{},
|
||||
Skip: false,
|
||||
SetupConfig: func(config *config.AppConfig) {
|
||||
@@ -37,7 +37,7 @@ var RangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
},
|
||||
SetupRepo: func(shell *Shell) {
|
||||
// We're testing the commits view as our representative list context,
|
||||
// as well as the staging view, and we're using the exact same code to test
|
||||
// as well as the focused main view, and we're using the exact same code to test
|
||||
// both to ensure they have the exact same behaviour (they are currently implemented
|
||||
// separately)
|
||||
// In both views we're going to have 10 lines starting from 'line 1' going down to
|
||||
@@ -180,7 +180,7 @@ var RangeSelect = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
).
|
||||
PressEnter()
|
||||
|
||||
assertRangeSelectBehaviour(t.Views().Staging().IsFocused(), func() { t.Views().Staging().PressTab() }, 6)
|
||||
assertRangeSelectBehaviour(t.Views().Main().IsFocused(), func() { t.Views().Main().PressTab() }, 6)
|
||||
|
||||
t.Views().Branches().Focus()
|
||||
t.Views().Branches().
|
||||
|
||||
Reference in New Issue
Block a user