2023-01-21 13:38:14 +02:00
|
|
|
package components
|
|
|
|
|
|
|
|
type CommitDescriptionPanelDriver struct {
|
|
|
|
t *TestDriver
|
|
|
|
}
|
|
|
|
|
|
|
|
func (self *CommitDescriptionPanelDriver) getViewDriver() *ViewDriver {
|
|
|
|
return self.t.Views().CommitDescription()
|
|
|
|
}
|
|
|
|
|
|
|
|
func (self *CommitDescriptionPanelDriver) Type(value string) *CommitDescriptionPanelDriver {
|
|
|
|
self.t.typeContent(value)
|
|
|
|
|
|
|
|
return self
|
|
|
|
}
|
|
|
|
|
|
|
|
func (self *CommitDescriptionPanelDriver) SwitchToSummary() *CommitMessagePanelDriver {
|
|
|
|
self.getViewDriver().PressTab()
|
|
|
|
return &CommitMessagePanelDriver{t: self.t}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (self *CommitDescriptionPanelDriver) AddNewline() *CommitDescriptionPanelDriver {
|
2023-07-31 10:32:38 +02:00
|
|
|
self.t.pressFast(self.t.keys.Universal.Confirm)
|
2023-01-21 13:38:14 +02:00
|
|
|
return self
|
|
|
|
}
|
2023-07-22 06:05:42 +02:00
|
|
|
|
|
|
|
func (self *CommitDescriptionPanelDriver) Title(expected *TextMatcher) *CommitDescriptionPanelDriver {
|
|
|
|
self.getViewDriver().Title(expected)
|
|
|
|
|
|
|
|
return self
|
|
|
|
}
|