File tree Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Expand file tree Collapse file tree 2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -25,6 +25,13 @@ var UndoChooseHunk = NewIntegrationTest(NewIntegrationTestArgs{
25
25
t .Views ().MergeConflicts ().
26
26
IsFocused ().
27
27
Content (Contains ("<<<<<<< HEAD\n First Change" )).
28
+ // explicitly asserting on the selection because sometimes the content renders
29
+ // before the selection is ready for user input
30
+ SelectedLines (
31
+ Contains ("<<<<<<< HEAD" ),
32
+ Contains ("First Change" ),
33
+ Contains ("=======" ),
34
+ ).
28
35
PressPrimaryAction ().
29
36
// choosing the first hunk
30
37
Content (DoesNotContain ("<<<<<<< HEAD\n First Change" )).
Original file line number Diff line number Diff line change @@ -39,11 +39,15 @@ var ApplyInReverseWithConflict = NewIntegrationTest(NewIntegrationTestArgs{
39
39
).
40
40
// Add both files to the patch; the first will conflict, the second won't
41
41
PressPrimaryAction ().
42
+ Tap (func () {
43
+ t .Views ().Information ().Content (Contains ("building patch" ))
44
+
45
+ t .Views ().PatchBuildingSecondary ().Content (
46
+ Contains ("+more file1 content" ))
47
+ }).
42
48
SelectNextItem ().
43
49
PressPrimaryAction ()
44
50
45
- t .Views ().Information ().Content (Contains ("building patch" ))
46
-
47
51
t .Views ().PatchBuildingSecondary ().Content (
48
52
Contains ("+more file1 content" ).Contains ("+more file2 content" ))
49
53
You can’t perform that action at this time.
0 commit comments