diff --git a/pages/component/input/input.test.js b/pages/component/input/input.test.js index 181d8b378b89437bc5893b91d4f95f5c0352c349..e7716c95c30991b50ccd28083bd89e88c7997fd8 100644 --- a/pages/component/input/input.test.js +++ b/pages/component/input/input.test.js @@ -163,6 +163,15 @@ describe('component-native-input', () => { }) }) + it("password and value order", async () => { + const input = await page.$('#uni-input-password'); + let length = (await input.attribute("value")).length + expect(length).toBe(6) + await page.setData({ + inputPasswordValue: "" + }) + }) + it("afterAllTestScreenshot", async () => { const image = await program.screenshot({ fullPage: true diff --git a/pages/component/input/input.uvue b/pages/component/input/input.uvue index ad7b0d2289cec4b435d8fe0ceb6c56b71ecd7ce4..be54a8571e7a03a546299fc99a69b97a7fb271c3 100644 --- a/pages/component/input/input.uvue +++ b/pages/component/input/input.uvue @@ -267,7 +267,7 @@ inputMaxLengthValue: "", onMaxLengthInputValue: "", inputMaxLengthFocus: false, - inputPasswordValue: "", + inputPasswordValue: "cipher", inputFocusKeyBoardChangeValue: true, holdKeyboard: false, }