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
As far as I know this is the only method to receive snapshots paths and some more test info inside a custom matcher. I can require this file, but this means loosing TS support in IDE.
I think other people writing their own matchers would benefit from this as well.
The text was updated successfully, but these errors were encountered:
Feature request
I'm writing a custom matcher that ports additional image comparison algorithms in order to solve my issue in #7548
Could you please export
currentTestInfo()
from https://github.com/microsoft/playwright/blob/master/src/test/globals.ts so wen can import it in our custom matchers likeimport { currentTestInfo } from "@playwright/test"
As far as I know this is the only method to receive snapshots paths and some more test info inside a custom matcher. I can require this file, but this means loosing TS support in IDE.
I think other people writing their own matchers would benefit from this as well.
The text was updated successfully, but these errors were encountered: