提交 e2451010 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test(scroll-view-refresher): 调整测试平台兼容性

上级 d40c0162
// uni-app自动化测试教程: uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/ // uni-app自动化测试教程: uni-app自动化测试教程: https://uniapp.dcloud.net.cn/worktile/auto/hbuilderx-extension/
describe('test title', () => { describe('test title', () => {
if (process.env.uniTestPlatformInfo.startsWith('android')) {
let page; let page;
beforeAll(async () => { beforeAll(async () => {
page = await program.reLaunch('/pages/component/scroll-view/scroll-view-refresher'); page = await program.reLaunch('/pages/component/scroll-view/scroll-view-refresher');
...@@ -16,4 +16,9 @@ describe('test title', () => { ...@@ -16,4 +16,9 @@ describe('test title', () => {
await page.waitFor(2000); await page.waitFor(2000);
expect(await page.data('refresherrefresh')).toBe(true) expect(await page.data('refresherrefresh')).toBe(true)
}); });
} else {
it('other platform', () => {
expect(1).toBe(1)
})
}
}); });
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册