From 928e6f61d7b6f68b67b8d876880be6bfcbd52458 Mon Sep 17 00:00:00 2001 From: Daniel Spaude Date: Sat, 18 Feb 2023 12:20:00 -0500 Subject: [PATCH] work on map view tests - WIP --- tests/playwright/pages/Dashboard/Map/index.ts | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) 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 }) {