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

allow chaining matchers

This commit is contained in:
Jesse Duffield
2022-12-26 17:15:33 +11:00
parent c841ba8237
commit 96310288ee
13 changed files with 132 additions and 67 deletions

View File

@ -52,15 +52,13 @@ var Basic = NewIntegrationTest(NewIntegrationTestArgs{
// lazygit will land us in the commit between our good and bad commits.
assert.CurrentView().
Name("commits").
SelectedLine(Contains("commit 05")).
SelectedLine(Contains("<-- current"))
SelectedLine(Contains("commit 05").Contains("<-- current"))
markCommitAsBad()
assert.CurrentView().
Name("commits").
SelectedLine(Contains("commit 04")).
SelectedLine(Contains("<-- current"))
SelectedLine(Contains("commit 04").Contains("<-- current"))
markCommitAsGood()
@ -68,6 +66,6 @@ var Basic = NewIntegrationTest(NewIntegrationTestArgs{
input.Alert(Equals("Bisect complete"), MatchesRegexp("(?s)commit 05.*Do you want to reset"))
assert.CurrentView().Name("commits").Content(Contains("commit 04"))
assert.View("information").Content(NotContains("bisecting"))
assert.View("information").Content(DoesNotContain("bisecting"))
},
})