summaryrefslogtreecommitdiffstats
path: root/pkg/integration/tests/custom_commands/form_prompts.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/integration/tests/custom_commands/form_prompts.go')
-rw-r--r--pkg/integration/tests/custom_commands/form_prompts.go18
1 files changed, 9 insertions, 9 deletions
diff --git a/pkg/integration/tests/custom_commands/form_prompts.go b/pkg/integration/tests/custom_commands/form_prompts.go
index e07f57450..9ede837ce 100644
--- a/pkg/integration/tests/custom_commands/form_prompts.go
+++ b/pkg/integration/tests/custom_commands/form_prompts.go
@@ -57,26 +57,26 @@ var FormPrompts = NewIntegrationTest(NewIntegrationTestArgs{
},
Run: func(
shell *Shell,
- input *Input,
+ t *TestDriver,
keys config.KeybindingConfig,
) {
- input.Model().WorkingTreeFileCount(0)
+ t.Model().WorkingTreeFileCount(0)
- input.Views().Files().
+ t.Views().Files().
IsFocused().
Press("a")
- input.ExpectPrompt().Title(Equals("Enter a file name")).Type("my file").Confirm()
+ t.ExpectPrompt().Title(Equals("Enter a file name")).Type("my file").Confirm()
- input.ExpectMenu().Title(Equals("Choose file content")).Select(Contains("bar")).Confirm()
+ t.ExpectMenu().Title(Equals("Choose file content")).Select(Contains("bar")).Confirm()
- input.ExpectConfirmation().
+ t.ExpectConfirmation().
Title(Equals("Are you sure?")).
Content(Equals("Are you REALLY sure you want to make this file? Up to you buddy.")).
Confirm()
- input.Model().WorkingTreeFileCount(1)
- input.Views().Files().SelectedLine(Contains("my file"))
- input.Views().Main().Content(Contains(`"BAR"`))
+ t.Model().WorkingTreeFileCount(1)
+ t.Views().Files().SelectedLine(Contains("my file"))
+ t.Views().Main().Content(Contains(`"BAR"`))
},
})