mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-17 22:32:58 +02:00
fix flaky tests
This commit is contained in:
parent
275ed12486
commit
7f5465a27b
@ -25,6 +25,13 @@ var UndoChooseHunk = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
t.Views().MergeConflicts().
|
t.Views().MergeConflicts().
|
||||||
IsFocused().
|
IsFocused().
|
||||||
Content(Contains("<<<<<<< HEAD\nFirst Change")).
|
Content(Contains("<<<<<<< HEAD\nFirst Change")).
|
||||||
|
// explicitly asserting on the selection because sometimes the content renders
|
||||||
|
// before the selection is ready for user input
|
||||||
|
SelectedLines(
|
||||||
|
Contains("<<<<<<< HEAD"),
|
||||||
|
Contains("First Change"),
|
||||||
|
Contains("======="),
|
||||||
|
).
|
||||||
PressPrimaryAction().
|
PressPrimaryAction().
|
||||||
// choosing the first hunk
|
// choosing the first hunk
|
||||||
Content(DoesNotContain("<<<<<<< HEAD\nFirst Change")).
|
Content(DoesNotContain("<<<<<<< HEAD\nFirst Change")).
|
||||||
|
@ -39,11 +39,15 @@ var ApplyInReverseWithConflict = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
).
|
).
|
||||||
// Add both files to the patch; the first will conflict, the second won't
|
// Add both files to the patch; the first will conflict, the second won't
|
||||||
PressPrimaryAction().
|
PressPrimaryAction().
|
||||||
|
Tap(func() {
|
||||||
|
t.Views().Information().Content(Contains("building patch"))
|
||||||
|
|
||||||
|
t.Views().PatchBuildingSecondary().Content(
|
||||||
|
Contains("+more file1 content"))
|
||||||
|
}).
|
||||||
SelectNextItem().
|
SelectNextItem().
|
||||||
PressPrimaryAction()
|
PressPrimaryAction()
|
||||||
|
|
||||||
t.Views().Information().Content(Contains("building patch"))
|
|
||||||
|
|
||||||
t.Views().PatchBuildingSecondary().Content(
|
t.Views().PatchBuildingSecondary().Content(
|
||||||
Contains("+more file1 content").Contains("+more file2 content"))
|
Contains("+more file1 content").Contains("+more file2 content"))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user