提交 a76bba99 编写于 作者: zhaofengliang920817's avatar zhaofengliang920817

update:调整自动化测试脚本 overflow-visible-event.uvue.test.js,适配 iOS18.0 的。

上级 209e28d4
...@@ -63,7 +63,7 @@ describe('/pages/CSS/overflow/overflow-visible-event.uvue', () => { ...@@ -63,7 +63,7 @@ describe('/pages/CSS/overflow/overflow-visible-event.uvue', () => {
await page.waitFor(1500); await page.waitFor(1500);
await page.callMethod('jest_getParentRect') await page.callMethod('jest_getParentRect')
const currentParentTop = await page.data('jest_parent_top'); const currentParentTop = await page.data('jest_parent_top');
const offset = 2 const offset = 4
const diff = Math.abs(currentParentTop - distance) < offset const diff = Math.abs(currentParentTop - distance) < offset
console.log("current ", currentParentTop); console.log("current ", currentParentTop);
console.log("diff", diff); console.log("diff", diff);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册