You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
想咨询下 uniapp自动化测试支持部署到服务器上定时任务去跑测试用例吗?目前遇到的问题是npm run test:mp-weixin 本地电脑跑有微信开发者工具能看到测试报告;如果是服务器linux jenkins自动部署,执行npm run test:mp-weixin,没有微信开发者工具,是不是就不行?或者有啥别的方案不?
一 、环境说明:
node: v16.20.2
npm : v8.19.4
@vue/cli 4.5.19
二、vite + vue3 自动化测试方案配置:
npm install --save cross-env puppeteer adbkit node-simctl jest playwright @playwright/test
npm install puppeteer@14.0.0 --save-dev
三、问题的点:
问题一:npm run test:mp-weixin 后打开微信开发者工具报错,“启动模拟器失败”,错误显示:/dist/dev/mp-weixin缺少tabar配置的图片资源;是vite暂时不支持自动化测试使用吗?(在下边demo中有例子)
问题二:element.input() 官方提供的api 在h5端设置值不起作用;微信小程序可以用;是不兼容h5吗?api地址:https://uniapp.dcloud.net.cn/worktile/auto/api.html#element-input(在下边demo中有例子)
问题三:目前遇到vue3 页面,setup语法, page.data() page.callMethod() 取不到data 和 method? 有什么可以替代的方案吗?
问题四:官方可否提供可用的vite/vue3 测试的demo? 或者vue-cli + vue3 自动化测试的demo? 目前官网提供的demo只有vue2 https://github.com/dcloudio/hello-uniapp
最小可复现问题demo:https://github.com/w123angmeng/vite-vue3-autotest-demo/tree/main
期待尽快官方回复
The text was updated successfully, but these errors were encountered: