1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-09 01:17:06 +02:00

migrate diffing integration tests

This commit is contained in:
Jesse Duffield
2022-12-21 22:52:23 +11:00
parent 57a1817deb
commit 7c7f7bf9b9
127 changed files with 203 additions and 282 deletions

View File

@ -192,6 +192,13 @@ func (self *Assert) InMenu() {
})
}
func (self *Assert) NotInPopup() {
self.assertWithRetries(func() (bool, string) {
currentViewName := self.gui.CurrentContext().GetView().Name()
return currentViewName != "menu" && currentViewName != "confirmation" && currentViewName != "commitMessage", "Expected popup not to be focused"
})
}
func (self *Assert) MatchCurrentViewTitle(matcher *matcher) {
self.matchString(matcher, "Unexpected current view title.",
func() string {