diff --git a/pages/component/textarea/textarea.test.js b/pages/component/textarea/textarea.test.js index 8c9854381a3288bd459cf76d4eb782093ce5bffd..f52c983982d8be29085ce6cc330e5094c0d6074b 100644 --- a/pages/component/textarea/textarea.test.js +++ b/pages/component/textarea/textarea.test.js @@ -74,13 +74,10 @@ describe('component-native-textarea', () => { } }) - if (!process.env.uniTestPlatformInfo.startsWith('android')) { - // TODO: 暂时规避 android 端测试 - it('both set modelValue and value', async () => { - let textarea2 = await page.$('.both-set-textarea'); - expect(await textarea2.value()).toBe("123") - }) - } + it('both set modelValue and value', async () => { + const textarea2 = await page.$('#both-model-value'); + expect(await textarea2.value()).toEqual("123") + }) it("maxlength", async () => { const input = await page.$('#textarea-instance-maxlength'); diff --git a/pages/component/textarea/textarea.uvue b/pages/component/textarea/textarea.uvue index 81ac3d87399238df86dd4841573145f4226ce991..767d94c90345a9e4b2f440f9b58c99c006e25f1d 100644 --- a/pages/component/textarea/textarea.uvue +++ b/pages/component/textarea/textarea.uvue @@ -127,7 +127,7 @@ 同时存在 v-model 和 value - +