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

@ -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"))