Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
DCloud
hello uni-app x
提交
a71eac3a
H
hello uni-app x
项目概览
DCloud
/
hello uni-app x
通知
5992
Star
90
Fork
162
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
18
列表
看板
标记
里程碑
合并请求
1
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
H
hello uni-app x
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
18
Issue
18
列表
看板
标记
里程碑
合并请求
1
合并请求
1
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a71eac3a
编写于
5月 28, 2024
作者:
张
张磊
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
补充transform和transition截图测试例
上级
0dd2b76b
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
80 addition
and
1 deletion
+80
-1
pages/CSS/transform/rotate.test.js
pages/CSS/transform/rotate.test.js
+16
-0
pages/CSS/transform/scale.test.js
pages/CSS/transform/scale.test.js
+16
-0
pages/CSS/transform/translate.test.js
pages/CSS/transform/translate.test.js
+16
-0
pages/CSS/transition/transition.test.js
pages/CSS/transition/transition.test.js
+31
-0
pages/pages.test.js
pages/pages.test.js
+1
-1
未找到文件。
pages/CSS/transform/rotate.test.js
0 → 100644
浏览文件 @
a71eac3a
// uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/
describe
(
'
/pages/CSS/transform/rotate.uvue
'
,
()
=>
{
let
page
;
beforeAll
(
async
()
=>
{
page
=
await
program
.
reLaunch
(
'
/pages/CSS/transform/rotate
'
)
await
page
.
waitFor
(
1000
);
});
it
(
"
snap rotate
"
,
async
()
=>
{
const
image
=
await
program
.
screenshot
({
fullPage
:
true
})
expect
(
image
).
toSaveImageSnapshot
()
})
});
pages/CSS/transform/scale.test.js
0 → 100644
浏览文件 @
a71eac3a
// uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/
describe
(
'
/pages/CSS/transform/scale.uvue
'
,
()
=>
{
let
page
;
beforeAll
(
async
()
=>
{
page
=
await
program
.
reLaunch
(
'
/pages/CSS/transform/scale
'
)
await
page
.
waitFor
(
1000
);
});
it
(
"
snap scale
"
,
async
()
=>
{
const
image
=
await
program
.
screenshot
({
fullPage
:
true
})
expect
(
image
).
toSaveImageSnapshot
()
})
});
pages/CSS/transform/translate.test.js
0 → 100644
浏览文件 @
a71eac3a
// uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/
describe
(
'
/pages/CSS/transform/translate.uvue
'
,
()
=>
{
let
page
;
beforeAll
(
async
()
=>
{
page
=
await
program
.
reLaunch
(
'
/pages/CSS/transform/translate
'
)
await
page
.
waitFor
(
1000
);
});
it
(
"
snap translate
"
,
async
()
=>
{
const
image
=
await
program
.
screenshot
({
fullPage
:
true
})
expect
(
image
).
toSaveImageSnapshot
()
})
});
pages/CSS/transition/transition.test.js
0 → 100644
浏览文件 @
a71eac3a
// uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/
describe
(
'
/pages/CSS/transition/transition.uvue
'
,
()
=>
{
let
page
;
beforeAll
(
async
()
=>
{
page
=
await
program
.
reLaunch
(
'
/pages/CSS/transition/transition
'
)
await
page
.
waitFor
(
2000
);
});
it
(
"
snap transition finish
"
,
async
()
=>
{
await
page
.
callMethod
(
'
changeWidthOrHeight
'
)
await
page
.
callMethod
(
'
changeWidthProgress
'
)
await
page
.
callMethod
(
'
changeMargin
'
)
await
page
.
callMethod
(
'
changePadding
'
)
await
page
.
callMethod
(
'
changeBackground
'
)
await
page
.
callMethod
(
'
changeBackground2
'
)
await
page
.
callMethod
(
'
changeStyleOpacity
'
)
await
page
.
callMethod
(
'
propertyChangeBackground
'
)
await
page
.
callMethod
(
'
changeTransform
'
)
await
page
.
callMethod
(
'
changeTransformTranslate
'
)
await
page
.
callMethod
(
'
changeTransformWithWidth
'
)
await
page
.
callMethod
(
'
changeTransformWithOrigin
'
)
await
page
.
callMethod
(
'
changeBorder
'
)
await
page
.
callMethod
(
'
changestylePosition
'
)
await
page
.
waitFor
(
3000
)
const
image
=
await
program
.
screenshot
({
fullPage
:
true
})
expect
(
image
).
toSaveImageSnapshot
()
})
});
pages/pages.test.js
浏览文件 @
a71eac3a
...
...
@@ -91,7 +91,7 @@ const pages = [
'
/pages/CSS/transform/rotate
'
,
'
/pages/CSS/transform/scale
'
,
'
/pages/CSS/transform/translate
'
,
//
'/pages/CSS/transition/transition',
'
/pages/CSS/transition/transition
'
,
'
/pages/CSS/pointer-events/pointer-events
'
,
// tabBar //改动频繁,不再测试
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录