mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-30 03:23:08 +03:00
add view asserter getter struct
This commit is contained in:
@ -21,7 +21,7 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Run: func(shell *Shell, input *Input, assert *Assert, keys config.KeybindingConfig) {
|
||||
input.SwitchToStashView()
|
||||
|
||||
assert.CurrentView().Lines(
|
||||
assert.Views().Current().Lines(
|
||||
Equals("On master: bar"),
|
||||
Equals("On master: foo"),
|
||||
)
|
||||
@ -30,6 +30,6 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
|
||||
input.Prompt().Title(Equals("Rename stash: stash@{1}")).Type(" baz").Confirm()
|
||||
|
||||
assert.CurrentView().SelectedLine(Equals("On master: foo baz"))
|
||||
assert.Views().Current().SelectedLine(Equals("On master: foo baz"))
|
||||
},
|
||||
})
|
||||
|
Reference in New Issue
Block a user