constPAGE_PATH='/pages/composition-api/basic/define-model/define-model'describe('defineModel',()=>{if(process.env.uniTestPlatformInfo.startsWith('android')){letpage=nullbeforeAll(async()=>{page=awaitprogram.reLaunch(PAGE_PATH)awaitpage.waitFor('view')})it('basic',async()=>{constmodelValueText=awaitpage.$('#model-value-text')expect(awaitmodelValueText.text()).toBe('modelValue in Foo: str')constmodelValueInput=awaitpage.$('#model-value-input')expect(awaitmodelValueInput.property('value')).toBe('str')constmsgText=awaitpage.$('#msg-text')expect(awaitmsgText.text()).toBe('msg in Foo: msg')constmsgInput=awaitpage.$('#msg-input')expect(awaitmsgInput.property('value')).toBe('msg')constupdateValueBtn=awaitpage.$('#update-value-btn')awaitupdateValueBtn.tap()expect(awaitmodelValueText.text()).toBe('modelValue in Foo: str1')expect(awaitmodelValueInput.property('value')).toBe('str1')expect(awaitmsgText.text()).toBe('msg in Foo: msg2')expect(awaitmsgInput.property('value')).toBe('msg2')})}else{it('other platform',()=>{expect(1).toBe(1)})}})