Skip to content

Commit 79e0775

Browse files
authored
Update project_autocomplete_spec.rb
Fix spec as it is now expected to match more names
1 parent 838d641 commit 79e0775

1 file changed

Lines changed: 2 additions & 8 deletions

File tree

spec/features/projects/project_autocomplete_spec.rb

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -111,10 +111,10 @@
111111
expect(page).to have_no_css("strong")
112112
end
113113

114-
# Expect fuzzy matches for plain
114+
# Expect fuzzy matches for multiple substrings
115115
top_menu.search "Plain pr"
116116
top_menu.expect_result "Plain project"
117-
top_menu.expect_no_result "Plain other project"
117+
top_menu.expect_result "Plain other project"
118118

119119
# Expect search to match names only and not the identifier
120120
top_menu.clear_search
@@ -124,12 +124,6 @@
124124
top_menu.expect_result "Plain other project"
125125
top_menu.expect_no_result "Project with different name and identifier"
126126

127-
# it finds each word in the query as a separate substring
128-
top_menu.search "pl other proj"
129-
top_menu.expect_result "Plain project"
130-
top_menu.expect_result "Plain other project"
131-
top_menu.expect_no_result "Project with different name and identifier"
132-
133127
# Expect hierarchy
134128
top_menu.clear_search
135129

0 commit comments

Comments
 (0)