From 5426b03fbf2b513e06bdfd62376b068e6560830c Mon Sep 17 00:00:00 2001 From: shutao Date: Fri, 30 Aug 2024 18:01:08 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=20native-view.test.js?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/native-view/native-view.test.js | 17 +++++++++++++++++ pages/component/native-view/native-view.uvue | 2 ++ 2 files changed, 19 insertions(+) create mode 100644 pages/component/native-view/native-view.test.js diff --git a/pages/component/native-view/native-view.test.js b/pages/component/native-view/native-view.test.js new file mode 100644 index 00000000..7cf66a70 --- /dev/null +++ b/pages/component/native-view/native-view.test.js @@ -0,0 +1,17 @@ +describe('native-view.uvue', () => { + if (process.env.uniTestPlatformInfo.indexOf('web') > -1 || process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') { + it('object', () => { + expect(1).toBe(1) + }) + return + } + beforeAll(async () => { + page = await program.reLaunch('/pages/component/native-view/native-view') + }); + + it('native-view检测init函数是否响应', async () => { + await page.waitFor(600) + const value = await page.data('isLoad') + expect(value).toBe(true) + }) +}) diff --git a/pages/component/native-view/native-view.uvue b/pages/component/native-view/native-view.uvue index 61adda9c..4398993d 100644 --- a/pages/component/native-view/native-view.uvue +++ b/pages/component/native-view/native-view.uvue @@ -44,5 +44,7 @@ .native-time-picker { margin: 10px auto 25px auto; + border-style: solid; + border-radius: 5px; } -- GitLab