1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-06 22:33:07 +02:00

Add tests for tag information rendering

These should have been added when we started rendering this information in
e5b09f34e0; apparently I was too lazy back then. Adding them now to guard
against breaking it in the next commit.

I'm adding these to the CRUD tests, it doesn't seem worth adding separate tests
just for these assertions.
This commit is contained in:
Stefan Haller
2025-07-27 15:59:31 +02:00
parent 8483239dad
commit 44159ff926
2 changed files with 19 additions and 0 deletions

View File

@ -32,6 +32,18 @@ var CrudAnnotated = NewIntegrationTest(NewIntegrationTestArgs{
Lines(
MatchesRegexp(`new-tag.*message`).IsSelected(),
).
Tap(func() {
t.Views().Main().ContainsLines(
Equals("Annotated tag: new-tag"),
Equals(""),
Contains("Tagger:"),
Contains("TaggerDate:"),
Equals(""),
Equals("message"),
Equals(""),
Equals("---"),
)
}).
Press(keys.Universal.Push).
Tap(func() {
t.ExpectPopup().Prompt().

View File

@ -28,6 +28,13 @@ var CrudLightweight = NewIntegrationTest(NewIntegrationTestArgs{
Lines(
MatchesRegexp(`new-tag.*initial commit`).IsSelected(),
).
Tap(func() {
t.Views().Main().ContainsLines(
Equals("Lightweight tag: new-tag"),
Equals(""),
Equals("---"),
)
}).
PressEnter().
Tap(func() {
// view the commits of the tag