summaryrefslogtreecommitdiffstats
path: root/pkg/integration/components
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2023-07-22 13:04:39 +1000
committerJesse Duffield <jessedduffield@gmail.com>2023-07-22 13:14:29 +1000
commitb46623ebef3c897e0bb20bd4dcdd0832b349f2af (patch)
treed005e5fb2cd1331131fde2da3a5d981446f7e1b4 /pkg/integration/components
parent084c0a19bcb72db7108e692d186e5b6c64440ed4 (diff)
Use fuzzy search when filtering a view
This adds fuzzy filtering instead of exact match filtering, which is more forgiving of typos and allows more efficiency.
Diffstat (limited to 'pkg/integration/components')
-rw-r--r--pkg/integration/components/view_driver.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/integration/components/view_driver.go b/pkg/integration/components/view_driver.go
index d1d1571c7..d3216bb91 100644
--- a/pkg/integration/components/view_driver.go
+++ b/pkg/integration/components/view_driver.go
@@ -539,6 +539,7 @@ func (self *ViewDriver) FilterOrSearch(text string) *ViewDriver {
self.Press(self.t.keys.Universal.StartSearch).
Tap(func() {
self.t.ExpectSearch().
+ Clear().
Type(text).
Confirm()