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

更新页面截图自动化测试用例

上级 78c95fb9
...@@ -326,12 +326,6 @@ if (isWeb) { ...@@ -326,12 +326,6 @@ if (isWeb) {
) )
} }
// 设置position: fixed的页面不能截取完整内容
const notFullPages = [
'/pages/CSS/layout/position',
'/pages/CSS/layout/z-index'
]
let page; let page;
let windowInfo let windowInfo
...@@ -386,10 +380,6 @@ describe("page screenshot test", () => { ...@@ -386,10 +380,6 @@ describe("page screenshot test", () => {
const currentPagePath = pages[pageIndex] const currentPagePath = pages[pageIndex]
console.log("Taking screenshot: ", pageIndex, currentPagePath); console.log("Taking screenshot: ", pageIndex, currentPagePath);
let fullPage = true; let fullPage = true;
if (notFullPages.includes(currentPagePath)) {
fullPage = false;
}
const screenshotParams = { const screenshotParams = {
fullPage fullPage
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册