BackstopJs。我可以使用 png 或 svg 作为参考 URL 吗?

BackstopJs. Am I able to use a png or svg as the reference URL?

我目前正在学习用于视觉回归测试的 BackstopJs。但是,我们的参考文件基于 figma,很难抓取我需要的确切屏幕(我们在一个文件中显示多个视图)。有没有办法让我使用 png 作为 referenceUrl?

谢谢!

发现我可以 link 到浏览器 URL 中的文件并且 backstop 与它配合得很好。

例如:文件 /Users/user/Desktop/image