提交 bff58493 编写于 作者: 杜庆泉's avatar 杜庆泉

dix takesnapshot autotest 虚拟机测试失败的问题

上级 40085b6e
...@@ -13,15 +13,15 @@ describe("element-takesnapshot", () => { ...@@ -13,15 +13,15 @@ describe("element-takesnapshot", () => {
beforeAll(async () => { beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH) page = await program.reLaunch(PAGE_PATH)
await page.waitFor(600); await page.waitFor(1200);
}); });
it("takeSnapshot", async () => { it("takeSnapshot", async () => {
await page.waitFor(600) await page.waitFor(1200)
let btnTakeSnapshot = await page.$('.btn-TakeSnapshot') let btnTakeSnapshot = await page.$('.btn-TakeSnapshot')
await btnTakeSnapshot.tap() await btnTakeSnapshot.tap()
page.waitFor(600) await page.waitFor(1200)
const image = await getData('snapImage') const image = await getData('snapImage')
console.log(image) console.log(image)
///storage/emulated/0/Android/data/io.dcloud.uniappx/apps/__UNI__3584C99/cache/temp/screenshot/1697513148915.png ///storage/emulated/0/Android/data/io.dcloud.uniappx/apps/__UNI__3584C99/cache/temp/screenshot/1697513148915.png
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册