]letpage;describe('page screenshot test',()=>{beforeAll(async()=>{console.log("page screenshot test start");});beforeEach(async()=>{page=awaitprogram.reLaunch(pages[pageIndex]);awaitpage.waitFor(1000);});afterEach(()=>{pageIndex++;});afterAll(()=>{console.log("page screenshot test finish");});test.each(pages)('%s',async()=>{constimage=awaitprogram.screenshot();expect(image).toMatchImageSnapshot();awaitpage.waitFor(500);})})