diff --git a/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js b/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js index 6c7c771616f72a52fed7d99d5b8eb4c1defbe2f0..1758081110eb585d6f9dc5e7f743695aa7339de3 100644 --- a/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js +++ b/pages/webview-screenshot-comparison/webview-screenshot-comparison.test.js @@ -236,8 +236,7 @@ describe("shot-compare", () => { // set webview-screenshot-comparison page baseSrc baseSrc = - process.env.UNI_WEB_SERVICE_URL || - "http://test.dcloud.io/unix_h5_build/98_dev_hello-uni-app-x/#/"; + 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/#/"; page.setData({ baseSrc, }); @@ -327,4 +326,4 @@ describe("shot-compare", () => { expect(1).toBe(1); }); } -}); +});