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 committed 2025-07-28 10:53:51 +02:00
1 parent 8483239dad
commit 44159ff926
2 files changed
+19

No files matched your search

@@ -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().
@@ -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