提交 e2300aaa 编写于 作者: DCloud-WZF's avatar DCloud-WZF 💬

test(pages.test.js): 更新测试例

上级 91aa9765
...@@ -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,9 +380,6 @@ describe("page screenshot test", () => { ...@@ -386,9 +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.
先完成此消息的编辑!
想要评论请 注册