|
|
@ -1,14 +1,9 @@ |
|
|
|
import { expect, test } from '@playwright/test'; |
|
|
|
import { test } from '@playwright/test'; |
|
|
|
import { DashboardPage } from '../pages/Dashboard'; |
|
|
|
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'; |
|
|
|
|
|
|
|
|
|
|
|
type ExpectedQrCodeData = { |
|
|
|
test.describe('Geo Data column', () => { |
|
|
|
referencedValue: string; |
|
|
|
|
|
|
|
base64EncodedSrc: string; |
|
|
|
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
test.describe.only('Geo Data column', () => { |
|
|
|
|
|
|
|
let dashboard: DashboardPage; |
|
|
|
let dashboard: DashboardPage; |
|
|
|
let grid: GridPage; |
|
|
|
let grid: GridPage; |
|
|
|
let context: any; |
|
|
|
let context: any; |
|
|
@ -19,13 +14,7 @@ test.describe.only('Geo Data column', () => { |
|
|
|
grid = dashboard.grid; |
|
|
|
grid = dashboard.grid; |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
test('creation, validation, use "My Location" and deleting geo data column', async () => { |
|
|
|
test('creation, validation and deleting geo data column', async () => { |
|
|
|
// Write Playwright test that tests the following for the Geo Data column:
|
|
|
|
|
|
|
|
// - creation
|
|
|
|
|
|
|
|
// - validation
|
|
|
|
|
|
|
|
// - use "My Location"
|
|
|
|
|
|
|
|
// - deleting geo data column
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// close 'Team & Auth' tab
|
|
|
|
// close 'Team & Auth' tab
|
|
|
|
await dashboard.closeTab({ title: 'Team & Auth' }); |
|
|
|
await dashboard.closeTab({ title: 'Team & Auth' }); |
|
|
|
|
|
|
|
|
|
|
@ -38,10 +27,8 @@ test.describe.only('Geo Data column', () => { |
|
|
|
type: 'GeoData', |
|
|
|
type: 'GeoData', |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// await grid.rootPage.pause();
|
|
|
|
|
|
|
|
await grid.column.verify({ title: 'GeoData1', isVisible: true }); |
|
|
|
await grid.column.verify({ title: 'GeoData1', isVisible: true }); |
|
|
|
|
|
|
|
|
|
|
|
// await dashboard.grid.cell.attachment.addFile({
|
|
|
|
|
|
|
|
await grid.cell.geoData.open({ |
|
|
|
await grid.cell.geoData.open({ |
|
|
|
index: 0, |
|
|
|
index: 0, |
|
|
|
columnHeader: 'GeoData1', |
|
|
|
columnHeader: 'GeoData1', |
|
|
@ -59,34 +46,9 @@ test.describe.only('Geo Data column', () => { |
|
|
|
long: '30.5234000', |
|
|
|
long: '30.5234000', |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
// await grid.rootPage.pause();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// await dashboard.grid.cell.attachment.addFile({
|
|
|
|
|
|
|
|
// index: i,
|
|
|
|
|
|
|
|
// columnHeader: 'testAttach',
|
|
|
|
|
|
|
|
// filePath: filepath,
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// await dashboard.grid.cell.attachment.verifyFile({
|
|
|
|
|
|
|
|
// index: i,
|
|
|
|
|
|
|
|
// columnHeader: 'testAttach',
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
expect(1 + 2).toBe(3); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// await grid.rootPage.pause();
|
|
|
|
|
|
|
|
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 }); |
|
|
|
|
|
|
|
|
|
|
|
await dashboard.closeTab({ title: 'City' }); |
|
|
|
await dashboard.closeTab({ title: 'City' }); |
|
|
|
|
|
|
|
|
|
|
|
// await dashboard.treeView.openTable({ title: 'City' });
|
|
|
|
|
|
|
|
// await grid.column.create({
|
|
|
|
|
|
|
|
// title: 'Geo Data',
|
|
|
|
|
|
|
|
// type: 'Geo Data',
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
// await grid.column.openEdit({
|
|
|
|
|
|
|
|
// title: 'Geo Data',
|
|
|
|
|
|
|
|
// type: 'Geo Data',
|
|
|
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|