Browse Source

test: mime type config update as per new UI

Signed-off-by: Raju Udava <86527202+dstala@users.noreply.github.com>
pull/4931/head
Raju Udava 2 years ago
parent
commit
6e7a587fe3
  1. 14
      tests/playwright/pages/Dashboard/Grid/Column/Attachment.ts

14
tests/playwright/pages/Dashboard/Grid/Column/Attachment.ts

@ -44,19 +44,13 @@ export class AttachmentColumnPageObject extends BasePage {
} }
if (fileTypesExcludeList) { 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 treeList = await this.column.get().locator(`.ant-tree-list`);
const checkboxList = await treeList.locator(`.ant-tree-treenode`); 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++) { for (let i = 0; i < fileTypesExcludeList.length; i++) {
const fileType = fileTypesExcludeList[i]; const fileType = fileTypesExcludeList[i];
switch (fileType) { switch (fileType) {

Loading…
Cancel
Save