1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

rename SelectedLine to CurrentLine in tests

This commit is contained in:
Jesse Duffield
2022-12-26 10:42:19 +11:00
parent 5d2584a188
commit fa0414777f
22 changed files with 41 additions and 41 deletions

View File

@ -46,7 +46,7 @@ var RebaseAndDrop = NewIntegrationTest(NewIntegrationTestArgs{
input.AcceptConfirmation(Equals("Auto-merge failed"), Contains("Conflicts!"))
assert.CurrentViewName("files")
assert.SelectedLine(Contains("file"))
assert.CurrentLine(Contains("file"))
input.SwitchToCommitsWindow()
assert.ViewTopLines(
@ -57,10 +57,10 @@ var RebaseAndDrop = NewIntegrationTest(NewIntegrationTestArgs{
MatchesRegexp("second change"),
MatchesRegexp("original"),
)
assert.SelectedLineIdx(0)
assert.CurrentLineIdx(0)
input.NextItem()
input.Press(keys.Universal.Remove)
assert.SelectedLine(MatchesRegexp(`drop.*to remove`))
assert.CurrentLine(MatchesRegexp(`drop.*to remove`))
input.SwitchToFilesWindow()