mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-08-28 10:15:32 -05:00
test: update stash/rename integration test
This commit is contained in:
@@ -13,7 +13,9 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
SetupRepo: func(shell *Shell) {
|
||||
shell.
|
||||
EmptyCommit("blah").
|
||||
CreateFileAndAdd("foo", "change to stash").
|
||||
CreateFileAndAdd("file-1", "change to stash1").
|
||||
StashWithMessage("foo").
|
||||
CreateFileAndAdd("file-2", "change to stash2").
|
||||
StashWithMessage("bar")
|
||||
},
|
||||
Run: func(shell *Shell, input *Input, assert *Assert, keys config.KeybindingConfig) {
|
||||
@@ -21,13 +23,15 @@ var Rename = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
assert.CurrentViewName("stash")
|
||||
|
||||
assert.MatchSelectedLine(Equals("On master: bar"))
|
||||
input.NextItem()
|
||||
assert.MatchSelectedLine(Equals("On master: foo"))
|
||||
input.PressKeys(keys.Stash.RenameStash)
|
||||
assert.InPrompt()
|
||||
assert.MatchCurrentViewTitle(Equals("Rename stash: stash@{0}"))
|
||||
assert.MatchCurrentViewTitle(Equals("Rename stash: stash@{1}"))
|
||||
|
||||
input.Type(" baz")
|
||||
input.Confirm()
|
||||
|
||||
assert.MatchSelectedLine(Equals("On master: bar baz"))
|
||||
assert.MatchSelectedLine(Equals("On master: foo baz"))
|
||||
},
|
||||
})
|
||||
|
||||
@@ -1 +1 @@
|
||||
8d4897b3dcbb5c8fbc8fa8439ec7e9627c3159cf
|
||||
209b9fa9264fa15f128127817f080fd7372050cf
|
||||
|
||||
@@ -1,2 +1,3 @@
|
||||
0000000000000000000000000000000000000000 8d4897b3dcbb5c8fbc8fa8439ec7e9627c3159cf CI <CI@example.com> 1665802395 +0900 commit (initial): blah
|
||||
8d4897b3dcbb5c8fbc8fa8439ec7e9627c3159cf 8d4897b3dcbb5c8fbc8fa8439ec7e9627c3159cf CI <CI@example.com> 1665802396 +0900 reset: moving to HEAD
|
||||
0000000000000000000000000000000000000000 209b9fa9264fa15f128127817f080fd7372050cf CI <CI@example.com> 1665905121 +0900 commit (initial): blah
|
||||
209b9fa9264fa15f128127817f080fd7372050cf 209b9fa9264fa15f128127817f080fd7372050cf CI <CI@example.com> 1665905122 +0900 reset: moving to HEAD
|
||||
209b9fa9264fa15f128127817f080fd7372050cf 209b9fa9264fa15f128127817f080fd7372050cf CI <CI@example.com> 1665905122 +0900 reset: moving to HEAD
|
||||
|
||||
@@ -1 +1 @@
|
||||
0000000000000000000000000000000000000000 8d4897b3dcbb5c8fbc8fa8439ec7e9627c3159cf CI <CI@example.com> 1665802395 +0900 commit (initial): blah
|
||||
0000000000000000000000000000000000000000 209b9fa9264fa15f128127817f080fd7372050cf CI <CI@example.com> 1665905121 +0900 commit (initial): blah
|
||||
|
||||
@@ -1 +1,2 @@
|
||||
0000000000000000000000000000000000000000 c6f35659c0cf57c794d79df88283d7ee933831dd CI <CI@example.com> 1665802399 +0900 On master: bar baz
|
||||
0000000000000000000000000000000000000000 a5272a200897df5558c8cad683c1af14f7184124 CI <CI@example.com> 1665905122 +0900 On master: bar
|
||||
a5272a200897df5558c8cad683c1af14f7184124 de8f5ed6f8a58664edfbdecd20b75a6ea0633bf6 CI <CI@example.com> 1665905125 +0900 On master: foo baz
|
||||
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
x�Í1
|
||||
Ã0@ÑÎ>…öB‘]YXPB SŽa9
|
||||
)ĸzüä]?~iµ¾;xzÞúa¤)Ä¥0…¢l*-’®ia )jF‚äò·oí€i†×4�öËõ³Û£´:€gŽ‚ÑwDwÕkÒíOîtÏ›;¢+¸
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
-2
@@ -1,2 +0,0 @@
|
||||
x�ŽA
|
||||
ƒ0E»Î)f_(1ê˜)¥\yŒd2ƒ‚Q±)xüºé¾‹·ù¼�ל§®ÂKÙE@1ªÚ@šTmDiÈ&vUˆªr«ªf»,|j<u±NcË^ãIðMMÂ�ºŽëª%V>e\wèxôÃKŽ�·Yn¼æ'Tˆ·®&„«%k͹žQEþÔÍ´$9`] ‡÷ùºÿª Îa4_ ËC^
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
x��Э
|
||||
Т0�=ч)і.Шю&Mzъcф�L[j�>ОёрныЬ|УжRц
|
||||
LњTї�РГ�Rs�й)ЄЇЬ6ЈEVВVдs�лгв@Доfg[�u�И'6=��=цhЄaь0dсоuZwFИ
|
||||
у#ЎlЯt kЙiнYќоТ-Ђhi�ЊщЯЙ���X(юеЈыЯ
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
-2
@@ -1,2 +0,0 @@
|
||||
xŤÍÁ
|
||||
Â0€aĎ}ŠÜÉş4$ "ě´ÇhşŚ +•QÁÇwŹŕőç�ż´Z_/ýp2‰i)L±»iFFOd«,¬Qd5wR¤�?}kL3ܧůéß\ß»ßJ«�“`5Á1śőśt˙“Űó~°?+Ę
|
||||
+3
@@ -0,0 +1,3 @@
|
||||
x��½j1„]ßS¨˜ýѯ1ÁpÕU~i¥%Ëg.gÈã[.Ò§�ùfvGÖÞ¿wC6ö5Sˆ+{ª¬Ùá‚JIlÅbbòÉôÈ[»� ¤’4§ahF§H)D
|
||||
´Dÿxï*¢Ä2.Ž”9x�’ŠŽ’
|
||||
¼(Nù¹›™sž—KûÍýqkGYû§Aï]‚÷æÀ4Ô1boÿħëÝôü3ø“)y{¬OHW
|
||||
BIN
Binary file not shown.
BIN
Binary file not shown.
BIN
Binary file not shown.
+1
@@ -0,0 +1 @@
|
||||
x�ϱj1ÐÔ÷êfµ’v%LÀ•+Þ´K‘e.gÈçG�{·Ã›�©£÷ïÝaÌoû¦ê2eá’™“ß(d¶�¼´F5Éj@µ!$^î²ém¡¬Å¤ EŸÌcöÈÙ³Ak!Aµ§�A¢ND±ªúÆ€ Ô™Ñ`Õcù/�ýklî|qç˧þI¿ÿ衎~rž(HѽCXf:Oìú"_®7×åwú£³1þqHë
|
||||
BIN
Binary file not shown.
@@ -1 +1 @@
|
||||
8d4897b3dcbb5c8fbc8fa8439ec7e9627c3159cf
|
||||
209b9fa9264fa15f128127817f080fd7372050cf
|
||||
|
||||
@@ -1 +1 @@
|
||||
c6f35659c0cf57c794d79df88283d7ee933831dd
|
||||
de8f5ed6f8a58664edfbdecd20b75a6ea0633bf6
|
||||
|
||||
Reference in New Issue
Block a user