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

View file

@ -0,0 +1 @@
x<01>ŽAjÃ0E³Ö)æI¥”@V>ÆX3"Ë®9~ ¥ûl?ÿ=^ÞZ«¬¥SßUAÒ Hƒ³drN¬/)àœrö£ Îa,sôX̃w];(©ñÙ)Ã<>kÊDQ˜0(—ÄÎð³ß·n|ߦ«¾¸=½ä­ýÀ@Îèš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'˘Ĺűž<C5B1>%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е
#<23>оЎ;З·7іwышxјЧ¶1ѕ¦уаџжnжT-"¶ђ«І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оь‰еЅр…j№ЃBtJ:4ОR)zЫOя‰cm[¤ПрИ пPW(qпы+МЪ%Mтљ[Ћ ьФв Ћ:ћ

View file

@ -1 +1 @@
d25b2c8a3d20c1b1884fbf1c87aa2014dd99ed7f
364ac39500dfec09956626a513736d7602b4d64a

View file

@ -1 +1 @@
b8eb39e727d4ac91542d57faa0bea0458c2d30e3
03892119fb6b807d1c13c23f6baacdc4a170e694