|
|
@ -8,6 +8,12 @@ test.describe.only('Map View', () => { |
|
|
|
let dashboard: DashboardPage, toolbar: ToolbarPage; |
|
|
|
let dashboard: DashboardPage, toolbar: ToolbarPage; |
|
|
|
let context: any; |
|
|
|
let context: any; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const latitudeInFullDecimalLength = '50.4501000'; |
|
|
|
|
|
|
|
const longitudeInFullDecimalLength = '30.5234000'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
const latitudeInShortDecimalLength = '50.4501'; |
|
|
|
|
|
|
|
const longitudeInShortDecimalLength = '30.5234'; |
|
|
|
|
|
|
|
|
|
|
|
test.beforeEach(async ({ page }) => { |
|
|
|
test.beforeEach(async ({ page }) => { |
|
|
|
context = await setup({ page }); |
|
|
|
context = await setup({ page }); |
|
|
|
dashboard = new DashboardPage(page, context.project); |
|
|
|
dashboard = new DashboardPage(page, context.project); |
|
|
@ -33,16 +39,16 @@ test.describe.only('Map View', () => { |
|
|
|
columnHeader: 'Actors Birthplace', |
|
|
|
columnHeader: 'Actors Birthplace', |
|
|
|
}); |
|
|
|
}); |
|
|
|
await grid.cell.geoData.enterLatLong({ |
|
|
|
await grid.cell.geoData.enterLatLong({ |
|
|
|
lat: '50.4501', |
|
|
|
lat: latitudeInShortDecimalLength, |
|
|
|
long: '30.5234', |
|
|
|
long: longitudeInShortDecimalLength, |
|
|
|
}); |
|
|
|
}); |
|
|
|
await grid.cell.geoData.clickSave(); |
|
|
|
await grid.cell.geoData.clickSave(); |
|
|
|
|
|
|
|
|
|
|
|
await grid.cell.verifyGeoDataCell({ |
|
|
|
await grid.cell.verifyGeoDataCell({ |
|
|
|
index: 0, |
|
|
|
index: 0, |
|
|
|
columnHeader: 'Actors Birthplace', |
|
|
|
columnHeader: 'Actors Birthplace', |
|
|
|
lat: '50.4501000', |
|
|
|
lat: latitudeInFullDecimalLength, |
|
|
|
long: '30.5234000', |
|
|
|
long: longitudeInFullDecimalLength, |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
@ -71,12 +77,14 @@ test.describe.only('Map View', () => { |
|
|
|
// await dashboard.grid.column.save();
|
|
|
|
// await dashboard.grid.column.save();
|
|
|
|
// }
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
|
|
test('Map View', async () => { |
|
|
|
test('shows the marker and opens the expanded form view when clicking on it', async () => { |
|
|
|
await dashboard.viewSidebar.createMapView({ |
|
|
|
await dashboard.viewSidebar.createMapView({ |
|
|
|
title: 'Map 1', |
|
|
|
title: 'Map 1', |
|
|
|
}); |
|
|
|
}); |
|
|
|
// Zoom out
|
|
|
|
// Zoom out
|
|
|
|
await dashboard.map.zoomOut(8); |
|
|
|
await dashboard.map.zoomOut(8); |
|
|
|
|
|
|
|
// await dashboard.map.verifyMarkerCount({ count: 1 });
|
|
|
|
|
|
|
|
await dashboard.map.clickMarker(latitudeInShortDecimalLength, longitudeInShortDecimalLength); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// await dashboard.viewSidebar.verifyView({
|
|
|
|
// await dashboard.viewSidebar.verifyView({
|
|
|
|