1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-06-19 00:28:03 +02:00

refactor commit message stuff in integration tests

This commit is contained in:
Jesse Duffield
2022-12-27 11:55:30 +11:00
parent 926ed7b9b2
commit b64f55518b
6 changed files with 54 additions and 16 deletions

View File

@ -22,10 +22,9 @@ var Commit = NewIntegrationTest(NewIntegrationTestArgs{
input.PrimaryAction()
input.Press(keys.Files.CommitChanges)
assert.InCommitMessagePanel()
commitMessage := "my commit message"
input.Type(commitMessage)
input.Confirm()
input.CommitMessagePanel().Type(commitMessage).Confirm()
assert.CommitCount(1)
assert.HeadCommitMessage(Equals(commitMessage))