Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello-uniCloud
提交
4f4f787e
H
hello-uniCloud
项目概览
DCloud
/
hello-uniCloud
通知
294
Star
3
Fork
2
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello-uniCloud
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
4f4f787e
编写于
12月 13, 2023
作者:
A
Anne_LXM
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update test
上级
9bb76589
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
7 addition
and
8 deletion
+7
-8
pages/clientDB/demo/demo.test.js
pages/clientDB/demo/demo.test.js
+0
-1
pages/clientDB/permission/permission.test.js
pages/clientDB/permission/permission.test.js
+0
-2
pages/cloudFunction/cloudFunction.test.js
pages/cloudFunction/cloudFunction.test.js
+2
-2
pages/storage/ext-storage-qiniu.test.js
pages/storage/ext-storage-qiniu.test.js
+1
-0
pages/storage/space-storage.test.js
pages/storage/space-storage.test.js
+1
-0
pages/user-info/detail.test.js
pages/user-info/detail.test.js
+2
-0
pages/user-info/edit.test.js
pages/user-info/edit.test.js
+1
-0
pages/user-info/list.test.js
pages/user-info/list.test.js
+0
-3
未找到文件。
pages/clientDB/demo/demo.test.js
浏览文件 @
4f4f787e
...
...
@@ -36,7 +36,6 @@ describe('pages/clientDB/demo/demo.vue', () => {
})
//新增一条留言
const
userWrite
=
await
page
.
callMethod
(
'
submitComment
'
,
'
我是用户
'
)
console
.
log
(
'
userWrite:
'
,
userWrite
);
expect
(
userWrite
.
id
.
length
).
toBe
(
24
);
})
it
(
'
审核员
'
,
async
()
=>
{
...
...
pages/clientDB/permission/permission.test.js
浏览文件 @
4f4f787e
...
...
@@ -5,9 +5,7 @@ describe('pages/clientDB/permission/permission.vue', () => {
page
=
await
program
.
reLaunch
(
'
/pages/clientDB/permission/permission
'
)
await
page
.
waitFor
(
'
view
'
)
page
=
await
program
.
currentPage
()
})
it
(
'
获取数据
'
,
async
()
=>
{
//expect.assertions(2)
if
(
process
.
env
.
UNI_PLATFORM
===
"
mp-weixin
"
){
...
...
pages/cloudFunction/cloudFunction.test.js
浏览文件 @
4f4f787e
jest
.
setTimeout
(
20000
)
describe
(
'
pages/cloudFunction/cloudFunction.vue
'
,
()
=>
{
let
page
beforeAll
(
async
()
=>
{
// 重新reLaunch至首页,并获取首页page对象(其中 program 是uni-automator自动注入的全局对象)
...
...
@@ -9,7 +9,7 @@ describe('pages/cloudFunction/cloudFunction.vue', () => {
it
(
'
云函数页-检查标题
'
,
async
()
=>
{
expect
.
assertions
(
1
);
const
title
=
await
page
.
$
(
'
.title
'
)
expect
(
await
title
.
text
()).
toBe
(
'
基础示例-云函数
'
);
expect
(
(
await
title
.
text
()).
trim
()).
toBe
(
'
基础示例-云函数
'
);
})
it
(
'
添加一条数据
'
,
async
()
=>
{
expect
.
assertions
(
1
);
...
...
pages/storage/ext-storage-qiniu.test.js
浏览文件 @
4f4f787e
jest
.
setTimeout
(
20000
)
describe
(
'
pages/storage/ext-storage-qiniu.vue
'
,
()
=>
{
let
page
,
platform
;
beforeAll
(
async
()
=>
{
...
...
pages/storage/space-storage.test.js
浏览文件 @
4f4f787e
jest
.
setTimeout
(
20000
)
describe
(
'
pages/storage/space-storage.vue
'
,
()
=>
{
let
page
beforeAll
(
async
()
=>
{
...
...
pages/user-info/detail.test.js
浏览文件 @
4f4f787e
...
...
@@ -16,6 +16,8 @@ describe('pages/user-info/detail.vue', () => {
await
page
.
waitFor
(
1000
)
console
.
log
(
'
currentPage
'
,
await
program
.
currentPage
())
expect
((
await
program
.
currentPage
()).
path
).
toBe
(
'
pages/user-info/edit
'
)
}
else
{
console
.
log
(
'
err query
'
)
}
})
})
\ No newline at end of file
pages/user-info/edit.test.js
浏览文件 @
4f4f787e
...
...
@@ -9,6 +9,7 @@ describe('pages/user-info/detail.vue', () => {
it
(
'
修改表单内容
'
,
async
()
=>
{
const
getQuery
=
await
page
.
query
console
.
log
(
'
getQuery:
'
,
getQuery
);
if
(
!
getQuery
.
id
||
getQuery
.
hobby_valuetotext
.
length
<
0
)
return
;
await
page
.
setData
({
"
formData
"
:
{
"
username
"
:
"
林小明加
"
,
...
...
pages/user-info/list.test.js
浏览文件 @
4f4f787e
...
...
@@ -24,9 +24,6 @@ describe('pages/user-info/list.vue', () => {
it
(
'
点击第一条
'
,
async
()
=>
{
await
page
.
waitFor
(
2000
)
const
items
=
await
page
.
$$
(
'
.uni-list-item
'
)
console
.
log
(
'
items:
'
,
items
);
if
(
items
.
length
<
0
)
return
;
if
(
items
.
length
>
0
){
await
items
[
0
].
tap
()
await
waitTime
()
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录