mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-12-02 16:02:33 +03:00
Make find_base_commit_for_fixup tests more specific
We want to test the order in which the commits are listed in the error message. For one of the tests the order is already as we want it, but for the other it's not (we want them to show up in log order). We'll fix this in the next commit.
This commit is contained in:
@@ -36,9 +36,9 @@ var FindBaseCommitForFixup = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
t.ExpectPopup().Alert().
|
||||
Title(Equals("Error")).
|
||||
Content(
|
||||
Contains("Multiple base commits found").
|
||||
Contains("2nd commit").
|
||||
Contains("3rd commit"),
|
||||
MatchesRegexp("Multiple base commits found.*\n\n" +
|
||||
".*2nd commit\n" +
|
||||
".*3rd commit"),
|
||||
).
|
||||
Confirm()
|
||||
|
||||
|
||||
@@ -39,9 +39,11 @@ var FindBaseCommitForFixupOnlyAddedLines = NewIntegrationTest(NewIntegrationTest
|
||||
t.ExpectPopup().Alert().
|
||||
Title(Equals("Error")).
|
||||
Content(
|
||||
Contains("Multiple base commits found").
|
||||
Contains("3rd commit").
|
||||
Contains("4th commit"),
|
||||
MatchesRegexp(
|
||||
"Multiple base commits found.*\n\n" +
|
||||
".*4th commit\n" +
|
||||
".*3rd commit",
|
||||
),
|
||||
).
|
||||
Confirm()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user