diff --git a/tests/playwright/pages/Dashboard/Map/index.ts b/tests/playwright/pages/Dashboard/Map/index.ts index beb7123a46..6d68fc4a76 100644 --- a/tests/playwright/pages/Dashboard/Map/index.ts +++ b/tests/playwright/pages/Dashboard/Map/index.ts @@ -21,25 +21,12 @@ export class MapPage extends BasePage { return this.get().locator(`.leaflet-marker-pane img[alt="${latLongStr}"]`); } - async zoomOut(times: number) { + async zoomOut(times = 10) { const zoomOutButton = await this.get().locator('.leaflet-control-zoom-out'); - // await this.rootPage.pause(); - // await zoomOutButton.click(); for (let i = 0; i < times; i++) { - // await this.rootPage.pause(); await zoomOutButton.click(); await this.rootPage.waitForTimeout(400); - // await this.rootPage.pause(); } - - // const promises = []; - // for (let i = 0; i < times; i++) { - // promises.push(zoomOutButton.click()); - // // await page.waitForTimeout(2000); - // } - // await Promise.all(promises); - - // await this.rootPage.pause(); } // async openExpandedRow({ index }: { index: number }) {