diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2022-12-27 22:52:20 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2022-12-27 22:52:20 +1100 |
commit | ed93e0a2b0943379470049d2a25e4fb828179b97 (patch) | |
tree | b9cb34b8f017912299714fc67a9ca4f50ba63b3d /pkg/integration/tests/custom_commands/form_prompts.go | |
parent | c5050ecabd57702c7bfb02a38729ed8a4f23b2c5 (diff) |
remove dependency on model
Diffstat (limited to 'pkg/integration/tests/custom_commands/form_prompts.go')
-rw-r--r-- | pkg/integration/tests/custom_commands/form_prompts.go | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/pkg/integration/tests/custom_commands/form_prompts.go b/pkg/integration/tests/custom_commands/form_prompts.go index b35455368..c843232ee 100644 --- a/pkg/integration/tests/custom_commands/form_prompts.go +++ b/pkg/integration/tests/custom_commands/form_prompts.go @@ -56,9 +56,8 @@ var FormPrompts = NewIntegrationTest(NewIntegrationTestArgs{ } }, Run: func(t *TestDriver, keys config.KeybindingConfig) { - t.Model().WorkingTreeFileCount(0) - t.Views().Files(). + IsEmpty(). IsFocused(). Press("a") @@ -71,8 +70,11 @@ var FormPrompts = NewIntegrationTest(NewIntegrationTestArgs{ Content(Equals("Are you REALLY sure you want to make this file? Up to you buddy.")). Confirm() - t.Model().WorkingTreeFileCount(1) - t.Views().Files().SelectedLine(Contains("my file")) + t.Views().Files(). + Lines( + Contains("my file").IsSelected(), + ) + t.Views().Main().Content(Contains(`"BAR"`)) }, }) |