remove dependency on model
This commit is contained in:
@@ -22,7 +22,10 @@ var DirWithUntrackedFile = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
shell.UpdateFile("dir/file", "baz")
|
||||
},
|
||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||
t.Model().CommitCount(1)
|
||||
t.Views().Commits().
|
||||
Lines(
|
||||
Contains("first commit"),
|
||||
)
|
||||
|
||||
t.Views().Main().
|
||||
Content(DoesNotContain("error: Could not access")).
|
||||
|
||||
@@ -72,8 +72,6 @@ var DiscardChanges = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
},
|
||||
|
||||
Run: func(t *TestDriver, keys config.KeybindingConfig) {
|
||||
t.Model().CommitCount(3)
|
||||
|
||||
type statusFile struct {
|
||||
status string
|
||||
label string
|
||||
@@ -121,6 +119,6 @@ var DiscardChanges = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
{status: "??", label: "new.txt", menuTitle: "new.txt"},
|
||||
})
|
||||
|
||||
t.Model().WorkingTreeFileCount(0)
|
||||
t.Views().Files().IsEmpty()
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user