提交 2760601f 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

feat: 增加border更新自动化测试例

上级 561c6ed0
......@@ -1304,6 +1304,13 @@
"navigationBarTitleText": "border动态修改"
}
},
{
"path": "pages/CSS/border/border-update",
"group": "2,13",
"style": {
"navigationBarTitleText": "border更新样式"
}
},
{
"path": "pages/CSS/box-shadow/box-shadow",
"group": "2,15",
......
describe('css-border-update', () => {
let page;
let res;
beforeAll(async () => {
page = await program.reLaunch("/pages/CSS/border/border-update")
await page.waitFor(600);
});
it('Check Border Update', async () => {
await page.callMethod('jest_border_update')
await page.waitFor(100)
const image = await program.screenshot({fullPage: true});
expect(image).toSaveImageSnapshot();
});
});
......@@ -15,7 +15,15 @@
let borderStyle = ref("border:3px solid red;")
const handleUpdate = () => {
borderStyle.value = "border:7px solid red;"
}
}
const jest_border_update = ()=>{
handleUpdate()
}
defineExpose({
jest_border_update
})
</script>
<style>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册