提交 9afa0efc 编写于 作者: study夏羽's avatar study夏羽

update

上级 903fc23f
......@@ -27,13 +27,13 @@ describe('pages/list/search/search.vue', () => {
await page.setData({searchText: '小程序'})
// console.log(await page.data('searchText'),"searchText--------");
// 搜索 “小程序”
await page.callMethod('search', '小程序')
await page.waitFor(300)
if (process.env.UNI_PLATFORM != "mp-weixin") {
expect.assertions(1);
expect((await program.currentPage()).path).toBe('pages/list/list')
}
console.log(await program.currentPage(),"currentPage---------");
// if (process.env.UNI_PLATFORM != "mp-weixin") {
// expect.assertions(1);
// expect((await program.currentPage()).path).toBe('pages/list/list')
// }
})
});
......@@ -18,14 +18,14 @@ describe('pages/ucenter/about/about.vue', () => {
it('screenshot', async () => {
console.log("process.env.UNI_PLATFORM: ",process.env.UNI_PLATFORM);
expect.assertions(1);
expect((await page.data('about')).appName).toBe('uni-starter')
if (process.env.UNI_PLATFORM === "app-plus") {
await program.screenshot({
path: "static/screenshot/about-app.png" // 默认项目根目录
})
expect.assertions(1);
expect((await page.data('about')).appName).toBe('uni-starter')
await page.callMethod('navigateTo', {
url: "https://ask.dcloud.net.cn/protocol.html",
title: "用户服务条款"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册