test-selection gap: run view specs when partials inside the view changed
Context
We have found a new test gap by looking at the MR pipelines failures: gitlab-org/quality/engineering-productivity/team#179 (comment 1296962089).
A rails partial was changed, and it broke some view tests. Those tests were not run in the selective pipelines, because we don't have a partial -> view mapping.
Goal
When a partial gets changed, we should identify in which views those partials are included, and trigger the specs for those views.
Technical details
- You might want to reproduce the setup from gitlab-org/quality/engineering-productivity/team#179 (comment 1296962089) to ensure that the test gap is indeed gone.
- The implementation would be a mix between two of the test gaps remediations done in gitlab-org/quality/engineering-productivity&6 (comment 1221776683): #386719 (closed) and #386756 (closed).
Edited by David Dieulivol