mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-02-01 13:17:53 +02:00
Wait in demo after setting caption
This looks nicer than waiting a second and then showing the caption as the action begins
This commit is contained in:
parent
a200fccba9
commit
f43fd7af79
@ -190,7 +190,6 @@ func (self *IntegrationTest) Run(gui integrationTypes.GuiDriver) {
|
|||||||
// Setting caption to clear the options menu from whatever it starts with
|
// Setting caption to clear the options menu from whatever it starts with
|
||||||
testDriver.SetCaption("")
|
testDriver.SetCaption("")
|
||||||
testDriver.SetCaptionPrefix("")
|
testDriver.SetCaptionPrefix("")
|
||||||
testDriver.Wait(1000)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
self.run(testDriver, keys)
|
self.run(testDriver, keys)
|
||||||
|
@ -28,6 +28,7 @@ var Bisect = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
},
|
},
|
||||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||||
t.SetCaptionPrefix("Git bisect")
|
t.SetCaptionPrefix("Git bisect")
|
||||||
|
t.Wait(1000)
|
||||||
|
|
||||||
markCommitAsBad := func() {
|
markCommitAsBad := func() {
|
||||||
t.Views().Commits().
|
t.Views().Commits().
|
||||||
|
@ -32,6 +32,7 @@ var CherryPick = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
},
|
},
|
||||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||||
t.SetCaptionPrefix("Cherry pick commits from another branch")
|
t.SetCaptionPrefix("Cherry pick commits from another branch")
|
||||||
|
t.Wait(1000)
|
||||||
|
|
||||||
t.Views().Branches().
|
t.Views().Branches().
|
||||||
Focus().
|
Focus().
|
||||||
|
@ -28,6 +28,7 @@ var CommitAndPush = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
},
|
},
|
||||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||||
t.SetCaptionPrefix("Stage a file")
|
t.SetCaptionPrefix("Stage a file")
|
||||||
|
t.Wait(1000)
|
||||||
|
|
||||||
t.Views().Files().
|
t.Views().Files().
|
||||||
IsFocused().
|
IsFocused().
|
||||||
|
@ -28,6 +28,7 @@ var InteractiveRebase = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
},
|
},
|
||||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||||
t.SetCaptionPrefix("Interactive rebase")
|
t.SetCaptionPrefix("Interactive rebase")
|
||||||
|
t.Wait(1000)
|
||||||
|
|
||||||
t.Views().Commits().
|
t.Views().Commits().
|
||||||
IsFocused().
|
IsFocused().
|
||||||
|
@ -28,6 +28,7 @@ var NukeWorkingTree = NewIntegrationTest(NewIntegrationTestArgs{
|
|||||||
},
|
},
|
||||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||||
t.SetCaptionPrefix("Nuke the working tree")
|
t.SetCaptionPrefix("Nuke the working tree")
|
||||||
|
t.Wait(1000)
|
||||||
|
|
||||||
t.Views().Files().
|
t.Views().Files().
|
||||||
IsFocused().
|
IsFocused().
|
||||||
|
Loading…
x
Reference in New Issue
Block a user