When collecting related screenshots for various features e.g. gutter icons, they are returned for screenshots not just for the containing spec file but other spec files too, if the screenshot name matches.
Create a spec file S1 with a validation for screenshot A.
Create a spec file S2 with a validation for screenshot B where B has the same name as A.
Execute one of the collection methods in TerraScreenshotCollector for S1.
Expected results
The collection should return only A, but not B because B is not in the source spec file.
Actual results
The collection returns A and B as well because they have the same name.
Technical notes
Related parts:
TerraScreenshotValidationLineMarkerProvider
MissingScreenshotInspection
TerraScreenshotReference
Unit test data will need to be reorganized as well.
Steps to reproduce
When collecting related screenshots for various features e.g. gutter icons, they are returned for screenshots not just for the containing spec file but other spec files too, if the screenshot name matches.
TerraScreenshotCollector
for S1.Expected results
The collection should return only A, but not B because B is not in the source spec file.
Actual results
The collection returns A and B as well because they have the same name.
Technical notes
Versions affected
0.3.0, 0.3.1, 0.4.0
Out of scope