Browse Source

work on map view tests - WIP

pull/4749/head
Daniel Spaude 2 years ago
parent
commit
928e6f61d7
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 15
      tests/playwright/pages/Dashboard/Map/index.ts

15
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 }) {

Loading…
Cancel
Save