diff --git a/pages/component/textarea/textarea.test.js b/pages/component/textarea/textarea.test.js index e1cd463ee0c5544df8afcb1f5bc9f5c5e2cf76c6..fd637eaedcd0252af95f0e08388ecda5f1c96764 100644 --- a/pages/component/textarea/textarea.test.js +++ b/pages/component/textarea/textarea.test.js @@ -12,12 +12,12 @@ describe('component-native-textarea', () => { }); it('focus', async () => { - expect(await textarea.attribute("focus")).toBe("false") + expect(await textarea.attribute("focus")).toBe("true") await page.setData({ - focus_boolean: true, + focus_boolean: false, }) await page.waitFor(500) - expect(await textarea.attribute("focus")).toBe("true") + expect(await textarea.attribute("focus")).toBe("false") }); /* it("auto-height", async () => { await page.setData({ @@ -74,7 +74,11 @@ describe('component-native-textarea', () => { for (var i = 0; i < inputmodeEnum.length; i++) { var x = inputmodeEnum[i] console.log(x['value'], x['name']) - await page.callMethod("radio_change_inputmode_enum", x['value']); + var selected = x['value'] - 1 + if(i == inputmodeEnum.length - 1){ + selected = i + } + await page.callMethod("radio_change_inputmode_enum", selected); await page.waitFor(500) expect(await textarea.attribute("inputmode")).toEqual(x['name']) await page.waitFor(500)