Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
言程序plus
uni-starter
提交
21b4a905
U
uni-starter
项目概览
言程序plus
/
uni-starter
与 Fork 源项目一致
Fork自
DCloud / uni-starter
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
U
uni-starter
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
21b4a905
编写于
11月 10, 2021
作者:
study夏羽
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix:修改昵称问题
上级
16eddae4
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
43 addition
and
57 deletion
+43
-57
env.js
env.js
+28
-28
pages/list/search/search.test.js
pages/list/search/search.test.js
+1
-1
pages/ucenter/login-page/pwd-login/pwd-login.test.js
pages/ucenter/login-page/pwd-login/pwd-login.test.js
+5
-16
pages/ucenter/login-page/pwd-login/pwd-login.vue
pages/ucenter/login-page/pwd-login/pwd-login.vue
+0
-3
pages/ucenter/login-page/register/register.test.js
pages/ucenter/login-page/register/register.test.js
+0
-1
pages/ucenter/userinfo/bind-mobile/bind-mobile.test.js
pages/ucenter/userinfo/bind-mobile/bind-mobile.test.js
+4
-0
pages/ucenter/userinfo/userinfo.test.js
pages/ucenter/userinfo/userinfo.test.js
+5
-8
static/screenshot/about-mp.png
static/screenshot/about-mp.png
+0
-0
未找到文件。
env.js
浏览文件 @
21b4a905
module
.
exports
=
{
"
compile
"
:
true
,
"
h5
"
:
{
"
options
"
:
{
"
headless
"
:
false
},
"
executablePath
"
:
"
C:/Program Files/Google/Chrome/Application/chrome.exe
"
},
"
mp-weixin
"
:
{
"
port
"
:
9420
,
"
account
"
:
""
,
"
args
"
:
""
,
"
cwd
"
:
""
,
"
launch
"
:
true
,
"
teardown
"
:
"
disconnect
"
,
"
remote
"
:
false
,
"
executablePath
"
:
"
C:/Users/liuxi/download/微信web开发者工具/cli.bat
"
},
"
app-plus
"
:
{
"
android
"
:
{
"
id
"
:
"
"
,
"
executablePath
"
:
"
D:/HX/alpha-3.1.3/HBuilderX/plugins/launcher/base/
android_base.apk
"
},
"
version
"
:
"
"
,
"
ios
"
:
{
"
id
"
:
""
,
"
executablePath
"
:
""
}
}
"
compile
"
:
true
,
"
h5
"
:
{
"
options
"
:
{
"
headless
"
:
false
},
"
executablePath
"
:
"
C:/Program Files/Google/Chrome/Application/chrome.exe
"
},
"
mp-weixin
"
:
{
"
port
"
:
9420
,
"
account
"
:
""
,
"
args
"
:
""
,
"
cwd
"
:
""
,
"
launch
"
:
true
,
"
teardown
"
:
"
disconnect
"
,
"
remote
"
:
false
,
"
executablePath
"
:
"
C:/Users/liuxi/download/微信web开发者工具/cli.bat
"
},
"
app-plus
"
:
{
"
android
"
:
{
"
id
"
:
"
d3a144fa
"
,
"
executablePath
"
:
"
D:
\\
HX
\\
alpha-3.1.3
\\
HBuilderX
\\
plugins
\\
launcher
\\
base
\\
android_base.apk
"
},
"
version
"
:
"
D:
\\
HX
\\
alpha-3.1.3
\\
HBuilderX
\\
plugins
\\
launcher
\\
base
\\
version.txt
"
,
"
ios
"
:
{
"
id
"
:
""
,
"
executablePath
"
:
""
}
}
}
pages/list/search/search.test.js
浏览文件 @
21b4a905
...
...
@@ -4,7 +4,7 @@
describe
(
'
pages/list/search/search.vue
'
,
()
=>
{
let
page
beforeAll
(
async
()
=>
{
page
=
await
program
.
navigate
To
(
'
/pages/list/search/search
'
)
page
=
await
program
.
redirect
To
(
'
/pages/list/search/search
'
)
await
page
.
waitFor
(
500
)
})
it
(
'
搜索发现-显示-影藏
'
,
async
()
=>
{
...
...
pages/ucenter/login-page/pwd-login/pwd-login.test.js
浏览文件 @
21b4a905
...
...
@@ -16,23 +16,12 @@ describe('pages/ucenter/login-page/pwd-login/pwd-login.vue', () => {
expect
((
await
program
.
currentPage
()).
path
).
toBe
(
'
pages/ucenter/login-page/register/register
'
)
console
.
log
(
await
program
.
currentPage
(),
"
111111111
"
);
//
await page.waitFor(500)
await
page
.
waitFor
(
500
)
// 执行 navigateBack 验证是否返回navigateTo
// expect((await program.navigateBack()).path).toBe(
// 'pages/ucenter/login-page/pwd-login/pwd-login')
})
it
(
'
跳转到忘记密码页
'
,
async
()
=>
{
const
resPwd
=
await
page
.
callMethod
(
'
toRetrievePwd
'
)
await
page
.
waitFor
(
300
)
expect
((
await
program
.
currentPage
()).
path
).
toBe
(
'
pages/ucenter/login-page/pwd-retrieve/pwd-retrieve
'
)
console
.
log
(
await
program
.
currentPage
(),
"
222222
"
);
// await page.waitFor(500)
// 执行 navigateBack 验证是否返回
// expect((await program.navigateBack()).path).toBe(
// 'pages/ucenter/login-page/pwd-login/pwd-login')
expect
((
await
program
.
navigateBack
()).
path
).
toBe
(
'
pages/ucenter/login-page/pwd-login/pwd-login
'
)
console
.
log
(
await
program
.
currentPage
(),
"
22222222222
"
);
})
it
(
'
用户名密码登录
'
,
async
()
=>
{
...
...
pages/ucenter/login-page/pwd-login/pwd-login.vue
浏览文件 @
21b4a905
...
...
@@ -159,9 +159,6 @@
uni
.
navigateTo
({
url
:
'
/pages/ucenter/login-page/register/register
'
})
// uni.redirectTo({
// url: '/pages/ucenter/login-page/register/register'
// })
}
}
}
...
...
pages/ucenter/login-page/register/register.test.js
浏览文件 @
21b4a905
...
...
@@ -41,7 +41,6 @@ describe('pages/ucenter/login-page/register/register.vue', () => {
await
page
.
waitFor
(
300
)
return
resRegister
})
console
.
log
(
"
getUid:----------
"
,
getUid
.
msg
);
if
(
getUid
.
uid
)
{
expect
(
getUid
.
msg
).
toBe
(
"
注册成功
"
);
...
...
pages/ucenter/userinfo/bind-mobile/bind-mobile.test.js
浏览文件 @
21b4a905
...
...
@@ -55,6 +55,10 @@ describe('pages/ucenter/userinfo/bind-mobile/bind-mobile.vue', () => {
break
;
}
}
await
program
.
switchTab
(
'
/pages/ucenter/ucenter
'
)
console
.
log
(
await
program
.
currentPage
(),
"
last-------------------
"
);
})
});
\ No newline at end of file
pages/ucenter/userinfo/userinfo.test.js
浏览文件 @
21b4a905
...
...
@@ -9,15 +9,14 @@ describe('pages/ucenter/userinfo/userinfo.vue', () => {
})
/*
it('设置昵称', async () => {
it
(
'
设置昵称
'
,
async
()
=>
{
const
getTokenRes
=
await
page
.
waitFor
(
async
()
=>
{
return
await
page
.
data
(
'
uniToken
'
)
})
console.log("getTokenRes: ",getTokenRes);
console
.
log
(
"
getTokenRes:
----------------------
"
,
getTokenRes
);
var
name
=
"
数字天堂DCloud
"
+
Math
.
round
(
Math
.
random
()
*
10
);
console
.
log
(
"
name:
"
,
name
);
console.log(await page.data('uniToken'),"---------------------");
if
(
getTokenRes
){
const
nicknameRes
=
await
page
.
callMethod
(
"
setNickname
"
,
name
)
await
page
.
waitFor
(
300
)
...
...
@@ -25,15 +24,13 @@ describe('pages/ucenter/userinfo/userinfo.vue', () => {
expect
(
nicknameRes
.
updated
).
toBe
(
1
)
}
})
*/
})
it
(
'
绑定手机号
'
,
async
()
=>
{
console
.
log
(
await
page
.
data
(
'
uniToken
'
),
"
-------------------------
"
);
await
page
.
callMethod
(
'
bindMobileBySmsCode
'
)
await
page
.
waitFor
(
300
)
console
.
log
((
await
program
.
currentPage
()).
path
);
expect
((
await
program
.
currentPage
()).
path
).
toBe
(
'
pages/ucenter/userinfo/bind-mobile/bind-mobile
'
)
await
page
.
waitFor
(
300
)
// expect((await program.currentPage()).path).toBe('pages/ucenter/userinfo/bind-mobile/bind-mobile')
// await page.waitFor(300)
expect
((
await
program
.
navigateBack
()).
path
).
toBe
(
'
pages/ucenter/userinfo/userinfo
'
)
})
...
...
static/screenshot/about-mp.png
0 → 100644
浏览文件 @
21b4a905
23.9 KB
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录