Browse Source

adjust classes naming

pull/4749/head
flisowna 2 years ago
parent
commit
f1c20b24d9
  1. 2
      packages/nc-gui/components/cell/GeoData.vue
  2. 2
      tests/playwright/pages/Dashboard/common/Cell/GeoDataCell.ts
  3. 2
      tests/playwright/pages/Dashboard/common/Cell/index.ts

2
packages/nc-gui/components/cell/GeoData.vue

@ -83,7 +83,7 @@ const onClickSetCurrentLocation = () => {
</div> </div>
</div> </div>
</div> </div>
<div data-testid="nc-geo-data-latLong-set" v-else>{{ latLongStr }}</div> <div data-testid="nc-geo-data-lat-long-set" v-else>{{ latLongStr }}</div>
<template #overlay> <template #overlay>
<a-form :model="formState" class="flex flex-col" @finish="handleFinish"> <a-form :model="formState" class="flex flex-col" @finish="handleFinish">
<a-form-item> <a-form-item>

2
tests/playwright/pages/Dashboard/common/Cell/GeoDataCell.ts

@ -18,7 +18,7 @@ export class GeoDataCellPageObject extends BasePage {
} }
async openLatLngSet({ index, columnHeader }: { index: number; columnHeader: string }) { async openLatLngSet({ index, columnHeader }: { index: number; columnHeader: string }) {
await this.cell.get({ index, columnHeader }).locator(`[data-testid="nc-geo-data-latLong-set"]`).click(); await this.cell.get({ index, columnHeader }).locator(`[data-testid="nc-geo-data-lat-long-set"]`).click();
} }
async enterLatLong({ lat, long }: { lat: string; long: string }) { async enterLatLong({ lat, long }: { lat: string; long: string }) {

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

@ -158,7 +158,7 @@ export class CellPageObject extends BasePage {
const cell = await this.get({ const cell = await this.get({
index, index,
columnHeader, columnHeader,
}).locator(`[data-testid="nc-geo-data-latLong-set"]`); }).locator(`[data-testid="nc-geo-data-lat-long-set"]`);
return await cell.textContent(); //.getAttribute('title'); return await cell.textContent(); //.getAttribute('title');
}) })
.toEqual(expectedValue); .toEqual(expectedValue);

Loading…
Cancel
Save