Browse Source

work on geo data column tests - WIP

pull/4749/head
Daniel Spaude 2 years ago
parent
commit
9f6585abe0
No known key found for this signature in database
GPG Key ID: 654A3D1FA4F35FFE
  1. 5
      tests/playwright/pages/Dashboard/common/Cell/index.ts
  2. 10
      tests/playwright/tests/columnGeoData.spec.ts

5
tests/playwright/pages/Dashboard/common/Cell/index.ts

@ -158,12 +158,13 @@ export class CellPageObject extends BasePage {
const cell = await this.get({
index,
columnHeader,
}).locator('input');
return await cell.getAttribute('title');
}).locator('button');
return await cell.textContent(); //.getAttribute('title');
})
.toEqual(expectedValue);
};
const value = `${lat}; ${long}`;
await _verify(value);
}

10
tests/playwright/tests/columnGeoData.spec.ts

@ -48,9 +48,17 @@ test.describe.only('Geo Data column', () => {
});
await grid.cell.geoData.enterLatLong({
lat: '50.4501',
long: '930.5234',
long: '30.5234',
});
await grid.cell.geoData.clickSave();
await grid.cell.verifyGeoDataCell({
index: 0,
columnHeader: 'GeoData1',
lat: '50.4501000',
long: '30.5234000',
});
// await grid.rootPage.pause();
// await dashboard.grid.cell.attachment.addFile({

Loading…
Cancel
Save