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

test: 修复截图对比测试 baseSrc 获取错误

上级 4c839f1f
...@@ -236,8 +236,7 @@ describe("shot-compare", () => { ...@@ -236,8 +236,7 @@ describe("shot-compare", () => {
// set webview-screenshot-comparison page baseSrc // set webview-screenshot-comparison page baseSrc
baseSrc = baseSrc =
process.env.UNI_WEB_SERVICE_URL || process.env.UNI_WEB_SERVICE_URL ? `${process.env.UNI_WEB_SERVICE_URL}/#/` : "http://test.dcloud.io/unix_h5_build/98_dev_hello-uni-app-x/#/";
"http://test.dcloud.io/unix_h5_build/98_dev_hello-uni-app-x/#/";
page.setData({ page.setData({
baseSrc, baseSrc,
}); });
...@@ -327,4 +326,4 @@ describe("shot-compare", () => { ...@@ -327,4 +326,4 @@ describe("shot-compare", () => {
expect(1).toBe(1); expect(1).toBe(1);
}); });
} }
}); });
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册