mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-13 05:15:53 +02:00
add view asserter getter struct
This commit is contained in:
parent
b64f55518b
commit
be30cbb375
35 changed files with 184 additions and 174 deletions
|
@ -20,7 +20,7 @@ var Revert = NewIntegrationTest(NewIntegrationTestArgs{
|
|||
|
||||
input.SwitchToCommitsView()
|
||||
|
||||
assert.CurrentView().Lines(
|
||||
assert.Views().Current().Lines(
|
||||
Contains("first commit"),
|
||||
)
|
||||
|
||||
|
@ -30,13 +30,13 @@ var Revert = NewIntegrationTest(NewIntegrationTestArgs{
|
|||
Content(MatchesRegexp(`Are you sure you want to revert \w+?`)).
|
||||
Confirm()
|
||||
|
||||
assert.CurrentView().Name("commits").
|
||||
assert.Views().Current().Name("commits").
|
||||
Lines(
|
||||
Contains("Revert \"first commit\"").IsSelected(),
|
||||
Contains("first commit"),
|
||||
)
|
||||
|
||||
assert.MainView().Content(Contains("-myfile content"))
|
||||
assert.Views().Main().Content(Contains("-myfile content"))
|
||||
assert.FileSystemPathNotPresent("myfile")
|
||||
},
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue