From 1e3e1b4fd03b7ce3465b7bada08a0f7064143e46 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 1 Apr 2024 16:20:32 +0800 Subject: [PATCH] =?UTF-8?q?test:=20=E4=BD=BF=E7=94=A8property=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E6=9B=BF=E6=8D=A2attribute=E6=96=B9=E6=B3=95=E8=8E=B7?= =?UTF-8?q?=E5=8F=96input=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/input/input.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/component/input/input.test.js b/pages/component/input/input.test.js index e2b9cf87..5f99f843 100644 --- a/pages/component/input/input.test.js +++ b/pages/component/input/input.test.js @@ -156,7 +156,7 @@ describe('component-native-input', () => { await page.setData({ inputMaxLengthValue: str }) - let length = (await input.attribute("value")).length + let length = (await input.property("value")).length expect(length).toBe(10) await page.setData({ inputMaxLengthValue: "" @@ -165,7 +165,7 @@ describe('component-native-input', () => { it("password and value order", async () => { const input = await page.$('#uni-input-password'); - let length = (await input.attribute("value")).length + let length = (await input.property("value")).length expect(length).toBe(6) await page.setData({ inputPasswordValue: "" -- GitLab