Attach screenshots to the spec level suite, as we lack any more detailed information in which describe(), context() or it() they were created in.
This change also addresses a bug that causes screenshots to appear multiple times in the report, at least once per test case (as they were added to the suite inside the test cases loop).
Attach screenshots to the spec level suite, as we lack any more detailed information in which
describe()
,context()
orit()
they were created in.This change also addresses a bug that causes screenshots to appear multiple times in the report, at least once per test case (as they were added to the suite inside the test cases loop).