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

fix: 调整textarea的自动测试例

上级 e2451010
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册