diff --git a/pages/component/input/input.test.js b/pages/component/input/input.test.js index ab54276ea525e125c9cade9e66af3cab19cf2ee6..92f24a455637fc5f37219e7835acb9172cc9dfaa 100644 --- a/pages/component/input/input.test.js +++ b/pages/component/input/input.test.js @@ -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 () => { diff --git a/pages/component/textarea/textarea.test.js b/pages/component/textarea/textarea.test.js index 7f7f57c00f23afd45087878be4fdcc3371ea3ea1..dc97a1e478313c75f5f9b85408cf5b9cd00247af 100644 --- a/pages/component/textarea/textarea.test.js +++ b/pages/component/textarea/textarea.test.js @@ -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({