From cde9978b59f339408523e9d9e89fef5d2b6ef182 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Mon, 18 Mar 2024 20:12:44 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E8=A1=A5=E5=85=85=20v-bind=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages.json | 119 +++++++++--------- ...bute.test1.js => v-bind-attribute.test.js} | 26 ++-- 2 files changed, 70 insertions(+), 75 deletions(-) rename pages/directive/v-bind/{v-bind-attribute.test1.js => v-bind-attribute.test.js} (96%) diff --git a/pages.json b/pages.json index 86ca774..d92b71f 100644 --- a/pages.json +++ b/pages.json @@ -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", diff --git a/pages/directive/v-bind/v-bind-attribute.test1.js b/pages/directive/v-bind/v-bind-attribute.test.js similarity index 96% rename from pages/directive/v-bind/v-bind-attribute.test1.js rename to pages/directive/v-bind/v-bind-attribute.test.js index b4473de..642c60e 100644 --- a/pages/directive/v-bind/v-bind-attribute.test1.js +++ b/pages/directive/v-bind/v-bind-attribute.test.js @@ -1,14 +1,14 @@ -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 -- GitLab