mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-27 23:08:02 +02:00
Assert that the search status view is visible
Just to be really sure that it not only contains the expected status text, but also actually shows it.
This commit is contained in:
parent
44ad36bb39
commit
779e6f95a3
@ -31,7 +31,7 @@ var Search = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Type("two").
|
||||
Confirm()
|
||||
|
||||
t.Views().Search().Content(Contains("matches for 'two' (1 of 1)"))
|
||||
t.Views().Search().IsVisible().Content(Contains("matches for 'two' (1 of 1)"))
|
||||
}).
|
||||
Lines(
|
||||
Contains("four"),
|
||||
@ -46,7 +46,7 @@ var Search = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Type("o").
|
||||
Confirm()
|
||||
|
||||
t.Views().Search().Content(Contains("matches for 'o' (2 of 3)"))
|
||||
t.Views().Search().IsVisible().Content(Contains("matches for 'o' (2 of 3)"))
|
||||
}).
|
||||
Lines(
|
||||
Contains("four"),
|
||||
@ -56,7 +56,7 @@ var Search = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
).
|
||||
Press("n").
|
||||
Tap(func() {
|
||||
t.Views().Search().Content(Contains("matches for 'o' (3 of 3)"))
|
||||
t.Views().Search().IsVisible().Content(Contains("matches for 'o' (3 of 3)"))
|
||||
}).
|
||||
Lines(
|
||||
Contains("four"),
|
||||
@ -66,7 +66,7 @@ var Search = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
).
|
||||
Press("n").
|
||||
Tap(func() {
|
||||
t.Views().Search().Content(Contains("matches for 'o' (1 of 3)"))
|
||||
t.Views().Search().IsVisible().Content(Contains("matches for 'o' (1 of 3)"))
|
||||
}).
|
||||
Lines(
|
||||
Contains("four").IsSelected(),
|
||||
@ -76,7 +76,7 @@ var Search = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
).
|
||||
Press("n").
|
||||
Tap(func() {
|
||||
t.Views().Search().Content(Contains("matches for 'o' (2 of 3)"))
|
||||
t.Views().Search().IsVisible().Content(Contains("matches for 'o' (2 of 3)"))
|
||||
}).
|
||||
Lines(
|
||||
Contains("four"),
|
||||
@ -86,7 +86,7 @@ var Search = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
).
|
||||
Press("N").
|
||||
Tap(func() {
|
||||
t.Views().Search().Content(Contains("matches for 'o' (1 of 3)"))
|
||||
t.Views().Search().IsVisible().Content(Contains("matches for 'o' (1 of 3)"))
|
||||
}).
|
||||
Lines(
|
||||
Contains("four").IsSelected(),
|
||||
@ -96,7 +96,7 @@ var Search = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
).
|
||||
Press("N").
|
||||
Tap(func() {
|
||||
t.Views().Search().Content(Contains("matches for 'o' (3 of 3)"))
|
||||
t.Views().Search().IsVisible().Content(Contains("matches for 'o' (3 of 3)"))
|
||||
}).
|
||||
Lines(
|
||||
Contains("four"),
|
||||
|
@ -29,7 +29,7 @@ var Search = NewIntegrationTest(NewIntegrationTestArgs{
|
||||
Type("four").
|
||||
Confirm()
|
||||
|
||||
t.Views().Search().Content(Contains("matches for 'four' (1 of 1)"))
|
||||
t.Views().Search().IsVisible().Content(Contains("matches for 'four' (1 of 1)"))
|
||||
}).
|
||||
SelectedLine(Contains("+four")). // stage the line
|
||||
PressPrimaryAction().
|
||||
|
Loading…
x
Reference in New Issue
Block a user