diff --git a/pages/component/button/button.test.js b/pages/component/button/button.test.js index 7fb1a9084f0cdff2e33403316f61baa702e69b2e..ab21e798998f2c4b6cc2cf2fac7c07df0ea96d69 100644 --- a/pages/component/button/button.test.js +++ b/pages/component/button/button.test.js @@ -56,19 +56,25 @@ describe('Button.uvue', () => { expect(await btn.property('size')).toBe('mini') }) it('plain', async () => { - const btn = await page.$('.btn') - expect(await btn.property('plain')).toBe(false) + const btn = await page.$('.btn') + // TODO + const newValue1 = await btn.property('plain') + expect(newValue1.toString()).toBe(false + '') await page.setData({ plain_boolean: true, - }) - expect(await btn.property('plain')).toBe(true) + }) + const newValue2 = await btn.property('plain') + expect(newValue2.toString()).toBe(true + '') }) it('disabled', async () => { - const btn = await page.$('.btn') - expect(await btn.property('disabled')).toBe(false) + const btn = await page.$('.btn') + // TODO + const newValue1 = await btn.property('disabled') + expect(newValue1.toString()).toBe(false + '') await page.setData({ disabled_boolean: true, - }) - expect(await btn.property('disabled')).toBe(true) + }) + const newValue2 = await btn.property('disabled') + expect(newValue2.toString()).toBe(true + '') }) })