Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-starter
提交
ee4351d8
U
uni-starter
项目概览
DCloud
/
uni-starter
通知
4748
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看板
提交
ee4351d8
编写于
6月 20, 2024
作者:
Anne_LXM
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
test:去掉ucenter和userinfo截图
上级
d9adfc53
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
0 addition
and
15 deletion
+0
-15
pages/ucenter/ucenter.test.js
pages/ucenter/ucenter.test.js
+0
-9
uni_modules/uni-id-pages/pages/login/login-withpwd.test.js
uni_modules/uni-id-pages/pages/login/login-withpwd.test.js
+0
-1
uni_modules/uni-id-pages/pages/userinfo/userinfo.test.js
uni_modules/uni-id-pages/pages/userinfo/userinfo.test.js
+0
-5
未找到文件。
pages/ucenter/ucenter.test.js
浏览文件 @
ee4351d8
...
@@ -2,7 +2,6 @@ jest.setTimeout(30000);
...
@@ -2,7 +2,6 @@ jest.setTimeout(30000);
describe
(
'
ucenter
'
,
()
=>
{
describe
(
'
ucenter
'
,
()
=>
{
let
page
,
platform
,
hasLogin
;
let
page
,
platform
,
hasLogin
;
platform
=
process
.
env
.
UNI_PLATFORM
platform
=
process
.
env
.
UNI_PLATFORM
console
.
log
(
'
uniTestPlatformInfo
'
,
process
.
env
.
uniTestPlatformInfo
)
if
(
process
.
env
.
uniTestPlatformInfo
==
'
ios_simulator 13.7
'
)
{
if
(
process
.
env
.
uniTestPlatformInfo
==
'
ios_simulator 13.7
'
)
{
it
(
'
ucenter-ios13.7
'
,
async
()
=>
{
it
(
'
ucenter-ios13.7
'
,
async
()
=>
{
expect
(
1
).
toBe
(
1
)
expect
(
1
).
toBe
(
1
)
...
@@ -37,9 +36,6 @@ describe('ucenter', () => {
...
@@ -37,9 +36,6 @@ describe('ucenter', () => {
await
page
.
callMethod
(
'
signInByAd
'
)
await
page
.
callMethod
(
'
signInByAd
'
)
await
page
.
waitFor
(
1000
)
await
page
.
waitFor
(
1000
)
await
page
.
callMethod
(
'
share
'
)
await
page
.
callMethod
(
'
share
'
)
// await program.screenshot({
// path: "static/screenshot/sign-app.png"
// })
}
else
{
}
else
{
await
page
.
callMethod
(
'
signIn
'
)
await
page
.
callMethod
(
'
signIn
'
)
}
}
...
@@ -56,9 +52,4 @@ describe('ucenter', () => {
...
@@ -56,9 +52,4 @@ describe('ucenter', () => {
console
.
log
(
"
签到失败
"
);
console
.
log
(
"
签到失败
"
);
}
}
})
})
it
(
'
screenshot
'
,
async
()
=>
{
const
image
=
await
program
.
screenshot
();
expect
(
image
).
toSaveImageSnapshot
();
await
page
.
waitFor
(
500
);
})
})
})
\ No newline at end of file
uni_modules/uni-id-pages/pages/login/login-withpwd.test.js
浏览文件 @
ee4351d8
...
@@ -21,7 +21,6 @@ describe('login-withpwd', () => {
...
@@ -21,7 +21,6 @@ describe('login-withpwd', () => {
"
captcha
"
:
"
1234
"
"
captcha
"
:
"
1234
"
})
})
}
}
const
resLogin
=
await
page
.
callMethod
(
'
pwdLogin
'
)
const
resLogin
=
await
page
.
callMethod
(
'
pwdLogin
'
)
console
.
log
(
"
resLogin:
"
,
resLogin
);
console
.
log
(
"
resLogin:
"
,
resLogin
);
expect
.
assertions
(
1
);
expect
.
assertions
(
1
);
...
...
uni_modules/uni-id-pages/pages/userinfo/userinfo.test.js
浏览文件 @
ee4351d8
...
@@ -29,11 +29,6 @@ describe('userinfo', () => {
...
@@ -29,11 +29,6 @@ describe('userinfo', () => {
console
.
log
(
"
update--nickname---2
"
,
userInfo
.
nickname
)
console
.
log
(
"
update--nickname---2
"
,
userInfo
.
nickname
)
expect
(
userInfo
.
nickname
).
toBe
(
nickname
)
expect
(
userInfo
.
nickname
).
toBe
(
nickname
)
})
})
it
(
'
screenshot
'
,
async
()
=>
{
const
image
=
await
program
.
screenshot
();
expect
(
image
).
toSaveImageSnapshot
();
await
page
.
waitFor
(
500
);
})
// it("头像", async () => {
// it("头像", async () => {
// const imgs = [
// const imgs = [
// "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-52b18b34-3a3e-4861-89a0-c362c7634787/5105c383-8d83-4f40-938e-7c32c5983f8d.png",
// "https://vkceyugu.cdn.bspapp.com/VKCEYUGU-52b18b34-3a3e-4861-89a0-c362c7634787/5105c383-8d83-4f40-938e-7c32c5983f8d.png",
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录