From 9a0e41b82bfc6c884796d320511482e217e5781f Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Tue, 18 Jun 2024 17:36:42 +0800 Subject: [PATCH] =?UTF-8?q?test(input):=20=E6=94=BE=E5=BC=80=20android=20?= =?UTF-8?q?=E7=AB=AF=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/input/input.test.js | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/pages/component/input/input.test.js b/pages/component/input/input.test.js index 540ae26a..b1f9dd35 100644 --- a/pages/component/input/input.test.js +++ b/pages/component/input/input.test.js @@ -150,7 +150,7 @@ describe('component-native-input', () => { it("maxlength", async () => { const input = await page.$('#uni-input-maxlength'); let str = ""; - for(let i = 0;i < 200;i++){ + for (let i = 0; i < 200; i++) { str += `${i}` } await page.setData({ @@ -196,7 +196,7 @@ describe('component-native-input', () => { //reset await page.setData({ focusedForKeyboardHeightChangeTest: false, - keyboardHeight:0 + keyboardHeight: 0 }) }) @@ -206,11 +206,8 @@ describe('component-native-input', () => { }) expect(image).toSaveImageSnapshot() }) - if (!process.env.uniTestPlatformInfo.startsWith('android')) { - // TODO: 暂时规避 android 端测试 - it('both set modelValue and value', async()=>{ - const input2 = await page.$('#both-model-value'); - expect(await input2.value()).toEqual("123") - }) - } + it('both set modelValue and value', async () => { + const input2 = await page.$('#both-model-value'); + expect(await input2.value()).toEqual("123") + }) }); -- GitLab