提交 ff995285 编写于 作者: 雪洛's avatar 雪洛

test: 增加issue/2199测试例

上级 84021b96
......@@ -1379,6 +1379,13 @@
"navigationBarTitleText": "nested-scroll-body"
}
},
{
"path": "pages/component/list-view/issue-2199",
"style": {
"navigationBarTitleText": "issue-2199",
"enablePullDownRefresh": false
}
},
// #ifdef APP || WEB
{
"path": "pages/API/request-payment/request-payment",
......
<template>
<list-item>
<slot></slot>
</list-item>
</template>
<script>
export default {
name: 'Item',
data() {
return {
}
},
methods: {
}
}
</script>
<style>
</style>
describe('issue-2199', () => {
let page
beforeAll(async () => {
page = await program.reLaunch('/pages/component/list-view/issue-2199')
await page.waitFor(600)
})
it('screenshot', async () => {
const image = await program.screenshot({
fullPage: true
});
expect(image).toSaveImageSnapshot();
})
})
<template>
<view>
<list-view>
<list-item>
<view class="title">
1
</view>
</list-item>
<Item>
<view class="title">
2
</view>
</Item>
</list-view>
</view>
</template>
<script>
import Item from './issue-2199-item.uvue'
export default {
components: {
Item
},
data() {
},
onLoad() {
},
methods: {
}
}
</script>
<style>
.title {
text-align: center;
justify-content: center;
align-items: center;
}
</style>
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册