1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-03-21 21:47:32 +02:00

test: add more assertions

This commit is contained in:
Andrew Hynes 2022-11-12 18:03:43 -03:30
parent a47e72892a
commit 66a253916e
28 changed files with 24 additions and 23 deletions

View File

@ -23,9 +23,11 @@ var Stash = NewIntegrationTest(NewIntegrationTestArgs{
assert.InMenu()
input.PressKeys("a")
input.Type("stash name")
input.Confirm()
assert.InPrompt()
assert.MatchCurrentViewTitle(Equals("Stash changes"))
input.Type("my stashed file")
input.Confirm()
assert.StashCount(1)
assert.WorkingTreeFileCount(0)
},

View File

@ -24,9 +24,11 @@ var StashIncludingUntrackedFiles = NewIntegrationTest(NewIntegrationTestArgs{
assert.InMenu()
input.PressKeys("U")
input.Type("stash name")
input.Confirm()
assert.InPrompt()
assert.MatchCurrentViewTitle(Equals("Stash changes"))
input.Type("my stashed file")
input.Confirm()
assert.StashCount(1)
assert.WorkingTreeFileCount(0)
},

View File

@ -1 +1 @@
6227ee90e6cf6047b510f13dc6cc976e2dd372dd
e6ed7d5c2198fa4791de9c66e8000da607eaf9a3

View File

@ -1,2 +1,2 @@
0000000000000000000000000000000000000000 6227ee90e6cf6047b510f13dc6cc976e2dd372dd CI <CI@example.com> 1665104980 -0230 commit (initial): initial commit
6227ee90e6cf6047b510f13dc6cc976e2dd372dd 6227ee90e6cf6047b510f13dc6cc976e2dd372dd CI <CI@example.com> 1665104985 -0230 reset: moving to HEAD
0000000000000000000000000000000000000000 e6ed7d5c2198fa4791de9c66e8000da607eaf9a3 CI <CI@example.com> 1668288675 -0330 commit (initial): initial commit
e6ed7d5c2198fa4791de9c66e8000da607eaf9a3 e6ed7d5c2198fa4791de9c66e8000da607eaf9a3 CI <CI@example.com> 1668288676 -0330 reset: moving to HEAD

View File

@ -1 +1 @@
0000000000000000000000000000000000000000 6227ee90e6cf6047b510f13dc6cc976e2dd372dd CI <CI@example.com> 1665104980 -0230 commit (initial): initial commit
0000000000000000000000000000000000000000 e6ed7d5c2198fa4791de9c66e8000da607eaf9a3 CI <CI@example.com> 1668288675 -0330 commit (initial): initial commit

View File

@ -1 +1 @@
0000000000000000000000000000000000000000 9ca683cf1ae1a37fb25ec24646acc0dc1db376e7 CI <CI@example.com> 1665104985 -0230 On master: stash name
0000000000000000000000000000000000000000 c86eeda485a49ca608cb2617bb027be66cd92bc3 CI <CI@example.com> 1668288676 -0330 On master: my stashed file

View File

@ -1 +0,0 @@
x��±j1DSßWì$¬´ÒJ2!\¹Ê7H«DwæN†|¾Õ¸O3Åðf†‘­÷ŸÖû·±«BM¦"J&ªÖ·°$ï*j ®•è±-÷¼ë:€­ ª •¥1ºP¼Áfh†ER`µµR˜òâfѨ³Zbhj�¡ØH\e¯AcM%Ê’ã¶íp¹ÂçåzÖ¿Üï¿ú![ÿÃ<W\ŠÞÑ.Ó�'†þ_¾Wèù˜ü Ž‘�¬¹ë�@Mî

View File

@ -0,0 +1 @@
x�ŽAjÃ0E³Ö)æ cÉI¥”@V>ÆX3"Ë®9~ ¥ûl?ÿ=^ÞZ«¬¥SßUAÒ Hƒ³drN¬/)àœrö£ Îa,sôX̃w];(©ñÙ)Ã�kÊDQ˜0(—ÄÎð³ß·n|ߦ«¾¸=½ä­ýÀ@mŒÎèšc=¢º~x7u}Á¶Bã߃úú¯‚ºÖ^y�?¡yN»FY

View File

@ -1 +1 @@
6227ee90e6cf6047b510f13dc6cc976e2dd372dd
e6ed7d5c2198fa4791de9c66e8000da607eaf9a3

View File

@ -1 +1 @@
9ca683cf1ae1a37fb25ec24646acc0dc1db376e7
c86eeda485a49ca608cb2617bb027be66cd92bc3

View File

@ -1 +1 @@
d25b2c8a3d20c1b1884fbf1c87aa2014dd99ed7f
364ac39500dfec09956626a513736d7602b4d64a

View File

@ -1,2 +1,2 @@
0000000000000000000000000000000000000000 d25b2c8a3d20c1b1884fbf1c87aa2014dd99ed7f CI <CI@example.com> 1665105632 -0230 commit (initial): initial commit
d25b2c8a3d20c1b1884fbf1c87aa2014dd99ed7f d25b2c8a3d20c1b1884fbf1c87aa2014dd99ed7f CI <CI@example.com> 1665105633 -0230 reset: moving to HEAD
0000000000000000000000000000000000000000 364ac39500dfec09956626a513736d7602b4d64a CI <CI@example.com> 1668288767 -0330 commit (initial): initial commit
364ac39500dfec09956626a513736d7602b4d64a 364ac39500dfec09956626a513736d7602b4d64a CI <CI@example.com> 1668288768 -0330 reset: moving to HEAD

View File

@ -1 +1 @@
0000000000000000000000000000000000000000 d25b2c8a3d20c1b1884fbf1c87aa2014dd99ed7f CI <CI@example.com> 1665105632 -0230 commit (initial): initial commit
0000000000000000000000000000000000000000 364ac39500dfec09956626a513736d7602b4d64a CI <CI@example.com> 1668288767 -0330 commit (initial): initial commit

View File

@ -1 +1 @@
0000000000000000000000000000000000000000 b8eb39e727d4ac91542d57faa0bea0458c2d30e3 CI <CI@example.com> 1665105633 -0230 On master: stash name
0000000000000000000000000000000000000000 03892119fb6b807d1c13c23f6baacdc4a170e694 CI <CI@example.com> 1668288768 -0330 On master: my stashed file

View File

@ -0,0 +1 @@
xŤĎ=jA †áÔ{Šą@‚ć_2!\ąĘF# <^ăÝ@rűLă>íÇó__Ǹě.ľěU'˘Ĺűž�%KK>W&˛ÂěŞöFË˝=ô6Ă’ZŹ”Ä´Q.%”–}¬±H-8É4OŹâSíť$uK ľ†Č4C&4Ž5TC~z0­lćYEI™Q4‡ěkK\s0ÖâŇľ÷óúpÇ“{?ž>ő§ŤűUßú:>ś/b-č^!FXć:OďúOľ|ÝÜhŰô7~ݶ·í¬âěrŐ?“Ý].

View File

@ -1,2 +0,0 @@
xЌПMJ1`Ч}Љ\@©Є¤т#"В¬fе*©
#�оЎ;‚З·7іwышxјЧ¶1ѕ¦уаџжnжT-"¶ђ«ІFн9ХR:S(T2c…dMКr—ЭЦй”ёRЛв• aЕњCЇ[N"TK1Mэ዆¹0qЏН'Е”„ЅpТLјќ Е‡п™)K>KjгДђЕ*Ш3AВ°ИПјm»»\ЭЫеъaї2оЯцТ¶со0FFаиЅ{т°њйyzЪ?щт№є!Зй_Э1её№U†эяґY`

View File

@ -1,2 +0,0 @@
xЌЌ]
В0„}О)цJ~7AЉ}к1’нЉБ¦‘6ЏoА ш6 Я|Cµ”Ь@…pjsЮ“BШIo5Z­,&“RТ–04Ћ|B+вСћuѓq‚aњоь‰еЅр…j№ЃBtJ:4ОR)zЫOя‰‹cm[¤ПрИ пPW(qпы+МЪ%Mтљ[Ћ ьФв Ћ:ћ

View File

@ -1 +1 @@
d25b2c8a3d20c1b1884fbf1c87aa2014dd99ed7f
364ac39500dfec09956626a513736d7602b4d64a

View File

@ -1 +1 @@
b8eb39e727d4ac91542d57faa0bea0458c2d30e3
03892119fb6b807d1c13c23f6baacdc4a170e694