|
78 | 78 | create(:project, name:, identifier:, members: { user => role }) |
79 | 79 | end |
80 | 80 | end |
81 | | - shared_let(:multi_word_project) do |
82 | | - create(:project, name: "The big beautiful fish", members: { user => role }) |
83 | | - end |
84 | 81 | shared_let(:non_member_project) { create(:project) } |
85 | 82 | shared_let(:public_project) { create(:public_project) } |
86 | 83 |
|
|
188 | 185 | top_menu.expect_current_project project2.name |
189 | 186 | end |
190 | 187 |
|
191 | | - it "supports multi-substring search by matching all space-separated terms" do |
192 | | - retry_block do |
193 | | - top_menu.toggle unless top_menu.open? |
194 | | - top_menu.expect_open |
195 | | - top_menu.expect_result multi_word_project.name |
196 | | - end |
197 | | - |
198 | | - # Both terms present anywhere in the name |
199 | | - retry_block do |
200 | | - top_menu.search "big fish" |
201 | | - top_menu.expect_result "The big beautiful fish" |
202 | | - top_menu.expect_no_result "Plain project" |
203 | | - end |
204 | | - |
205 | | - # Partial word as the second term |
206 | | - retry_block do |
207 | | - top_menu.search "big fi" |
208 | | - top_menu.expect_result "The big beautiful fish" |
209 | | - end |
210 | | - |
211 | | - # Terms in reverse order still match |
212 | | - retry_block do |
213 | | - top_menu.search "fish big" |
214 | | - top_menu.expect_result "The big beautiful fish" |
215 | | - end |
216 | | - |
217 | | - # One term that does not appear → no match |
218 | | - retry_block do |
219 | | - top_menu.search "big xyz" |
220 | | - top_menu.expect_no_result "The big beautiful fish" |
221 | | - end |
222 | | - end |
223 | | - |
224 | 188 | it "displays workspace type badges for portfolios and programs", |
225 | 189 | with_flag: { portfolio_models: true } do |
226 | 190 | retry_block do |
|
0 commit comments