Browse Source

test: link drag drop

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5848/head
Raju Udava 1 year ago committed by Pranav C
parent
commit
9d880092eb
  1. 10
      tests/playwright/tests/db/columnLtarDragdrop.spec.ts

10
tests/playwright/tests/db/columnLtarDragdrop.spec.ts

@ -100,17 +100,21 @@ test.describe('Test table', () => {
const childColumn = await getTextExcludeIconText(
await columnAddModal.locator(`.ant-form-item-control-input`).nth(3)
);
const aggregateFunction = await getTextExcludeIconText(
await columnAddModal.locator(`.ant-form-item-control-input`).nth(4)
);
// validate
expect(columnType).toContain('Lookup');
expect(columnType).toContain('Rollup');
expect(linkField.split(' ')[0]).toContain('Table1');
expect(childColumn).toContain('Title');
expect(childColumn).toContain('Id');
expect(aggregateFunction).toContain('max');
// save
await columnAddModal.locator(`.ant-btn-primary`).click();
// verify if column is created
await grid.column.verify({ title: 'Table1Lookup', isVisible: true });
await grid.column.verify({ title: 'Table1Rollup', isVisible: true });
}
});
});

Loading…
Cancel
Save