From 6e7a587fe3f9b6062b868667e8ded327604d62bf Mon Sep 17 00:00:00 2001 From: Raju Udava <86527202+dstala@users.noreply.github.com> Date: Thu, 26 Jan 2023 12:54:38 +0530 Subject: [PATCH] test: mime type config update as per new UI Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com> --- .../pages/Dashboard/Grid/Column/Attachment.ts | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/tests/playwright/pages/Dashboard/Grid/Column/Attachment.ts b/tests/playwright/pages/Dashboard/Grid/Column/Attachment.ts index 9722360d6f..14a1479ddb 100644 --- a/tests/playwright/pages/Dashboard/Grid/Column/Attachment.ts +++ b/tests/playwright/pages/Dashboard/Grid/Column/Attachment.ts @@ -44,19 +44,13 @@ export class AttachmentColumnPageObject extends BasePage { } if (fileTypesExcludeList) { + // click on nc-allow-all-mime-type-checkbox + const allowAllMimeCheckbox = await this.column.get().locator(`.nc-allow-all-mime-type-checkbox`); + await allowAllMimeCheckbox.click(); + const treeList = await this.column.get().locator(`.ant-tree-list`); const checkboxList = await treeList.locator(`.ant-tree-treenode`); - // print count of treenode - // const count = await checkboxList.count(); - - // log checkboxList - // for (let i = 0; i < count; i++) { - // const checkbox = await checkboxList.nth(i); - // const text = await checkbox.innerText(); - // console.log(`text: ${text}`); - // } - for (let i = 0; i < fileTypesExcludeList.length; i++) { const fileType = fileTypesExcludeList[i]; switch (fileType) {