Improve dashboard feature spec performance
What does this MR do and why?
Improve execution time of specs at (ee/spec/features/projects/analytics/dashboards_spec.rb:118)[https://gitlab.com/gitlab-org/gitlab/-/blob/master/ee/spec/features/projects/analytics/dashboards_spec.rb#L118].
Steps taken
- Reduce amount of issues and merge requests created
- Merge two specs which were doing basically the same thing into one to avoid rendering the same page twice.
- Create data aggregation on
before_all
block
The execution time went from 1:21 minutes to 37 seconds on localhost.
related to #476148 (comment 2096132282)
Edited by Felipe Cardozo