mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-11 12:25:47 +02:00
Extend commitPrefix test to cancel without changing the commmit message
The test shows that we lose a space when cancelling and committing again.
This commit is contained in:
parent
87d5da511e
commit
ec92d92bf4
1 changed files with 13 additions and 0 deletions
|
@ -33,7 +33,20 @@ var CommitWithPrefix = NewIntegrationTest(NewIntegrationTestArgs{
|
|||
t.ExpectPopup().CommitMessagePanel().
|
||||
Title(Equals("Commit summary")).
|
||||
InitialText(Equals("[TEST-001]: ")).
|
||||
Cancel()
|
||||
|
||||
t.Views().Files().
|
||||
IsFocused().
|
||||
Press(keys.Files.CommitChanges)
|
||||
|
||||
t.ExpectPopup().CommitMessagePanel().
|
||||
Title(Equals("Commit summary")).
|
||||
/* EXPECTED:
|
||||
InitialText(Equals("[TEST-001]: ")).
|
||||
Type("my commit message").
|
||||
ACTUAL: */
|
||||
InitialText(Equals("[TEST-001]:")).
|
||||
Type(" my commit message").
|
||||
Cancel()
|
||||
|
||||
t.Views().Files().
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue