提交 1183dd23 编写于 作者: taohebin@dcloud.io's avatar taohebin@dcloud.io

test: textarea 自动化测试例修改

上级 a817401e
......@@ -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');
......
......@@ -127,7 +127,7 @@
<view>同时存在 v-model 和 value</view>
</view>
<view class="textarea-wrap">
<textarea class="textarea-instance" v-model='defaultModel' value='456'></textarea>
<textarea id="both-model-value" class="textarea-instance" v-model='defaultModel' value='456'></textarea>
</view>
<view class="title-wrap">
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册