Skip to content

Add feature tests for group analytics dashboard visualizations

Alex Pennells requested to merge 439817-add-tests into master

What does this MR do and why?

Creates a new feature test suite for group analytics dashboards visualizations. Up until now we've had a single test suite which covered the dashboard listing page, as well as the individual visualizations on the page. We want to add more tests for the visualizations, so it makes sense to split the logic now before we build on top of it.

This MR is primarily just moving tests from dashboards_spec.rb to visualizations_spec.rb. There was some additional refactoring made along the way, to prepare for the new tests to be added in a later MR.

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

How to set up and validate locally

bin/rspec ee/spec/features/groups/analytics/dashboards_spec.rb ee/spec/features/groups/analytics/visualizations_spec.rb ee/spec/features/projects/analytics/dashboards_spec.rb

Related to #439817 (closed)

Merge request reports