mirror of
https://github.com/jesseduffield/lazygit.git
synced 2026-09-10 15:46:26 -04: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:
parent
8483239dad
commit
44159ff926
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue