picimako / terra-support

Adds support for Cerner's Terra UI component and test automation libraries.
https://plugins.jetbrains.com/plugin/15430-terra-support
Apache License 2.0
0 stars 0 forks source link

TerraScreenshotCollector returns screenshots for the resolved name from other spec files too #43

Closed picimako closed 3 years ago

picimako commented 3 years ago

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.

  1. Create a spec file S1 with a validation for screenshot A.
  2. Create a spec file S2 with a validation for screenshot B where B has the same name as A.
  3. 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

Versions affected

0.3.0, 0.3.1, 0.4.0

Out of scope

picimako commented 3 years ago

Completed on release branch.