diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2024-06-07 16:01:09 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2024-06-23 11:43:12 +0200 |
commit | 779e6f95a3fca869fb886201305217deb2dca8f5 (patch) | |
tree | 5b29e466408edf7635276b20809f56586d561601 | |
parent | 44ad36bb393585235042493f75b6c68d7d51732f (diff) |
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.
-rw-r--r-- | pkg/integration/tests/commit/search.go | 14 | ||||
-rw-r--r-- | pkg/integration/tests/staging/search.go | 2 |
2 files changed, 8 insertions, 8 deletions
diff --git a/pkg/integration/tests/commit/search.go b/pkg/integration/tests/commit/search.go index c0a9dfd0b..24754b517 100644 --- a/pkg/integration/tests/commit/search.go +++ b/pkg/integration/tests/commit/search.go @@ -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"), diff --git a/pkg/integration/tests/staging/search.go b/pkg/integration/tests/staging/search.go index a2c8edd69..1f2c95777 100644 --- a/pkg/integration/tests/staging/search.go +++ b/pkg/integration/tests/staging/search.go @@ -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(). |