提交 ed7b8cf8 编写于 作者: 辛宝Otto's avatar 辛宝Otto 🥊

chore: 同步 alpha 调整测试代码,无功能变更

上级 24adee83
......@@ -64,7 +64,7 @@ describe('component-native-textarea', () => {
var x = inputmodeEnum[i]
console.log(x['value'], x['name'])
var selected = x['value'] - 1
if(i == inputmodeEnum.length - 1){
if (i == inputmodeEnum.length - 1) {
selected = i
}
await page.callMethod("radio_change_inputmode_enum", selected);
......@@ -74,18 +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("maxlength", async () => {
const input = await page.$('#textarea-instance-maxlength');
let str = "";
for(let i = 0;i < 200;i++){
for (let i = 0; i < 200; i++) {
str += `${i}`
}
await page.setData({
......@@ -98,4 +90,9 @@ describe('component-native-textarea', () => {
})
})
it('both set modelValue and value', async () => {
const textarea2 = await page.$('#both-model-value');
expect(await textarea2.value()).toEqual("123")
})
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册