提交 2d3aed78 编写于 作者: 雪洛's avatar 雪洛

test: iOS端屏蔽不支持的测试例

上级 84a20cf5
const PAGE_PATH = '/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh' const PAGE_PATH = '/pages/API/get-current-pages/set-page-style-disable-pull-down-refresh'
describe('getCurrentPages', () => { describe('getCurrentPages', () => {
if (process.env.uniTestPlatformInfo.startsWith('IOS')) {
it('not-support', async () => {
expect(1).toBe(1)
})
return
}
let page let page
it('page-style', async () => { it('page-style', async () => {
page = await program.navigateTo(PAGE_PATH) page = await program.navigateTo(PAGE_PATH)
...@@ -18,7 +24,9 @@ describe('getCurrentPages', () => { ...@@ -18,7 +24,9 @@ describe('getCurrentPages', () => {
expect(isEnablePullDownRefresh2).toBe(true) expect(isEnablePullDownRefresh2).toBe(true)
await page.callMethod('startPullDownRefresh') await page.callMethod('startPullDownRefresh')
await page.waitFor(500) await page.waitFor(500)
const image3 = await program.screenshot({fullPage: true}); const image3 = await program.screenshot({
fullPage: true
});
expect(image3).toSaveImageSnapshot(); expect(image3).toSaveImageSnapshot();
await page.waitFor(3500) await page.waitFor(3500)
...@@ -28,7 +36,9 @@ describe('getCurrentPages', () => { ...@@ -28,7 +36,9 @@ describe('getCurrentPages', () => {
await page.waitFor(200) await page.waitFor(200)
await page.callMethod('startPullDownRefresh') await page.callMethod('startPullDownRefresh')
await page.waitFor(500) await page.waitFor(500)
const image2 = await program.screenshot({fullPage: true}); const image2 = await program.screenshot({
fullPage: true
});
expect(image2).toSaveImageSnapshot(); expect(image2).toSaveImageSnapshot();
}) })
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册