提交 09a086d6 编写于 作者: 张磊

修改input与textarea测试用例。getAttribute boolean 类型返回为 string

上级 df85d389
......@@ -120,7 +120,7 @@ describe('component-native-input', () => {
it("disable", async () => {
const input = await page.$('.uni-input-disable');
expect(await input.property("disabled")).toBe(true)
expect(await input.property("disabled")).toBe("true")
})
it("confirm-type", async () => {
......
......@@ -12,12 +12,12 @@ describe('component-native-textarea', () => {
});
it('focus', async () => {
expect(await textarea.property("focus")).toBe(false)
expect(await textarea.property("focus")).toBe("false")
await page.setData({
focus_boolean: true,
})
await page.waitFor(500)
expect(await textarea.property("focus")).toBe(true)
expect(await textarea.property("focus")).toBe("true")
});
/* it("auto-height", async () => {
await page.setData({
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册