Browse Source

work on geo data column tests - WIP

pull/4749/head
Daniel Spaude 2 years ago
parent
commit
bc274b536f
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 21
      tests/playwright/tests/columnGeoData.spec.ts

21
tests/playwright/tests/columnGeoData.spec.ts

@ -3,7 +3,7 @@ import { DashboardPage } from '../pages/Dashboard';
import setup from '../setup'; import setup from '../setup';
import { GridPage } from '../pages/Dashboard/Grid'; import { GridPage } from '../pages/Dashboard/Grid';
test.describe('Geo Data column', () => { test.describe.only('Geo Data column', () => {
let dashboard: DashboardPage; let dashboard: DashboardPage;
let grid: GridPage; let grid: GridPage;
let context: any; let context: any;
@ -46,6 +46,25 @@ test.describe('Geo Data column', () => {
long: '30.5234000', long: '30.5234000',
}); });
// Trying to change to value that is not valid
await grid.cell.geoData.open({
index: 0,
columnHeader: 'GeoData1',
});
await grid.cell.geoData.enterLatLong({
lat: '543210.4501',
long: '30.5234',
});
await grid.cell.geoData.clickSave();
// value should not be changed
await grid.cell.verifyGeoDataCell({
index: 0,
columnHeader: 'GeoData1',
lat: '50.4501000',
long: '30.5234000',
});
await grid.column.delete({ title: 'GeoData1' }); await grid.column.delete({ title: 'GeoData1' });
await grid.column.verify({ title: 'GeoData1', isVisible: false }); await grid.column.verify({ title: 'GeoData1', isVisible: false });

Loading…
Cancel
Save