diff --git a/pages/pages.test.js b/pages/pages.test.js index fa4c0444706ec370748ecfbcfee47250eaa67e22..ad9a6936d788e54031777eca082fbbb32b031e30 100755 --- a/pages/pages.test.js +++ b/pages/pages.test.js @@ -125,6 +125,11 @@ const pages = [ '/pages/API/element-draw/element-draw', ] +const needLoadingNetworkResourcesPages = [ + "/pages/CSS/text/font-family", + "/pages/template/list-news/list-news", +]; + let page; describe('page screenshot test', () => { beforeAll(async () => { @@ -132,6 +137,9 @@ describe('page screenshot test', () => { }); beforeEach(async () => { page = await program.reLaunch(pages[pageIndex]); + if (needLoadingNetworkResourcesPages.includes(pages[pageIndex])) { + await page.waitFor(2000); + } await page.waitFor(1000); }); afterEach(() => {