constOPTIONS_PAGE_PATH='/pages/directive/v-text/v-text-options'constCOMPOSITION_PAGE_PATH='/pages/directive/v-text/v-text-composition'describe('v-text',()=>{if(!process.env.uniTestPlatformInfo.startsWith('web')){// TODO: 仅 web 支持it('web',async()=>{expect(1).toBe(1)})return}letpageconsttest=async(pagePath)=>{page=awaitprogram.reLaunch(pagePath)awaitpage.waitFor('view')constvTextText=awaitpage.$('#v-text-text')expect(awaitvTextText.text()).toBe('v-text for text')constvTextView=awaitpage.$('#v-text-view')expect(awaitvTextView.text()).toBe('v-text for view')}it('v-text options API',async()=>{awaittest(OPTIONS_PAGE_PATH)})it('v-text composition API',async()=>{awaittest(COMPOSITION_PAGE_PATH)})})