gitlab-org--gitlab-foss/spec/features/dashboard
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
..
todos Fix pagination spec, forgot to add space 2018-05-24 16:07:33 -05:00
active_tab_spec.rb Replaces tag: true into :tag in the specs 2017-10-07 13:57:54 +02:00
activity_spec.rb Export assigned issues in iCalendar feed 2018-05-31 14:01:04 +00:00
archived_projects_spec.rb Replace '.team << [user, role]' with 'add_role(user)' in specs 2017-12-22 19:18:28 +11:00
datetime_on_tooltips_spec.rb Replace '.team << [user, role]' with 'add_role(user)' in specs 2017-12-22 19:18:28 +11:00
group_spec.rb Merge branch 'master' into sh-headless-chrome-support 2017-10-09 15:00:00 -05:00
groups_list_spec.rb Fix flakey time-senstive group filter specs 2018-06-14 21:31:54 -05:00
help_spec.rb Remove superfluous type defs in specs 2017-07-27 14:31:52 +02:00
issuables_counter_spec.rb Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
issues_filter_spec.rb Export assigned issues in iCalendar feed 2018-05-31 14:01:04 +00:00
issues_spec.rb Export assigned issues in iCalendar feed 2018-05-31 14:01:04 +00:00
label_filter_spec.rb Replaces tag: true into :tag in the specs 2017-10-07 13:57:54 +02:00
merge_requests_spec.rb Fixed dashboard filtering tests 2018-04-03 20:19:20 +02:00
milestone_filter_spec.rb Reset milestone filter when clicking "Any Milestone" in dashboard 2018-04-26 19:08:47 +00:00
milestone_tabs_spec.rb Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
milestones_spec.rb Replace '.team << [user, role]' with 'add_role(user)' in specs 2017-12-22 19:18:28 +11:00
project_member_activity_index_spec.rb Replace '.team << [user, role]' with 'add_role(user)' in specs 2017-12-22 19:18:28 +11:00
projects_spec.rb Export assigned issues in iCalendar feed 2018-05-31 14:01:04 +00:00
shortcuts_spec.rb fixed up a bunch of specs 2017-08-29 15:35:49 +01:00
snippets_spec.rb Change all :empty_project to :project 2017-08-02 17:47:31 -04:00
user_filters_projects_spec.rb Replace '.team << [user, role]' with 'add_role(user)' in specs 2017-12-22 19:18:28 +11:00