|
|
|
@ -67,6 +67,33 @@ export class ExpandedFormPage extends BasePage {
|
|
|
|
|
case 'text': |
|
|
|
|
await field.locator('input').fill(value); |
|
|
|
|
break; |
|
|
|
|
case 'geodata': { |
|
|
|
|
const [lat, long] = value.split(','); |
|
|
|
|
|
|
|
|
|
// async open({ index, columnHeader }: { index: number; columnHeader: string }) {
|
|
|
|
|
// await this.cell.get({ index, columnHeader }).locator(`[data-testid="nc-geo-data-set-location-button"]`).click();
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// async enterLatLong({ lat, long }: { lat: string; long: string }) {
|
|
|
|
|
// await this.rootPage.locator(`[data-testid="nc-geo-data-latitude"]`).fill(lat);
|
|
|
|
|
// await this.rootPage.locator(`[data-testid="nc-geo-data-longitude"]`).fill(long);
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// async clickSave() {
|
|
|
|
|
// await this.rootPage.locator(`[data-testid="nc-geo-data-save"]`).click();
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
// async close() {
|
|
|
|
|
// await this.rootPage.keyboard.press('Escape');
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
await this.rootPage.locator(`[data-testid="nc-geo-data-set-location-button"]`).click(); |
|
|
|
|
await this.rootPage.locator(`[data-testid="nc-geo-data-latitude"]`).fill(lat); |
|
|
|
|
await this.rootPage.locator(`[data-testid="nc-geo-data-longitude"]`).fill(long); |
|
|
|
|
await this.rootPage.locator(`[data-testid="nc-geo-data-save"]`).click(); |
|
|
|
|
// await field.locator('input').fill(value);
|
|
|
|
|
break; |
|
|
|
|
} |
|
|
|
|
case 'belongsTo': |
|
|
|
|
await field.locator('.nc-action-icon').click(); |
|
|
|
|
await this.dashboard.linkRecord.select(value); |
|
|
|
|