Browse Source

test: attachment flaky fix

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/5392/head
Raju Udava 2 years ago
parent
commit
00ae001145
  1. 2
      tests/playwright/pages/Dashboard/common/Cell/AttachmentCell.ts
  2. 4
      tests/playwright/tests/columnAttachments.spec.ts

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

@ -52,7 +52,7 @@ export class AttachmentCellPageObject extends BasePage {
let retryCount = 0;
while (retryCount < 5) {
const attachments = await this.get({ index, columnHeader }).locator('.nc-attachment');
console.log(await attachments.count());
// console.log(await attachments.count());
if ((await attachments.count()) === count) {
break;
}

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

@ -39,12 +39,12 @@ test.describe('Attachment column', () => {
});
}
await dashboard.grid.cell.attachment.addFile({
index: 14,
index: 4,
columnHeader: 'testAttach',
filePath: [`${process.cwd()}/fixtures/sampleFiles/sampleImage.jpeg`],
});
await dashboard.grid.cell.attachment.verifyFile({
index: 14,
index: 4,
columnHeader: 'testAttach',
});

Loading…
Cancel
Save