Browse Source

test: attachment

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
b20e99fdd3
  1. 6
      tests/playwright/pages/Dashboard/common/Cell/index.ts
  2. 4
      tests/playwright/tests/db/columnAttachments.spec.ts

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

@ -353,16 +353,16 @@ export class CellPageObject extends BasePage {
);
// in-cell expand (all have access)
// PR(LinkDataType)
// PR8504
// await expect(await vCell.locator('.nc-action-icon.nc-arrow-expand:visible')).toHaveCount(1);
const linkText = await getTextExcludeIconText(vCell);
expect(linkText).toContain('1 Link');
// PR(LinkDataType)
// PR8504
// await vCell.click();
// unlink
// PR(LinkDataType)
// PR8504
// await expect(await vCell.locator('.nc-icon.unlink-icon:visible')).toHaveCount(
// param.role === 'creator' || param.role === 'editor' ? 1 : 0
// );

4
tests/playwright/tests/db/columnAttachments.spec.ts

@ -94,7 +94,9 @@ test.describe('Attachment column', () => {
await expect(columns).toBe('Country,City List,testAttach');
await expect(cells[0]).toBe('Bahrain');
await expect(cells[1]).toBe('al-Manama');
// PR8504
// await expect(cells[1]).toBe('al-Manama');
await expect(cells[1]).toBe('1');
await expect(cells[2].includes('5.json(http://localhost:8080/download/')).toBe(true);
});

Loading…
Cancel
Save