Browse Source

test: fix

pull/6360/head
DarkPhoenix2704 11 months ago
parent
commit
5da30c020c
  1. 2
      packages/nc-gui/components/virtual-cell/components/ListItem.vue
  2. 8
      tests/playwright/pages/Dashboard/ExpandedForm/index.ts

2
packages/nc-gui/components/virtual-cell/components/ListItem.vue

@ -113,7 +113,7 @@ const attachments: Attachment[] = computed(() => {
<NcButton
type="text"
size="lg"
class="!px-2 !group-hover:block !hidden !absolute right-1 bottom-1"
class="!px-2 nc-expand-item !group-hover:block !hidden !absolute right-1 bottom-1"
@click.stop="$emit('expand', row)"
>
<MaximizeIcon class="w-4 h-4" />

8
tests/playwright/pages/Dashboard/ExpandedForm/index.ts

@ -158,8 +158,12 @@ export class ExpandedFormPage extends BasePage {
}
async openChildCard(param: { column: string; title: string }) {
const childList = this.get().locator(`[data-testid="nc-expand-col-${param.column}"]`);
await childList.locator(`.ant-card:has-text("${param.title}")`).click();
const childField = this.get().locator(`[data-testid="nc-expand-col-${param.column}"]`);
await childField.locator('.nc-datatype-link').click();
const card = await this.rootPage.locator(`.ant-card:has-text("${param.title}")`);
await card.hover();
await card.locator(`.nc-expand-item`).click();
}
async verifyCount({ count }: { count: number }) {

Loading…
Cancel
Save