【发布时间】:2019-07-21 22:25:38
【问题描述】:
当我运行测试时,我不想在代理机器上保存任何屏幕截图 我想将这些图像保存到自定义目录 当我尝试这样做时,我收到此错误 RangeError: Maximum call stack size exceeded。如果我在 cypress 目录中提供一个文件夹路径,比如这个 cypress\my folder
我们真的可以将屏幕截图文件保存到与 cypress 目录不同的文件夹路径吗?
addMatchImageSnapshotCommand(
{
failureThreshold: 0.00, // threshold for entire image
failureThresholdType: 'percent', // percent of image or number of pixels
customDiffConfig: { threshold: 0.0 }, // threshold for each pixel
capture: 'viewport', // capture viewport in screenshot
customSnapshotsDir:'C:\foldername',
customDiffDir:'C:\foldername'
}
);
【问题讨论】:
标签: cypress