From 063670f61a60f6a68562f8edf635251001de8415 Mon Sep 17 00:00:00 2001 From: WOSHIMAHAIFENG Date: Wed, 13 Mar 2024 20:01:25 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85button=E4=B8=BA=E7=A9=BA?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/button/button.test.js | 7 +++++++ pages/component/button/buttonstatus.uvue | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/pages/component/button/button.test.js b/pages/component/button/button.test.js index ccd09420..ed8384a5 100644 --- a/pages/component/button/button.test.js +++ b/pages/component/button/button.test.js @@ -86,4 +86,11 @@ describe('Button.uvue', () => { const value = await page.callMethod('checkUniButtonElement') expect(value).toBe(true) }) + it("setbuttonEmpty", async () => { + const textBtn = await page.$('.btn') + await page.setData({ + text: '', + }) + expect(await textBtn.text()).toEqual('') + }) }) diff --git a/pages/component/button/buttonstatus.uvue b/pages/component/button/buttonstatus.uvue index 7602f2a0..acc69aa0 100644 --- a/pages/component/button/buttonstatus.uvue +++ b/pages/component/button/buttonstatus.uvue @@ -136,7 +136,7 @@ - + -- GitLab