From ba131b3e2f45848497e9f7810a597d3520c2569a Mon Sep 17 00:00:00 2001 From: yurj26 <1816387074@qq.com> Date: Sat, 12 Aug 2023 19:31:35 +0800 Subject: [PATCH] fix: button test --- pages/component/button/button.test.js | 4 ++-- pages/component/button/button.uvue | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/component/button/button.test.js b/pages/component/button/button.test.js index e6eaaaf0..f53a4f38 100644 --- a/pages/component/button/button.test.js +++ b/pages/component/button/button.test.js @@ -26,8 +26,8 @@ describe('Button.uvue', () => { expect(elements.length).toBe(13) }) it('text', async () => { - const textBtn = await page.$('.text-button') - expect(await textBtn.text()).toEqual('按钮') + const textBtn = await page.$('.text-button') + expect(await textBtn.text()).toEqual('文字来自data绑定') await page.setData({ text: 'button', }) diff --git a/pages/component/button/button.uvue b/pages/component/button/button.uvue index cb3c3646..36bc5332 100644 --- a/pages/component/button/button.uvue +++ b/pages/component/button/button.uvue @@ -109,7 +109,7 @@ export default { .button-sp-area { margin: 0 auto; - width: 70%; + width: 90%; } .mini-btn { -- GitLab