From 09a086d67e7e79cf726a6052701fc052674bb31d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A3=8A?= <1633537611@qq.com> Date: Fri, 27 Oct 2023 19:20:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9input=E4=B8=8Etextarea?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=94=A8=E4=BE=8B=E3=80=82getAttribute=20boo?= =?UTF-8?q?lean=20=E7=B1=BB=E5=9E=8B=E8=BF=94=E5=9B=9E=E4=B8=BA=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/input/input.test.js | 2 +- pages/component/textarea/textarea.test.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/component/input/input.test.js b/pages/component/input/input.test.js index ab54276e..92f24a45 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 7f7f57c0..dc97a1e4 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({ -- GitLab