提交 cde9978b 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test: 补充 v-bind 测试

上级 4f4f81dc
......@@ -54,12 +54,12 @@
"navigationBarTitleText": "v-bind-props"
}
},
// {
// "path": "pages/directive/v-bind/v-bind-attribute",
// "style": {
// "navigationBarTitleText": "v-bind-attribute"
// }
// },
{
"path": "pages/directive/v-bind/v-bind-attribute",
"style": {
"navigationBarTitleText": "v-bind-attribute"
}
},
{
"path": "pages/directive/v-for/v-for",
"style": {
......@@ -311,17 +311,17 @@
"navigationBarTitleText": "slots"
}
},
{
"path": "pages/rendering/template/template",
"style": {
"navigationBarTitleText": "template"
}
},
{
"path": "pages/rendering/template/template-map-style",
"style": {
"navigationBarTitleText": "template-map-style"
}
{
"path": "pages/rendering/template/template",
"style": {
"navigationBarTitleText": "template"
}
},
{
"path": "pages/rendering/template/template-map-style",
"style": {
"navigationBarTitleText": "template-map-style"
}
},
{
"path": "pages/rendering/unrecognized-component/unrecognized-component",
......@@ -417,7 +417,7 @@
"navigationBarTitleText": "defineExpose"
}
},
// #ifdef APP
// #ifdef APP
{
"path": "pages/composition-api/basic/define-model/define-model",
"style": {
......@@ -430,7 +430,7 @@
"navigationBarTitleText": "defineOptions"
}
},
// #endif
// #endif
{
"path": "pages/composition-api/basic/define-slots/define-slots",
"style": {
......@@ -608,58 +608,53 @@
}
},
{
"path" : "pages/composition-api/lifecycle/page-lifecycle/page-lifecycle",
"style" :
{
"navigationBarTitleText" : "页面生命周期",
"path": "pages/composition-api/lifecycle/page-lifecycle/page-lifecycle",
"style": {
"navigationBarTitleText": "页面生命周期",
"enablePullDownRefresh": true
}
},
{
"path" : "pages/composition-api/lifecycle/component-lifecycle/component-lifecycle",
"style" :
{
"path": "pages/composition-api/lifecycle/component-lifecycle/component-lifecycle",
"style": {
"navigationBarTitleText": "组件生命周期",
"enablePullDownRefresh": true
}
},
{
"path" : "pages/composition-api/dependency-injection/provide/provide",
"style" :
{
"navigationBarTitleText" : "依赖注入"
}
},
{
"path" : "pages/built-in-component/teleport/teleport",
"style" :
{
"navigationBarTitleText" : "teleport",
"enablePullDownRefresh" : false
}
},
{
"path": "pages/webview-screenshot-comparison/webview-screenshot-comparison",
"style": {
"navigationBarTitleText": "截图对比测试",
"navigationStyle": "custom"
}
},
{
"path": "pages/webview-screenshot/webview-screenshot",
"style": {
"navigationBarTitleText": "webview 截图测试",
"navigationStyle": "custom"
}
},
{
"path" : "pages/type/type",
"style" :
{
"navigationBarTitleText" : "",
"enablePullDownRefresh" : false
}
}
"path": "pages/composition-api/dependency-injection/provide/provide",
"style": {
"navigationBarTitleText": "依赖注入"
}
},
{
"path": "pages/built-in-component/teleport/teleport",
"style": {
"navigationBarTitleText": "teleport",
"enablePullDownRefresh": false
}
},
{
"path": "pages/webview-screenshot-comparison/webview-screenshot-comparison",
"style": {
"navigationBarTitleText": "截图对比测试",
"navigationStyle": "custom"
}
},
{
"path": "pages/webview-screenshot/webview-screenshot",
"style": {
"navigationBarTitleText": "webview 截图测试",
"navigationStyle": "custom"
}
},
{
"path": "pages/type/type",
"style": {
"navigationBarTitleText": "",
"enablePullDownRefresh": false
}
}
],
"tabBar": {
"color": "#7A7E83",
......
const PAGE_PATH = '/pages/directive/v-bind/v-bind-attribute'
describe('v-bind-attribute', () => {
let page
beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH)
await page.waitFor(500)
})
it('attribute', async () => {
const view1 = await page.$('.attribute')
expect(await view1.attribute('id1')).toBe('id1')
expect(await view1.attribute('id2')).toBe('id2')
})
const PAGE_PATH = '/pages/directive/v-bind/v-bind-attribute'
describe('v-bind-attribute', () => {
let page
beforeAll(async () => {
page = await program.reLaunch(PAGE_PATH)
await page.waitFor(500)
})
it('attribute', async () => {
const view1 = await page.$('.attribute')
expect(await view1.attribute('id1')).toBe('id1')
expect(await view1.attribute('id2')).toBe('id2')
})
})
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册