diff --git a/pages/component/view/general-attribute.test.js b/pages/component/view/general-attribute.test.js
index 5534c244f9752acbb4ec40f6bf788c53d25da054..a413554a928324aeee15a1cb7418f753397a46a7 100644
--- a/pages/component/view/general-attribute.test.js
+++ b/pages/component/view/general-attribute.test.js
@@ -14,6 +14,7 @@ describe('general attribute', () => {
it('validateGeneralAttributes', async () => {
const button = await page.$('.btn')
await button.tap()
- expect(await button.text()).toBe('基础属性验证成功')
+ const btnInner = await page.$('.btn-inner')
+ expect(await btnInner.text()).toBe('基础属性验证成功')
})
})
diff --git a/pages/component/view/general-attribute.uvue b/pages/component/view/general-attribute.uvue
index 7b5c524de67095ea5eca503e586f85c1fb810a81..136edb756154babb61dfebf933d58d36ac280ddb 100644
--- a/pages/component/view/general-attribute.uvue
+++ b/pages/component/view/general-attribute.uvue
@@ -6,7 +6,9 @@
-
+
+ {{ validateGeneralAttrText }}
+
按下 50 ms 后背景变红
抬起 400 ms 后背景恢复
@@ -72,6 +74,17 @@ export default {