提交 ba131b3e 编写于 作者: Y yurj26

fix: button test

上级 b4d0716b
......@@ -26,8 +26,8 @@ describe('Button.uvue', () => {
expect(elements.length).toBe(13)
})
it('text', async () => {
const textBtn = await page.$('.text-button')
expect(await textBtn.text()).toEqual('按钮')
const textBtn = await page.$('.text-button')
expect(await textBtn.text()).toEqual('文字来自data绑定')
await page.setData({
text: 'button',
})
......
......@@ -109,7 +109,7 @@ export default {
.button-sp-area {
margin: 0 auto;
width: 70%;
width: 90%;
}
.mini-btn {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册