Commit e365c12
committed
Fix spec/system/topics/search_spec.rb tests
The test checking that no dropdown menu is present when a user only has
1 provider was previously passing erroneously: it was checking that no
provider select menu was present before the Topics page was loaded, so it
only confirmed that that dropdown menu was not on the "Dashbaord" page.
I had to tweak some tests because:
- It is also no longer possible for a contributor to have no providers.
- we now automatically associate 1 provider to the user in the factory,
so the set up for "with 1 associated provider" was incorrect.1 parent 8bf7593 commit e365c12
1 file changed
+2
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
183 | 183 | | |
184 | 184 | | |
185 | 185 | | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
197 | | - | |
198 | 186 | | |
199 | 187 | | |
200 | | - | |
| 188 | + | |
201 | 189 | | |
202 | 190 | | |
203 | 191 | | |
| |||
316 | 304 | | |
317 | 305 | | |
318 | 306 | | |
319 | | - | |
| 307 | + | |
320 | 308 | | |
321 | 309 | | |
322 | 310 | | |
| |||
0 commit comments