diff options
Diffstat (limited to 'pkg/integration/tests/branch/reset.go')
-rw-r--r-- | pkg/integration/tests/branch/reset.go | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/pkg/integration/tests/branch/reset.go b/pkg/integration/tests/branch/reset.go index f96a48b56..bfd1b950f 100644 --- a/pkg/integration/tests/branch/reset.go +++ b/pkg/integration/tests/branch/reset.go @@ -20,13 +20,13 @@ var Reset = NewIntegrationTest(NewIntegrationTestArgs{ shell.Checkout("current-branch") shell.EmptyCommit("current-branch commit") }, - Run: func(shell *Shell, input *Input, keys config.KeybindingConfig) { - input.Views().Commits().Lines( + Run: func(shell *Shell, t *TestDriver, keys config.KeybindingConfig) { + t.Views().Commits().Lines( Contains("current-branch commit"), Contains("root commit"), ) - input.Views().Branches(). + t.Views().Branches(). Focus(). Lines( Contains("current-branch"), @@ -35,10 +35,10 @@ var Reset = NewIntegrationTest(NewIntegrationTestArgs{ SelectNextItem(). Press(keys.Commits.ViewResetOptions) - input.ExpectMenu().Title(Contains("reset to other-branch")).Select(Contains("hard reset")).Confirm() + t.ExpectMenu().Title(Contains("reset to other-branch")).Select(Contains("hard reset")).Confirm() // assert that we now have the expected commits in the commit panel - input.Views().Commits(). + t.Views().Commits(). Lines( Contains("other-branch commit"), Contains("root commit"), |