提交 d39046b3 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新web-view自动化测试用例

上级 eb8c4181
...@@ -42,7 +42,7 @@ describe('component-native-web-view', () => { ...@@ -42,7 +42,7 @@ describe('component-native-web-view', () => {
const info = await page.callMethod('getWindowInfo'); const info = await page.callMethod('getWindowInfo');
await program.tap({ await program.tap({
x: 1, x: 1,
y: (info.statusBarHeight + 44) * info.pixelRatio + 1 y: info.statusBarHeight + 44 + 1
}); });
start = Date.now(); start = Date.now();
await page.waitFor(async () => { await page.waitFor(async () => {
...@@ -66,7 +66,7 @@ describe('component-native-web-view', () => { ...@@ -66,7 +66,7 @@ describe('component-native-web-view', () => {
await page.waitFor(100); await page.waitFor(100);
await program.tap({ await program.tap({
x: 10, x: 10,
y: (info.statusBarHeight + 44) * info.pixelRatio + 10 y: info.statusBarHeight + 44 + 10
}); });
start = Date.now(); start = Date.now();
await page.waitFor(async () => { await page.waitFor(async () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册