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