|
|
|
@ -1,3 +1,4 @@
|
|
|
|
|
import { expect } from '@playwright/test'; |
|
|
|
|
import { DashboardPage } from '..'; |
|
|
|
|
import BasePage from '../../Base'; |
|
|
|
|
import { ToolbarPage } from '../common/Toolbar'; |
|
|
|
@ -28,6 +29,11 @@ export class MapPage extends BasePage {
|
|
|
|
|
return (await this.marker(lat, long)).click(); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async verifyMarkerCount(count: number) { |
|
|
|
|
const markers = await this.get().locator('.leaflet-marker-pane img'); |
|
|
|
|
await expect(markers).toHaveCount(count); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
async zoomOut(times = 10) { |
|
|
|
|
const zoomOutButton = await this.get().locator('.leaflet-control-zoom-out'); |
|
|
|
|
for (let i = 0; i < times; i++) { |
|
|
|
|