const PAGE_PATH = '/pages/component-instance/methods/call-method-easycom-options' const PAGE_COMPOSITION_PATH = '/pages/component-instance/methods/call-method-easycom-composition' describe('call-method-easycom', () => { let page it('callMethodTest Options API', async () => { page = await program.reLaunch(PAGE_PATH) await page.waitFor(500) const title = Date.now() + '' const result = await page.callMethod('callMethodTest', title) expect(result).toBe(title) const customResult = await page.callMethod('callCustomMethodTest') expect(customResult).toBe('custom foo') }) it('callMethodTest Composition API', async () => { page = await program.reLaunch(PAGE_COMPOSITION_PATH) await page.waitFor(500) const title = Date.now() + '' const result = await page.callMethod('callMethodTest', title) expect(result).toBe(title) const customResult = await page.callMethod('callCustomMethodTest') expect(customResult).toBe('custom foo') }) })