From 584375d8759d9a2948373c71db39919ec733c979 Mon Sep 17 00:00:00 2001 From: wangyaqi Date: Mon, 1 Apr 2024 17:08:09 +0800 Subject: [PATCH] =?UTF-8?q?test:=20input=E8=87=AA=E5=8A=A8=E5=8C=96?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BD=BF=E7=94=A8value=E6=96=B9=E6=B3=95?= =?UTF-8?q?=E6=9B=BF=E4=BB=A3property=E6=96=B9=E6=B3=95?= 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 5f99f843..1a3dc39f 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.property("value")).length + let length = (await input.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.property("value")).length + let length = (await input.value()).length expect(length).toBe(6) await page.setData({ inputPasswordValue: "" -- GitLab