diff --git a/pages/component/input/input.test.js b/pages/component/input/input.test.js index 5f99f8431621c42adef020ff99c83943f9708285..1a3dc39fc0586ee39d8fead25d9f33191b693311 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: ""