Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
uni-starter
提交
ab93fe52
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看板
提交
ab93fe52
编写于
12月 20, 2023
作者:
A
Anne_LXM
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update test
上级
f2ceee41
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
30 addition
and
4 deletion
+30
-4
pages/pages.test.js
pages/pages.test.js
+28
-0
uni_modules/uni-captcha/uniCloud/cloudfunctions/uni-captcha-co/index.obj.js
...ptcha/uniCloud/cloudfunctions/uni-captcha-co/index.obj.js
+1
-0
uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/captcha-config/config.json
...tions/common/uni-config-center/captcha-config/config.json
+0
-3
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json
...i-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json
+1
-1
未找到文件。
pages/pages.test.js
0 → 100644
浏览文件 @
ab93fe52
let
pageIndex
=
0
const
pages
=
[
'
/pages/ucenter/settings/settings
'
,
'
/pages/ucenter/ucenter
'
,
'
/uni_modules/uni-id-pages/pages/login/login-withoutpwd
'
]
let
page
;
describe
(
'
page screenshot test
'
,
()
=>
{
beforeAll
(
async
()
=>
{
console
.
log
(
"
page screenshot test start
"
);
});
beforeEach
(
async
()
=>
{
page
=
await
program
.
reLaunch
(
pages
[
pageIndex
]);
await
page
.
waitFor
(
1000
);
});
afterEach
(()
=>
{
pageIndex
++
;
});
afterAll
(()
=>
{
console
.
log
(
"
page screenshot test finish
"
);
});
test
.
each
(
pages
)(
'
%s
'
,
async
()
=>
{
const
image
=
await
program
.
screenshot
();
expect
(
image
).
toMatchImageSnapshot
();
await
page
.
waitFor
(
500
);
})
})
\ No newline at end of file
uni_modules/uni-captcha/uniCloud/cloudfunctions/uni-captcha-co/index.obj.js
浏览文件 @
ab93fe52
...
...
@@ -24,6 +24,7 @@ module.exports = {
let
action
=
res
.
data
.
length
?
'
refresh
'
:
'
create
'
//执行并返回结果
let
option
=
{
text
:
'
1234
'
,
//自动化测试专用
scene
,
//来源客户端传递,表示:使用场景值,用于防止不同功能的验证码混用
uniPlatform
:
platform
}
...
...
uni_modules/uni-config-center/uniCloud/cloudfunctions/common/uni-config-center/captcha-config/config.json
已删除
100644 → 0
浏览文件 @
f2ceee41
{
"text"
:
"1234"
}
\ No newline at end of file
uni_modules/uni-id-pages/uniCloud/cloudfunctions/uni-id-co/package.json
浏览文件 @
ab93fe52
...
...
@@ -29,4 +29,4 @@
"eslint-plugin-n"
:
"^15.2.3"
,
"eslint-plugin-promise"
:
"^6.0.0"
}
}
\ No newline at end of file
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录