Browse Source

fix : test case for dateoption

pull/7181/head
musharaf-nocodb 7 months ago
parent
commit
66e0f0dab1
  1. 2
      packages/nc-gui/components/smartsheet/column/DateOptions.vue
  2. 2
      tests/playwright/pages/Dashboard/Grid/Column/index.ts

2
packages/nc-gui/components/smartsheet/column/DateOptions.vue

@ -20,7 +20,7 @@ if (!vModel.value.meta?.date_format) {
<a-form-item :label="$t('labels.dateFormat')">
<a-select v-model:value="vModel.meta.date_format" class="nc-date-select" dropdown-class-name="nc-dropdown-date-format">
<a-select-option v-for="(format, i) of [...dateFormats, ...dateMonthFormats]" :key="i" :value="format">
<div class="flex gap-2 justify-between items-center">
<div class="flex gap-2 justify-between items-center" :data-testid="`${format}`">
{{ format }}
<component
:is="iconMap.check"

2
tests/playwright/pages/Dashboard/Grid/Column/index.ts

@ -310,7 +310,7 @@ export class ColumnPageObject extends BasePage {
case 'DateTime':
// Date Format
await this.get().locator('.nc-date-select').click();
await this.rootPage.locator('.ant-select-item').locator(`text="${dateFormat}"`).click();
await this.rootPage.locator('.ant-select-item').locator(`[data-testid="${dateFormat}"]`).click();
// Time Format
await this.get().locator('.nc-time-select').click();
await this.rootPage.locator('.ant-select-item').locator(`text="${timeFormat}"`).click();

Loading…
Cancel
Save