summaryrefslogtreecommitdiffstats
path: root/pkg/integration/tests/commit/revert.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/integration/tests/commit/revert.go')
-rw-r--r--pkg/integration/tests/commit/revert.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/integration/tests/commit/revert.go b/pkg/integration/tests/commit/revert.go
index 23cb5cb8e..c2f3b9a52 100644
--- a/pkg/integration/tests/commit/revert.go
+++ b/pkg/integration/tests/commit/revert.go
@@ -15,17 +15,17 @@ var Revert = NewIntegrationTest(NewIntegrationTestArgs{
shell.GitAddAll()
shell.Commit("first commit")
},
- Run: func(shell *Shell, input *Input, keys config.KeybindingConfig) {
- input.Model().CommitCount(1)
+ Run: func(shell *Shell, t *TestDriver, keys config.KeybindingConfig) {
+ t.Model().CommitCount(1)
- input.Views().Commits().
+ t.Views().Commits().
Focus().
Lines(
Contains("first commit"),
).
Press(keys.Commits.RevertCommit).
Tap(func() {
- input.ExpectConfirmation().
+ t.ExpectConfirmation().
Title(Equals("Revert commit")).
Content(MatchesRegexp(`Are you sure you want to revert \w+?`)).
Confirm()
@@ -35,7 +35,7 @@ var Revert = NewIntegrationTest(NewIntegrationTestArgs{
Contains("first commit"),
)
- input.Views().Main().Content(Contains("-myfile content"))
- input.FileSystem().PathNotPresent("myfile")
+ t.Views().Main().Content(Contains("-myfile content"))
+ t.FileSystem().PathNotPresent("myfile")
},
})