1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03: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<01><><EFBFBD>j1DS<44>W<EFBFBD>$<24><><EFBFBD>J2!\<5C><>7H<37>Dw<44>N<EFBFBD>|<7C>ոO3<4F><33>f<EFBFBD><66><EFBFBD><EFBFBD><EFBFBD><01><><EFBFBD><EFBFBD><EFBFBD>BM<42>"J&<26>ַ<14>$<11>*j <09><><EFBFBD><EFBFBD>-<2D><><EFBFBD>:<3A><>

View File

@ -0,0 +1 @@
x<01><>Aj<41>0E<><45>)<29> c<>I<><49>@V><3E>X3"<02><0E>9~ <0C><>l?<3F>=^<5E>Z<EFBFBD><1D><>S<EFBFBD>UA<55> H<><0F>drN<72>/)<29><>r<EFBFBD><72><EFBFBD><EFBFBD>a,s<>X̃w];(<28><04><>)Ák<C381>DQ<>0(<28><><EFBFBD><EFBFBD><EFBFBD>߷n<><DFA6><EFBFBD>=<16><><EFBFBD><EFBFBD><EFBFBD>@m<><08><><1C>c=<3D><>~x7u}<7D><>B<EFBFBD>߃<EFBFBD><DF83><EFBFBD><EFBFBD><EFBFBD><EFBFBD>^y<>?<3F>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<01><>=jA <0C><><EFBFBD>{<7B><>@<40><>_2!\<5C><>F# <^<5E><>@r<>L<EFBFBD>><3E><><EFBFBD>__Ǹ<5F>.<02><>U'<27><><EFBFBD><EFBFBD><EFBFBD>%KK>W&<26><05><><19><>F˽=<3D>6ÒZ<C392><5A>ĴQ.%<25><>}<7D><>H-8<>4O<34><4F>S<EFBFBD><53>$uK <20><><EFBFBD>4C&4<13>5TC~z0<7A>l<EFBFBD>YEI<45>Q4<51><34>kK\s0<04><14>Ҿ<EFBFBD><D2BE><EFBFBD>pǓ{?<3F>><3E><><EFBFBD><EFBFBD>U<EFBFBD><55>:><3E>/b-<2D>^!FX<46>:O<><4F>O<EFBFBD>|<7C><>h<EFBFBD><68>7~ݶ<><DDB6><EFBFBD><EFBFBD><EFBFBD>r<EFBFBD>?<3F><>].

View File

@ -1,2 +0,0 @@
x<01><>MJ1`<60>}<7D>\@<40><><EFBFBD><EFBFBD>#"¬f<C2AC>*<2A>
#<23><><EFBFBD>;<3B>Ƿ7<C7B7>w<EFBFBD><77>x<EFBFBD>׶1<D7B6><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>n<EFBFBD>T-"<22><><EFBFBD><EFBFBD>F<EFBFBD>9<>R:S(T2c<32>dM<64>r<EFBFBD><72><EFBFBD>锸R<E994B8>╠aŜC<C59C>[N"TK1M<31>዆¹0q<30><71><><C594>p<EFBFBD>L<11><10> Ň<><C587>)K>Kj<02><><06><02>*<12>3A°<>ϼm<CFBC><6D>\<5C><><EFBFBD><EFBFBD>a<EFBFBD>2<EFBFBD><32><EFBFBD>Ҷ<EFBFBD><D2B6>0FF<46><46><EFBFBD>{<06><><EFBFBD><EFBFBD>yz<79>?<3F><><EFBFBD><EFBFBD>!<21><>_<EFBFBD>1帹U<E5B8B9><55><01><>Y`

View File

@ -1,2 +0,0 @@
x<01><>]
<EFBFBD>0<10>}<7D>)<29>J~7A<37>}<7D>1<EFBFBD><31><EFBFBD><EFBFBD><EFBFBD><EFBFBD>6<05>o<EFBFBD> <0B>6 <0C>|C<><43><EFBFBD>@<40>pjsޓB<17>Io5Z<35>,&<26>RҖ04<>|B+<2B>ўu<D19E>q<EFBFBD>a<EFBFBD><61><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>j<EFBFBD><6A>BtJ:4<06>R)z<>O<1A><><EFBFBD>cm[<5B><17><><EFBFBD> <0B>PW(q<><71>+<2B><>%M<01><>[<5B> <0B><><EFBFBD> <1C>:<3A>

View File

@ -1 +1 @@
d25b2c8a3d20c1b1884fbf1c87aa2014dd99ed7f
364ac39500dfec09956626a513736d7602b4d64a

View File

@ -1 +1 @@
b8eb39e727d4ac91542d57faa0bea0458c2d30e3
03892119fb6b807d1c13c23f6baacdc4a170e694