diff --git a/pages/component/button/button.test.js b/pages/component/button/button.test.js index ccd09420ba41febaeeb0bbbeeaf30b8f1065aa10..ed8384a5b1b7e6ad518bd6208ee55189f7806c2d 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 7602f2a0b652a1eeee05cf68c069c7a1d3ea68f3..acc69aa0756874e753042f3a1ab23ae7cb180b3f 100644 --- a/pages/component/button/buttonstatus.uvue +++ b/pages/component/button/buttonstatus.uvue @@ -136,7 +136,7 @@ - +