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

test(general event): 补充截图验证longpress结果

上级 58555f75
...@@ -249,6 +249,8 @@ describe('event trigger', () => { ...@@ -249,6 +249,8 @@ describe('event trigger', () => {
duration: 1000 duration: 1000
}) })
} }
const img = await program.screenshot({fullPage: true});
expect(img).toSaveImageSnapshot()
const longPressTouchIdentifierText = await longPressTouchIdentifier.text() const longPressTouchIdentifierText = await longPressTouchIdentifier.text()
expect(longPressTouchIdentifierText).not.toBe(longPressTouchTargetIdentifier) expect(longPressTouchIdentifierText).not.toBe(longPressTouchTargetIdentifier)
expect(longPressTouchIdentifierText).toBeTruthy() expect(longPressTouchIdentifierText).toBeTruthy()
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册