constPAGE_PATH="/pages/component-instance/methods/call-method-easycom-uni-modules-composition"letpagebeforeAll(async()=>{page=awaitprogram.reLaunch(PAGE_PATH)awaitpage.waitFor('view')})it('callMethodTest',async()=>{// a[[]] only issue 8582if(process.env.uniTestPlatformInfo.toLowerCase().startsWith('web')){expect(1).toBe(1)return}constdelay=()=>newPromise((resolve,_)=>{setTimeout(()=>{resolve('')},1000)})awaitpage.callMethod('onButtonClick')awaitdelay()constresStr1=awaitpage.$("#isNumListValid")constresStr2=awaitpage.$("#isObjListValid")expect(awaitresStr1.text()).toBe(`true`)expect(awaitresStr2.text()).toBe(`true`)})