Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-starter
提交
903fc23f
U
uni-starter
项目概览
DCloud
/
uni-starter
通知
4747
Star
231
Fork
211
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
6
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
6
Issue
6
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
903fc23f
编写于
4月 20, 2023
作者:
study夏羽
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update screenshot
上级
9b82063f
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
21 addition
and
7 deletion
+21
-7
pages/ucenter/about/about.test.js
pages/ucenter/about/about.test.js
+10
-2
pages/ucenter/ucenter.test.js
pages/ucenter/ucenter.test.js
+11
-5
static/screenshot/about-app.png
static/screenshot/about-app.png
+0
-0
static/screenshot/about-h5.png
static/screenshot/about-h5.png
+0
-0
static/screenshot/about-mp.png
static/screenshot/about-mp.png
+0
-0
static/screenshot/about.png
static/screenshot/about.png
+0
-0
未找到文件。
pages/ucenter/about/about.test.js
浏览文件 @
903fc23f
...
@@ -18,9 +18,9 @@ describe('pages/ucenter/about/about.vue', () => {
...
@@ -18,9 +18,9 @@ describe('pages/ucenter/about/about.vue', () => {
it
(
'
screenshot
'
,
async
()
=>
{
it
(
'
screenshot
'
,
async
()
=>
{
console
.
log
(
"
process.env.UNI_PLATFORM:
"
,
process
.
env
.
UNI_PLATFORM
);
console
.
log
(
"
process.env.UNI_PLATFORM:
"
,
process
.
env
.
UNI_PLATFORM
);
if
(
!
isWX
)
{
if
(
process
.
env
.
UNI_PLATFORM
===
"
app-plus
"
)
{
await
program
.
screenshot
({
await
program
.
screenshot
({
path
:
"
static/screenshot/about.png
"
// 默认项目根目录
path
:
"
static/screenshot/about
-app
.png
"
// 默认项目根目录
})
})
expect
.
assertions
(
1
);
expect
.
assertions
(
1
);
...
@@ -30,6 +30,14 @@ describe('pages/ucenter/about/about.vue', () => {
...
@@ -30,6 +30,14 @@ describe('pages/ucenter/about/about.vue', () => {
url
:
"
https://ask.dcloud.net.cn/protocol.html
"
,
url
:
"
https://ask.dcloud.net.cn/protocol.html
"
,
title
:
"
用户服务条款
"
title
:
"
用户服务条款
"
})
})
}
else
if
(
process
.
env
.
UNI_PLATFORM
===
"
mp-weixin
"
){
await
program
.
screenshot
({
path
:
"
static/screenshot/about-weixin.png
"
// 默认项目根目录
})
}
else
if
(
process
.
env
.
UNI_PLATFORM
===
"
h5
"
){
await
program
.
screenshot
({
path
:
"
static/screenshot/about-h5.png
"
// 默认项目根目录
})
}
}
})
})
...
...
pages/ucenter/ucenter.test.js
浏览文件 @
903fc23f
...
@@ -45,13 +45,19 @@ describe('pages/ucenter/ucenter.vue', () => {
...
@@ -45,13 +45,19 @@ describe('pages/ucenter/ucenter.vue', () => {
await
program
.
screenshot
({
await
program
.
screenshot
({
path
:
"
static/screenshot/sign-app.png
"
path
:
"
static/screenshot/sign-app.png
"
})
})
}
else
{
}
else
if
(
process
.
env
.
UNI_PLATFORM
===
"
h5
"
)
{
console
.
log
(
'
else----普通签到
'
);
console
.
log
(
'
else----普通签到
'
);
await
page
.
callMethod
(
'
signIn
'
)
await
page
.
callMethod
(
'
signIn
'
)
// await page.waitFor(1000)
await
program
.
screenshot
({
// await program.screenshot({
path
:
"
static/screenshot/sign-h5.png
"
// path: "static/screenshot/sign-weixin-h5.png"
})
// })
}
else
{
await
page
.
callMethod
(
'
signIn
'
)
await
page
.
waitFor
(
1000
)
await
program
.
screenshot
({
path
:
"
static/screenshot/sign-weixin.png
"
})
}
}
}
}
...
...
static/screenshot/about-app.png
已删除
100644 → 0
浏览文件 @
9b82063f
83.0 KB
static/screenshot/about-h5.png
查看替换文件 @
9b82063f
浏览文件 @
903fc23f
56.9 KB
|
W:
|
H:
68.3 KB
|
W:
|
H:
2-up
Swipe
Onion skin
static/screenshot/about-mp.png
已删除
100644 → 0
浏览文件 @
9b82063f
23.9 KB
static/screenshot/about.png
已删除
100644 → 0
浏览文件 @
9b82063f
68.3 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录