diff --git a/pages/component/video/video.test.js b/pages/component/video/video.test.js index 1c074541d261a8060db7ad0ebe1107e5ba0a1445..e5e17c779496f69bd78ee0bee618f93f41b68458 100644 --- a/pages/component/video/video.test.js +++ b/pages/component/video/video.test.js @@ -50,6 +50,20 @@ describe('component-native-video', () => { }); }); + it('test assets path', async () => { + if (process.env.uniTestPlatformInfo.toLowerCase().startsWith('ios')) return; + const oldSrc = await page.data('src'); + await page.setData({ + isError: false, + src: 'file:///android_asset/uni-autoTest/demo10s.mp4' + }); + await page.waitFor(500); + expect(await page.data('isError')).toBe(false); + await page.setData({ + src: oldSrc + }); + }); + it('test event play pause controlstoggle', async () => { await page.callMethod('play'); start = Date.now();