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:
Stefan Haller 2024-12-12 11:22:08 +01:00
parent 87d5da511e
commit ec92d92bf4

View file

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