mirror of
https://github.com/jesseduffield/lazygit.git
synced 2024-12-12 11:15:00 +02:00
Merge pull request #2550 from jesseduffield/handle-flakey-tests
This commit is contained in:
commit
981ba4c66c
@ -25,6 +25,13 @@ var UndoChooseHunk = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
t.Views().MergeConflicts().
|
||||
IsFocused().
|
||||
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().
|
||||
// choosing the first hunk
|
||||
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
|
||||
PressPrimaryAction().
|
||||
Tap(func() {
|
||||
t.Views().Information().Content(Contains("building patch"))
|
||||
|
||||
t.Views().PatchBuildingSecondary().Content(
|
||||
Contains("+more file1 content"))
|
||||
}).
|
||||
SelectNextItem().
|
||||
PressPrimaryAction()
|
||||
|
||||
t.Views().Information().Content(Contains("building patch"))
|
||||
|
||||
t.Views().PatchBuildingSecondary().Content(
|
||||
Contains("+more file1 content").Contains("+more file2 content"))
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user