gitlab-org--gitlab-foss/spec/features/explore
Eric Eastwood a1d0a16bfb Fix flakey time-senstive group filter specs
This passed previously because the filtered group search is debounced by 0.5s. The test cleared the input, entered `group1`, cleared the input, entered nothing, and the all of groups are still listed because of the 0.5s debounce hasn't triggered and the test passes before anything is actually filtered.

Even if we assert that the list is filtered before clearing the input, the test still fails because the nature of the `fill_in 'filter', with: ""` method is that ["if you're setting the value to "", no keys are ever actually sent, hence no [`input`] event"](https://github.com/teamcapybara/capybara/issues/203#issuecomment-557281) and we never filter back to everything in the list.

So the solution is two-fold, add in the assertions that the list is actually filtered after each step. Then use a method that fills the input with proper events fired.
2018-06-14 21:31:54 -05:00
..
groups_list_spec.rb Fix flakey time-senstive group filter specs 2018-06-14 21:31:54 -05:00
groups_spec.rb Move explore groups spinach test to RSpec 2017-12-25 12:27:47 +05:00
new_menu_spec.rb Fix new menu spec 2018-04-20 13:15:09 -05:00
user_explores_projects_spec.rb Replace the 'features/explore/projects.feature' spinach test with an rspec analog 2017-10-11 15:26:04 +11:00