You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 22, 2024. It is now read-only.
This issue has been automatically marked as inactive because it has not had recent activity. It will be closed in seven days if no further activity occurs. Thank you for your contributions.
Bug Report
Description
I would like to take a screenshot in an afterEach hook so that I can reduce repeated code, however when I try this I get the error "Cannot read property 'file' of undefined". This is because of the following line: https://github.com/cerner/terra-toolkit/blob/main/packages/terra-functional-testing/src/services/wdio-visual-regression-service/methods/BaseCompare.js#L106
Steps to Reproduce
Additional Context / Screenshots
Expected Behavior
I expect the screenshot to succeed.
Possible Solution
It appears these hooks hold the file path in
context.suite
instead, so I think the offending line of code above should be updated to check for that.Environment
@ Mentions
The text was updated successfully, but these errors were encountered: