提交 7da82b8a 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

模拟手势的示例,跳过横屏

上级 09246e9c
...@@ -9,6 +9,13 @@ describe("payment", () => { ...@@ -9,6 +9,13 @@ describe("payment", () => {
expect(1).toBe(1) expect(1).toBe(1)
}) })
return return
}
if (process.env.UNI_TEST_DEVICES_DIRECTION == 'landscape') {
it('跳过横屏模式', () => {
expect(1).toBe(1)
})
return
} }
it("trigger pulldown refresh by swipe", async () => { it("trigger pulldown refresh by swipe", async () => {
......
...@@ -9,6 +9,13 @@ describe('touch-events-test', () => { ...@@ -9,6 +9,13 @@ describe('touch-events-test', () => {
}) })
return return
} }
if (process.env.UNI_TEST_DEVICES_DIRECTION == 'landscape') {
it('跳过横屏模式', () => {
expect(1).toBe(1)
})
return
}
let page let page
beforeAll(async () => { beforeAll(async () => {
......
...@@ -5,6 +5,14 @@ describe('component-native-list-view-refresh', () => { ...@@ -5,6 +5,14 @@ describe('component-native-list-view-refresh', () => {
}) })
return return
} }
if (process.env.UNI_TEST_DEVICES_DIRECTION == 'landscape') {
it('跳过横屏模式', () => {
expect(1).toBe(1)
})
return
}
let page let page
beforeAll(async () => { beforeAll(async () => {
//打开list-view测试页 //打开list-view测试页
......
...@@ -9,6 +9,13 @@ describe('rich-text-test', () => { ...@@ -9,6 +9,13 @@ describe('rich-text-test', () => {
}) })
return return
} }
if (process.env.UNI_TEST_DEVICES_DIRECTION == 'landscape') {
it('跳过横屏模式', () => {
expect(1).toBe(1)
})
return
}
let page let page
beforeAll(async () => { beforeAll(async () => {
......
...@@ -8,7 +8,15 @@ describe('component-native-scroll-view-refresher', () => { ...@@ -8,7 +8,15 @@ describe('component-native-scroll-view-refresher', () => {
expect(1).toBe(1) expect(1).toBe(1)
}) })
return return
} }
if (process.env.UNI_TEST_DEVICES_DIRECTION == 'landscape') {
it('跳过横屏模式', () => {
expect(1).toBe(1)
})
return
}
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');
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册