From 311a58b5f840b99c13b889e8dcc7d78fce8736d2 Mon Sep 17 00:00:00 2001 From: hdx Date: Fri, 26 Jan 2024 17:51:00 +0800 Subject: [PATCH] =?UTF-8?q?picker-view.test:=20=E8=B0=83=E6=95=B4=E8=87=AA?= =?UTF-8?q?=E5=8A=A8=E5=8C=96=E6=B5=8B=E8=AF=95=E5=86=99=E6=B3=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/picker-view/picker-view.test.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/pages/component/picker-view/picker-view.test.js b/pages/component/picker-view/picker-view.test.js index 2a16a1d8..b5a5c460 100644 --- a/pages/component/picker-view/picker-view.test.js +++ b/pages/component/picker-view/picker-view.test.js @@ -15,15 +15,19 @@ describe('PickerView.uvue', () => { it('value', async () => { const el = await page.$('.picker-view') await page.callMethod('setValue') - await page.waitFor(1000) - expect(await el.property('value')).toEqual([0, 0, 0]) + await page.waitFor(1000) + const newValue1 = await el.property('value') + // TODO + expect(newValue1.toString()).toEqual('0,0,0') if (process.env.UNI_PLATFORM === 'app-android') { expect(await getData('result')).toEqual([0, 0, 0]) } await page.callMethod('setValue1') - await page.waitFor(1000) - expect(await el.property('value')).toEqual([10, 10, 10]) + await page.waitFor(1000) + const newValue2 = await el.property('value') + // TODO + expect(newValue2.toString()).toEqual('10,10,10') if (process.env.UNI_PLATFORM === 'app-android') { expect(await getData('result')).toEqual([10, 10, 10]) } -- GitLab