Skip to content

Commit

Permalink
test: fix switch to editor test
Browse files Browse the repository at this point in the history
  • Loading branch information
2KAbhishek committed Dec 4, 2023
1 parent 454d4c6 commit 9ce1875
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 5 additions & 0 deletions pkg/integration/components/commit_message_panel_driver.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,3 +83,8 @@ func (self *CommitMessagePanelDriver) SelectNextMessage() *CommitMessagePanelDri
self.getViewDriver().SelectNextItem()
return self
}

func (self *CommitMessagePanelDriver) OpenCommitMenu() *CommitMessagePanelDriver {
self.t.press(self.t.keys.CommitMessage.CommitMenu)
return self
}
3 changes: 2 additions & 1 deletion pkg/integration/tests/commit/commit_switch_to_editor.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ var CommitSwitchToEditor = NewIntegrationTest(NewIntegrationTestArgs{
SwitchToDescription().
Type("second line").
SwitchToSummary().
SwitchToEditor()
OpenCommitMenu().
Type("e")
t.Views().Commits().
Lines(
Contains("first line"),
Expand Down

0 comments on commit 9ce1875

Please sign in to comment.