提交 366ab7dd 编写于 作者: H hdx

v-bind: 调整自动化测试用法

上级 d12e676a
...@@ -8,10 +8,14 @@ describe('v-bind', () => { ...@@ -8,10 +8,14 @@ describe('v-bind', () => {
}) })
it('button-disabled', async () => { it('button-disabled', async () => {
const button = await page.$('.button-disabled') const button = await page.$('.button-disabled')
expect(await button.property('disabled')).toBe(true) // TODO
const disabled = await button.property('disabled')
expect(disabled.toString()).toBe(true + '')
}) })
it('button-v-bind:disabled', async () => { it('button-v-bind:disabled', async () => {
const button = await page.$('.button-v-bind-disabled') const button = await page.$('.button-v-bind-disabled')
expect(await button.property('disabled')).toBe(true) // TODO
const disabled = await button.property('disabled')
expect(disabled.toString()).toBe(true + '')
}) })
}) })
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册