mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-13 05:15:53 +02:00
refactor commit message stuff in integration tests
This commit is contained in:
parent
926ed7b9b2
commit
b64f55518b
6 changed files with 54 additions and 16 deletions
|
@ -19,12 +19,7 @@ var CommitMultiline = NewIntegrationTest(NewIntegrationTestArgs{
|
|||
input.PrimaryAction()
|
||||
input.Press(keys.Files.CommitChanges)
|
||||
|
||||
assert.InCommitMessagePanel()
|
||||
input.Type("first line")
|
||||
input.Press(keys.Universal.AppendNewline)
|
||||
input.Press(keys.Universal.AppendNewline)
|
||||
input.Type("third line")
|
||||
input.Confirm()
|
||||
input.CommitMessagePanel().Type("first line").AddNewline().AddNewline().Type("third line").Confirm()
|
||||
|
||||
assert.CommitCount(1)
|
||||
assert.HeadCommitMessage(Equals("first line"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue