提交 3c228579 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test(picker-view): 优化测试截图区域

上级 e5a6eeef
...@@ -14,7 +14,7 @@ describe('PickerView.uvue', () => { ...@@ -14,7 +14,7 @@ describe('PickerView.uvue', () => {
}) })
async function toScreenshot(imgName) { async function toScreenshot(imgName) {
const image = await program.screenshot(); const image = await program.screenshot({fullPage: true});
expect(image).toSaveImageSnapshot({customSnapshotIdentifier() { expect(image).toSaveImageSnapshot({customSnapshotIdentifier() {
return imgName return imgName
}}) }})
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册