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

移除没有测试示例的文件

上级 f8739a17
// uni-app自动化测试教程: uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/
describe('API-loading', () => {
let page;
const isAndroid = process.env.UNI_OS_NAME === "android";
beforeAll(async () => {
page = await program.reLaunch('/pages/API/loading/loading')
await page.waitFor(200);
});
// it("onload-loading-test", async () => {
// if (isAndroid) {
// const res = await page.callMethod('jest_getWindowInfo')
// const windowHeight = res.windowHeight * res.pixelRatio;
// const windowWidth = res.windowWidth * res.pixelRatio;
// const image = await program.screenshot({
// adb: true,
// area: {
// x: 0,
// y: windowHeight / 2 + 120,
// height: windowHeight / 2,
// width:windowWidth
// },
// });
// expect(image).toMatchImageSnapshot();
// }else{
// const image = await program.screenshot({
// adb: true,
// fullPage: true
// });
// expect(image).toMatchImageSnapshot()
// }
// })
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册