1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03:00

Support matchers on integers in integration tests

This commit is contained in:
Jesse Duffield
2023-06-03 15:12:31 +10:00
parent e98935f83e
commit dd34adb36c
15 changed files with 220 additions and 146 deletions

View File

@ -11,7 +11,7 @@ func (self *AlertDriver) getViewDriver() *ViewDriver {
}
// asserts that the alert view has the expected title
func (self *AlertDriver) Title(expected *Matcher) *AlertDriver {
func (self *AlertDriver) Title(expected *TextMatcher) *AlertDriver {
self.getViewDriver().Title(expected)
self.hasCheckedTitle = true
@ -20,7 +20,7 @@ func (self *AlertDriver) Title(expected *Matcher) *AlertDriver {
}
// asserts that the alert view has the expected content
func (self *AlertDriver) Content(expected *Matcher) *AlertDriver {
func (self *AlertDriver) Content(expected *TextMatcher) *AlertDriver {
self.getViewDriver().Content(expected)
self.hasCheckedContent = true