mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
fix naming for e2e (#1418)
This commit is contained in:
@@ -80,28 +80,28 @@ describe('Generic tests : ', () => {
|
||||
await dataTable.waitForHeader();
|
||||
});
|
||||
|
||||
it('selected row is marked with a check circle icon - [C213134]', async () => {
|
||||
it('[C213134] selected row is marked with a check circle icon', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
expect(await dataTable.hasCheckMarkIcon(file1)).toBe(true, 'check mark missing');
|
||||
});
|
||||
|
||||
it('Row is marked with a check circle icon on direct right click - [C286252]', async () => {
|
||||
it('[C286252] Row is marked with a check circle icon on direct right click', async () => {
|
||||
await dataTable.rightClickOnItem(file2);
|
||||
expect(await dataTable.hasCheckMarkIcon(file2)).toBe(true, 'check mark missing');
|
||||
});
|
||||
|
||||
it('Context menu appears on direct right click on an item - [C286253]', async () => {
|
||||
it('[C286253] Context menu appears on direct right click on an item', async () => {
|
||||
await dataTable.rightClickOnItem(file1);
|
||||
expect(await dataTable.hasContextMenu()).toBe(true, 'Context menu is not displayed');
|
||||
});
|
||||
|
||||
it('Context menu appears when selecting an item and then right clicking on it - [C286254]', async () => {
|
||||
it('[C286254] Context menu appears when selecting an item and then right clicking on it', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await dataTable.rightClickOnItem(file2);
|
||||
expect(await dataTable.hasContextMenu()).toBe(true, 'Context menu is not displayed');
|
||||
});
|
||||
|
||||
it('Context menu appears correctly when right clicking on another item - [C284666]', async () => {
|
||||
it('[C284666] Context menu appears correctly when right clicking on another item', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await dataTable.rightClickOnItem(file2);
|
||||
expect(await dataTable.hasContextMenu()).toBe(true, `Context menu is not displayed`);
|
||||
@@ -109,7 +109,7 @@ describe('Generic tests : ', () => {
|
||||
expect(await dataTable.hasCheckMarkIcon(file1)).toBe(false, `${file1} is not selected`);
|
||||
});
|
||||
|
||||
it('Context menu closes when clicking away from it - [C280619]', async () => {
|
||||
it('[C280619] Context menu closes when clicking away from it', async () => {
|
||||
await dataTable.rightClickOnItem(file1);
|
||||
expect(await dataTable.hasContextMenu()).toBe(true, 'Context menu is not displayed');
|
||||
await page.breadcrumb.getCurrentItem().click();
|
||||
@@ -119,43 +119,43 @@ describe('Generic tests : ', () => {
|
||||
|
||||
describe('Actions are not displayed when no item is selected', () => {
|
||||
|
||||
it('on Personal Files - [C213120]', async () => {
|
||||
it('[C213120] on Personal Files', async () => {
|
||||
await page.clickPersonalFilesAndWait();
|
||||
expect(await toolbar.isEmpty()).toBe(true, `actions displayed though nothing selected`);
|
||||
});
|
||||
|
||||
it('on Trash - [C280452]', async () => {
|
||||
it('[C280452] on Trash', async () => {
|
||||
await page.clickTrash();
|
||||
expect(await toolbar.isEmpty()).toBe(true, `actions displayed though nothing selected`);
|
||||
});
|
||||
|
||||
it('on Favorites - [C280449]', async () => {
|
||||
it('[C280449] on Favorites', async () => {
|
||||
await page.clickFavorites();
|
||||
expect(await toolbar.isEmpty()).toBe(true, `actions displayed though nothing selected`);
|
||||
});
|
||||
|
||||
it('on Recent Files - [C280447]', async () => {
|
||||
it('[C280447] on Recent Files', async () => {
|
||||
await userApi.search.waitForApi(username, { expect: 2 });
|
||||
await page.clickRecentFilesAndWait();
|
||||
expect(await toolbar.isEmpty()).toBe(true, `actions displayed though nothing selected`);
|
||||
});
|
||||
|
||||
it('on Shared Files - [C280445]', async () => {
|
||||
it('[C280445] on Shared Files', async () => {
|
||||
await page.clickSharedFiles();
|
||||
expect(await toolbar.isEmpty()).toBe(true, `actions displayed though nothing selected`);
|
||||
});
|
||||
|
||||
it('on My Libraries - [C280439]', async () => {
|
||||
it('[C280439] on My Libraries', async () => {
|
||||
await page.goToMyLibraries();
|
||||
expect(await toolbar.isEmpty()).toBe(true, `actions displayed though nothing selected`);
|
||||
});
|
||||
|
||||
it('on Favorite Libraries - [C280439]', async () => {
|
||||
it('[C280439] on Favorite Libraries', async () => {
|
||||
await page.goToFavoriteLibraries();
|
||||
expect(await toolbar.isEmpty()).toBe(true, `actions displayed though nothing selected`);
|
||||
});
|
||||
|
||||
it('on Search Results - [C291815]', async () => {
|
||||
it('[C291815] on Search Results', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.searchFor('*');
|
||||
|
||||
@@ -170,14 +170,14 @@ describe('Generic tests : ', () => {
|
||||
await dataTable.waitForHeader();
|
||||
});
|
||||
|
||||
it('Context menu appears on right click on a multiple selection of items - [C286268]', async () => {
|
||||
it('[C286268] Context menu appears on right click on a multiple selection of items', async () => {
|
||||
await dataTable.selectMultipleItems([ file1, file2 ]);
|
||||
await dataTable.rightClickOnMultipleSelection();
|
||||
|
||||
expect(await dataTable.hasContextMenu()).toBe(true, 'Context menu is not displayed');
|
||||
});
|
||||
|
||||
it('Context menu appears when right clicking on a single item while having multiple items selected - [C286269]', async () => {
|
||||
it('[C286269] Context menu appears when right clicking on a single item while having multiple items selected', async () => {
|
||||
await dataTable.selectMultipleItems([ file2, folder1 ]);
|
||||
await dataTable.rightClickOnItem(file1);
|
||||
|
||||
@@ -189,7 +189,7 @@ describe('Generic tests : ', () => {
|
||||
expect(await dataTable.hasCheckMarkIcon(folder1)).toBe(false, `${folder1} is selected`);
|
||||
});
|
||||
|
||||
it('Unselect items with single click - [C280458]', async () => {
|
||||
it('[C280458] Unselect items with single click', async () => {
|
||||
await dataTable.selectMultipleItems([file1, file2, folder1, folder2]);
|
||||
expect(await dataTable.getSelectedRowsCount()).toEqual(4, 'incorrect selected rows number');
|
||||
|
||||
@@ -197,7 +197,7 @@ describe('Generic tests : ', () => {
|
||||
expect(await dataTable.getSelectedRowsCount()).toEqual(1, 'incorrect selected rows number');
|
||||
});
|
||||
|
||||
it('Select / unselect items by CMD+click - [C217110]', async () => {
|
||||
it('[C217110] Select / unselect items by CMD+click', async () => {
|
||||
await Utils.pressCmd();
|
||||
await dataTable.clickItem(file1);
|
||||
await dataTable.clickItem(file2);
|
||||
|
@@ -120,32 +120,32 @@ describe('Library actions : ', () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('Public library, user is a member, favorite - [C213135]', async () => {
|
||||
it('[C213135] Public library, user is a member, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.publicUserMemberFav.name, testData.publicUserMemberFav.toolbarPrimary, testData.publicUserMemberFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.publicUserMemberFav.name, testData.publicUserMemberFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Private library, user is a member, favorite - [C290080]', async () => {
|
||||
it('[C290080] Private library, user is a member, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.privateUserMemberFav.name, testData.privateUserMemberFav.toolbarPrimary, testData.privateUserMemberFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.privateUserMemberFav.name, testData.privateUserMemberFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Moderated library, user is a member, favorite - [C326676]', async () => {
|
||||
it('[C326676] Moderated library, user is a member, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.moderatedUserMemberFav.name, testData.moderatedUserMemberFav.toolbarPrimary, testData.moderatedUserMemberFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.moderatedUserMemberFav.name, testData.moderatedUserMemberFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Public library, user is a member, not favorite - [C326677]', async () => {
|
||||
it('[C326677] Public library, user is a member, not favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.publicUserMemberNotFav.name, testData.publicUserMemberNotFav.toolbarPrimary, testData.publicUserMemberNotFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.publicUserMemberNotFav.name, testData.publicUserMemberNotFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Private library, user is a member, not favorite - [C326678]', async () => {
|
||||
it('[C326678] Private library, user is a member, not favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.privateUserMemberNotFav.name, testData.privateUserMemberNotFav.toolbarPrimary, testData.privateUserMemberNotFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.privateUserMemberNotFav.name, testData.privateUserMemberNotFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Moderated library, user is a member, not favorite - [C326679]', async () => {
|
||||
it('[C326679] Moderated library, user is a member, not favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.moderatedUserMemberNotFav.name, testData.moderatedUserMemberNotFav.toolbarPrimary, testData.moderatedUserMemberNotFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.moderatedUserMemberNotFav.name, testData.moderatedUserMemberNotFav.contextMenu);
|
||||
});
|
||||
@@ -163,32 +163,32 @@ describe('Library actions : ', () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('Public library, user is a member, favorite - [C289892]', async () => {
|
||||
it('[C289892] Public library, user is a member, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.publicUserMemberFav.name, testData.publicUserMemberFav.toolbarPrimary, testData.publicUserMemberFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.publicUserMemberFav.name, testData.publicUserMemberFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Private library, user is a member, favorite - [C290090]', async () => {
|
||||
it('[C290090] Private library, user is a member, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.privateUserMemberFav.name, testData.privateUserMemberFav.toolbarPrimary, testData.privateUserMemberFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.privateUserMemberFav.name, testData.privateUserMemberFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Moderated library, user is a member, favorite - [C290091]', async () => {
|
||||
it('[C290091] Moderated library, user is a member, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.moderatedUserMemberFav.name, testData.moderatedUserMemberFav.toolbarPrimary, testData.moderatedUserMemberFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.moderatedUserMemberFav.name, testData.moderatedUserMemberFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Public library, user not a member, favorite - [C290081]', async () => {
|
||||
it('[C290081] Public library, user not a member, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.publicNotMemberFav.name, testData.publicNotMemberFav.toolbarPrimary, testData.publicNotMemberFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.publicNotMemberFav.name, testData.publicNotMemberFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Moderated library, user not a member, favorite - [C290082]', async () => {
|
||||
it('[C290082] Moderated library, user not a member, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.moderatedNotMemberFav.name, testData.moderatedNotMemberFav.toolbarPrimary, testData.moderatedNotMemberFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.moderatedNotMemberFav.name, testData.moderatedNotMemberFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Moderated library, user requested to join, favorite - [C290089]', async () => {
|
||||
it('[C290089] Moderated library, user requested to join, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.moderatedRequestedJoinFav.name, testData.moderatedRequestedJoinFav.toolbarPrimary, testData.moderatedRequestedJoinFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.moderatedRequestedJoinFav.name, testData.moderatedRequestedJoinFav.contextMenu);
|
||||
});
|
||||
@@ -208,62 +208,62 @@ describe('Library actions : ', () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('Public library, user is a member, favorite - [C290084]', async () => {
|
||||
it('[C290084] Public library, user is a member, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.publicUserMemberFav.name, testData.publicUserMemberFav.searchToolbarPrimary, testData.publicUserMemberFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.publicUserMemberFav.name, testData.publicUserMemberFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Private library, user is a member, favorite - [C290085]', async () => {
|
||||
it('[C290085] Private library, user is a member, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.privateUserMemberFav.name, testData.privateUserMemberFav.searchToolbarPrimary, testData.privateUserMemberFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.privateUserMemberFav.name, testData.privateUserMemberFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Moderated library, user is a member, favorite - [C290086]', async () => {
|
||||
it('[C290086] Moderated library, user is a member, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.moderatedUserMemberFav.name, testData.moderatedUserMemberFav.searchToolbarPrimary, testData.moderatedUserMemberFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.moderatedUserMemberFav.name, testData.moderatedUserMemberFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Public library, user is a member, not favorite - [C291812]', async () => {
|
||||
it('[C291812] Public library, user is a member, not favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.publicUserMemberNotFav.name, testData.publicUserMemberNotFav.searchToolbarPrimary, testData.publicUserMemberNotFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.publicUserMemberNotFav.name, testData.publicUserMemberNotFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Private library, user is a member, not favorite - [C291813]', async () => {
|
||||
it('[C291813] Private library, user is a member, not favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.privateUserMemberNotFav.name, testData.privateUserMemberNotFav.searchToolbarPrimary, testData.privateUserMemberNotFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.privateUserMemberNotFav.name, testData.privateUserMemberNotFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Moderated library, user is a member, not favorite - [C291814]', async () => {
|
||||
it('[C291814] Moderated library, user is a member, not favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.moderatedUserMemberNotFav.name, testData.moderatedUserMemberNotFav.searchToolbarPrimary, testData.moderatedUserMemberNotFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.moderatedUserMemberNotFav.name, testData.moderatedUserMemberNotFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Public library, user not a member, favorite - [C326680]', async () => {
|
||||
it('[C326680] Public library, user not a member, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.publicNotMemberFav.name, testData.publicNotMemberFav.searchToolbarPrimary, testData.publicNotMemberFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.publicNotMemberFav.name, testData.publicNotMemberFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Moderated library, user not a member, favorite - [C326681]', async () => {
|
||||
it('[C326681] Moderated library, user not a member, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.moderatedNotMemberFav.name, testData.moderatedNotMemberFav.searchToolbarPrimary, testData.moderatedNotMemberFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.moderatedNotMemberFav.name, testData.moderatedNotMemberFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Public library, user not a member, not favorite - [C326682]', async () => {
|
||||
it('[C326682] Public library, user not a member, not favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.publicNotMemberNotFav.name, testData.publicNotMemberNotFav.searchToolbarPrimary, testData.publicNotMemberNotFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.publicNotMemberNotFav.name, testData.publicNotMemberNotFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Moderated library, user not a member, not favorite - [C326683]', async () => {
|
||||
it('[C326683] Moderated library, user not a member, not favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.moderatedNotMemberNotFav.name, testData.moderatedNotMemberNotFav.searchToolbarPrimary, testData.moderatedNotMemberNotFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.moderatedNotMemberNotFav.name, testData.moderatedNotMemberNotFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Moderated library, user requested to join, favorite - [C326685]', async () => {
|
||||
it('[C326685] Moderated library, user requested to join, favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.moderatedRequestedJoinFav.name, testData.moderatedRequestedJoinFav.searchToolbarPrimary, testData.moderatedRequestedJoinFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.moderatedRequestedJoinFav.name, testData.moderatedRequestedJoinFav.contextMenu);
|
||||
});
|
||||
|
||||
it('Moderated library, user requested to join, not favorite - [C326684]', async () => {
|
||||
it('[C326684] Moderated library, user requested to join, not favorite', async () => {
|
||||
await testUtil.checkToolbarActions(testData.moderatedRequestedJoinNotFav.name, testData.moderatedRequestedJoinNotFav.searchToolbarPrimary, testData.moderatedRequestedJoinNotFav.toolbarMore);
|
||||
await testUtil.checkContextMenu(testData.moderatedRequestedJoinNotFav.name, testData.moderatedRequestedJoinNotFav.contextMenu);
|
||||
});
|
||||
@@ -279,12 +279,12 @@ describe('Library actions : ', () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('single library - [C326686]', async () => {
|
||||
it('[C326686] single library', async () => {
|
||||
await testUtil.checkToolbarPrimary(testData.siteInTrash.name, testData.siteInTrash.trashActions);
|
||||
await testUtil.checkContextMenu(testData.siteInTrash.name, testData.siteInTrash.trashActions);
|
||||
});
|
||||
|
||||
it('multiple libraries - [C326687]', async () => {
|
||||
it('[C326687] multiple libraries', async () => {
|
||||
await testUtil.checkMultipleSelContextMenu([ testData.siteInTrash.name, testData.site2InTrash.name ], testData.trashActions);
|
||||
await testUtil.checkMultipleSelToolbarPrimary([ testData.siteInTrash.name, testData.site2InTrash.name ], testData.trashActions);
|
||||
});
|
||||
|
@@ -206,20 +206,20 @@ describe('Copy content', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Copy a file - [C280194]', async () => copyFile(file1, source, destinationRF));
|
||||
it('[C280194] Copy a file', async () => copyFile(file1, source, destinationRF));
|
||||
|
||||
it('Copy multiple items - [C280201]', async () => copyMultipleItems([file2, file3], source, destinationRF));
|
||||
it('[C280201] Copy multiple items', async () => copyMultipleItems([file2, file3], source, destinationRF));
|
||||
|
||||
it('Copy a file with a name that already exists on the destination - [C280196]', async () => copyFileWithNameThatAlreadyExists(existingFile, source, destinationRF));
|
||||
it('[C280196] Copy a file with a name that already exists on the destination', async () => copyFileWithNameThatAlreadyExists(existingFile, source, destinationRF));
|
||||
|
||||
it('Copy items into a library - [C291899]', async () => copyItemsIntoLibrary([file1, file2], source, folderSiteRF));
|
||||
it('[C291899] Copy items into a library', async () => copyItemsIntoLibrary([file1, file2], source, folderSiteRF));
|
||||
|
||||
it('Copy locked file - [C280198]', async () => copyLockedFile(fileLocked1, source, destinationRF, () => {
|
||||
it('[C280198] Copy locked file', async () => copyLockedFile(fileLocked1, source, destinationRF, () => {
|
||||
locationId = sourceId;
|
||||
destinationId = destinationIdRF;
|
||||
}));
|
||||
|
||||
it('Undo copy of files - [C280202]', async () => undoCopyFile(file4, source, destinationRF));
|
||||
it('[C280202] Undo copy of files', async () => undoCopyFile(file4, source, destinationRF));
|
||||
|
||||
});
|
||||
|
||||
@@ -236,38 +236,38 @@ describe('Copy content', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Copy a file - [C217135]', async () => copyFile(file1, '', destinationPF));
|
||||
it('[C217135] Copy a file', async () => copyFile(file1, '', destinationPF));
|
||||
|
||||
it('Copy a folder with content - [C291888]', async () => copyFolderWithContent(folder1, '', destinationPF));
|
||||
it('[C291888] Copy a folder with content', async () => copyFolderWithContent(folder1, '', destinationPF));
|
||||
|
||||
it('Copy multiple items - [C291889]', async () => copyMultipleItems([file2, file3], '', destinationPF));
|
||||
it('[C291889] Copy multiple items', async () => copyMultipleItems([file2, file3], '', destinationPF));
|
||||
|
||||
it('Copy a file with a name that already exists on the destination - [C217137]', async () => copyFileWithNameThatAlreadyExists(existingFile, '', destinationPF));
|
||||
it('[C217137] Copy a file with a name that already exists on the destination', async () => copyFileWithNameThatAlreadyExists(existingFile, '', destinationPF));
|
||||
|
||||
it('Copy a folder with a name that already exists on the destination - [C217138]', async () => copyFolderWithNameThatAlreadyExists(existingFolder, '', destinationPF));
|
||||
it('[C217138] Copy a folder with a name that already exists on the destination', async () => copyFolderWithNameThatAlreadyExists(existingFolder, '', destinationPF));
|
||||
|
||||
it('Copy items into a library - [C280282]', async () => copyItemsIntoLibrary([file1, folder1], '', folderSitePF));
|
||||
it('[C280282] Copy items into a library', async () => copyItemsIntoLibrary([file1, folder1], '', folderSitePF));
|
||||
|
||||
it('Copy locked file - [C217139]', async () => copyLockedFile(fileLocked1, '', destinationPF, () => {
|
||||
it('[C217139] Copy locked file', async () => copyLockedFile(fileLocked1, '', destinationPF, () => {
|
||||
locationId = sourceId;
|
||||
destinationId = destinationIdPF;
|
||||
}));
|
||||
|
||||
it('Copy folder that contains locked file - [C217140]', async () => copyFolderThatContainsLockedFile(folderWithLockedFiles, '', destinationPF, () => {
|
||||
it('[C217140] Copy folder that contains locked file', async () => copyFolderThatContainsLockedFile(folderWithLockedFiles, '', destinationPF, () => {
|
||||
locationId = folderWithLockedFilesId;
|
||||
destinationId = destinationIdPF;
|
||||
}));
|
||||
|
||||
it('Undo copy of files - [C217171]', async () => undoCopyFile(file4, '', destinationPF));
|
||||
it('[C217171] Undo copy of files', async () => undoCopyFile(file4, '', destinationPF));
|
||||
|
||||
it('Undo copy of folders - [C217172]', async () => undoCopyFolder(folder2, '', destinationPF));
|
||||
it('[C217172] Undo copy of folders', async () => undoCopyFolder(folder2, '', destinationPF));
|
||||
|
||||
it('Undo copy of a file when a file with same name already exists on the destination - [C217173]', async () => undoCopyFileWithExistingName(fileInFolder, '', folder2, async () => {
|
||||
it('[C217173] Undo copy of a file when a file with same name already exists on the destination', async () => undoCopyFileWithExistingName(fileInFolder, '', folder2, async () => {
|
||||
await dataTable.doubleClickOnRowByName(folder1);
|
||||
await dataTable.waitForHeader();
|
||||
}));
|
||||
|
||||
it('Undo copy of a folder when a folder with same name already exists on the destination - [C217174]', async () => undoCopyFolderWithExistingName(folderExisting, '', destinationPF));
|
||||
it('[C217174] Undo copy of a folder when a folder with same name already exists on the destination', async () => undoCopyFolderWithExistingName(folderExisting, '', destinationPF));
|
||||
|
||||
});
|
||||
|
||||
@@ -283,20 +283,20 @@ describe('Copy content', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Copy a file - [C280206]', async () => copyFile(file1, source, destinationSF));
|
||||
it('[C280206] Copy a file', async () => copyFile(file1, source, destinationSF));
|
||||
|
||||
it('Copy multiple items - [C280213]', async () => copyMultipleItems([file2, file3], source, destinationSF));
|
||||
it('[C280213] Copy multiple items', async () => copyMultipleItems([file2, file3], source, destinationSF));
|
||||
|
||||
it('Copy a file with a name that already exists on the destination - [C280208]', async () => copyFileWithNameThatAlreadyExists(existingFile, source, destinationSF));
|
||||
it('[C280208] Copy a file with a name that already exists on the destination', async () => copyFileWithNameThatAlreadyExists(existingFile, source, destinationSF));
|
||||
|
||||
it('Copy items into a library - [C291900]', async () => copyItemsIntoLibrary([file1, file2], source, folderSiteSF));
|
||||
it('[C291900] Copy items into a library', async () => copyItemsIntoLibrary([file1, file2], source, folderSiteSF));
|
||||
|
||||
it('Copy locked file - [C280210]', async () => copyLockedFile(fileLocked1, source, destinationSF, () => {
|
||||
it('[C280210] Copy locked file', async () => copyLockedFile(fileLocked1, source, destinationSF, () => {
|
||||
locationId = sourceId;
|
||||
destinationId = destinationIdSF;
|
||||
}));
|
||||
|
||||
it('Undo copy of files - [C280214]', async () => undoCopyFile(file4, source, destinationSF));
|
||||
it('[C280214] Undo copy of files', async () => undoCopyFile(file4, source, destinationSF));
|
||||
|
||||
});
|
||||
|
||||
@@ -312,35 +312,35 @@ describe('Copy content', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Copy a file - [C280218]', async () => copyFile(file1, source, destinationFav));
|
||||
it('[C280218] Copy a file', async () => copyFile(file1, source, destinationFav));
|
||||
|
||||
it('Copy a folder with content - [C280219]', async () => copyFolderWithContent(folder1, source, destinationFav));
|
||||
it('[C280219] Copy a folder with content', async () => copyFolderWithContent(folder1, source, destinationFav));
|
||||
|
||||
it('Copy multiple items - [C280225]', async () => copyMultipleItems([file2, file3], source, destinationFav));
|
||||
it('[C280225] Copy multiple items', async () => copyMultipleItems([file2, file3], source, destinationFav));
|
||||
|
||||
it('Copy a file with a name that already exists on the destination - [C280220]', async () => copyFileWithNameThatAlreadyExists(existingFile, source, destinationFav));
|
||||
it('[C280220] Copy a file with a name that already exists on the destination', async () => copyFileWithNameThatAlreadyExists(existingFile, source, destinationFav));
|
||||
|
||||
it('Copy a folder with a name that already exists on the destination - [C280221]', async () => copyFolderWithNameThatAlreadyExists(existingFolder, source, destinationFav));
|
||||
it('[C280221] Copy a folder with a name that already exists on the destination', async () => copyFolderWithNameThatAlreadyExists(existingFolder, source, destinationFav));
|
||||
|
||||
it('Copy items into a library - [C291901]', async () => copyItemsIntoLibrary([file1, folder1], source, folderSiteFav));
|
||||
it('[C291901] Copy items into a library', async () => copyItemsIntoLibrary([file1, folder1], source, folderSiteFav));
|
||||
|
||||
it('Copy locked file - [C280222]', async () => copyLockedFile(fileLocked1, source, destinationFav, () => {
|
||||
it('[C280222] Copy locked file', async () => copyLockedFile(fileLocked1, source, destinationFav, () => {
|
||||
locationId = sourceId;
|
||||
destinationId = destinationIdFav;
|
||||
}));
|
||||
|
||||
it('Copy folder that contains locked file - [C280223]', async () => copyFolderThatContainsLockedFile(folderWithLockedFiles, source, destinationFav, () => {
|
||||
it('[C280223] Copy folder that contains locked file', async () => copyFolderThatContainsLockedFile(folderWithLockedFiles, source, destinationFav, () => {
|
||||
locationId = folderWithLockedFilesId;
|
||||
destinationId = destinationIdFav;
|
||||
}));
|
||||
|
||||
it('Undo copy of files - [C280226]', async () => undoCopyFile(file4, source, destinationFav));
|
||||
it('[C280226] Undo copy of files', async () => undoCopyFile(file4, source, destinationFav));
|
||||
|
||||
it('Undo copy of folders - [C280227]', async () => undoCopyFolder(folder2, source, destinationFav));
|
||||
it('[C280227] Undo copy of folders', async () => undoCopyFolder(folder2, source, destinationFav));
|
||||
|
||||
it('Undo copy of a file when a file with same name already exists on the destination - [C280228]', async () => undoCopyFileWithExistingName(fileInFolder, folder1, folder2));
|
||||
it('[C280228] Undo copy of a file when a file with same name already exists on the destination', async () => undoCopyFileWithExistingName(fileInFolder, folder1, folder2));
|
||||
|
||||
it('Undo copy of a folder when a folder with same name already exists on the destination - [C280229]', async () => undoCopyFolderWithExistingName(folderExisting, source, destinationFav));
|
||||
it('[C280229] Undo copy of a folder when a folder with same name already exists on the destination', async () => undoCopyFolderWithExistingName(folderExisting, source, destinationFav));
|
||||
|
||||
});
|
||||
|
||||
@@ -357,66 +357,66 @@ describe('Copy content', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Copy a file - [C306932]', async () => copyFile(file1, source, destinationSearch, async () => {
|
||||
it('[C306932] Copy a file', async () => copyFile(file1, source, destinationSearch, async () => {
|
||||
await searchInput.searchFor(file1);
|
||||
await dataTable.waitForBody();
|
||||
}));
|
||||
|
||||
it('Copy a folder with content - [C306943]', async () => copyFolderWithContent(folder1, source, destinationSearch, async () => {
|
||||
it('[C306943] Copy a folder with content', async () => copyFolderWithContent(folder1, source, destinationSearch, async () => {
|
||||
await searchInput.searchFor(folder1);
|
||||
await dataTable.waitForBody();
|
||||
}));
|
||||
|
||||
it('Copy multiple items - [C306944]', async () => copyMultipleItems([file2, file3], source, destinationSearch, async () => {
|
||||
it('[C306944] Copy multiple items', async () => copyMultipleItems([file2, file3], source, destinationSearch, async () => {
|
||||
await searchInput.searchFor('file');
|
||||
await dataTable.waitForBody();
|
||||
}));
|
||||
|
||||
it('Copy a file with a name that already exists on the destination - [C306933]', async () => copyFileWithNameThatAlreadyExists(existingFile, source, destinationSearch, async () => {
|
||||
it('[C306933] Copy a file with a name that already exists on the destination', async () => copyFileWithNameThatAlreadyExists(existingFile, source, destinationSearch, async () => {
|
||||
await searchInput.searchFor(existingFile);
|
||||
await dataTable.waitForBody();
|
||||
}));
|
||||
|
||||
it('Copy a folder with a name that already exists on the destination - [C306934]', async () => copyFolderWithNameThatAlreadyExists(existingFolder, source, destinationSearch, async () => {
|
||||
it('[C306934] Copy a folder with a name that already exists on the destination', async () => copyFolderWithNameThatAlreadyExists(existingFolder, source, destinationSearch, async () => {
|
||||
await searchInput.searchFor(existingFolder);
|
||||
await dataTable.waitForBody();
|
||||
}));
|
||||
|
||||
it('Copy items into a library - [C306942]', async () => copyItemsIntoLibrary([file1, file2], source, folderSiteSearch, async () => {
|
||||
it('[C306942] Copy items into a library', async () => copyItemsIntoLibrary([file1, file2], source, folderSiteSearch, async () => {
|
||||
await searchInput.searchFor('file');
|
||||
await dataTable.waitForBody();
|
||||
}));
|
||||
|
||||
it('Copy locked file - [C306935]', async () => copyLockedFile(fileLocked1, source, destinationSearch, async () => {
|
||||
it('[C306935] Copy locked file', async () => copyLockedFile(fileLocked1, source, destinationSearch, async () => {
|
||||
locationId = sourceId;
|
||||
destinationId = destinationIdSearch;
|
||||
await searchInput.searchFor(fileLocked1);
|
||||
await dataTable.waitForBody();
|
||||
}));
|
||||
|
||||
it('Copy folder that contains locked file - [C306936]', async () => copyFolderThatContainsLockedFile(folderWithLockedFiles, source, destinationSearch, async () => {
|
||||
it('[C306936] Copy folder that contains locked file', async () => copyFolderThatContainsLockedFile(folderWithLockedFiles, source, destinationSearch, async () => {
|
||||
locationId = folderWithLockedFilesId;
|
||||
destinationId = destinationIdSearch;
|
||||
await searchInput.searchFor(folderWithLockedFiles);
|
||||
await dataTable.waitForBody();
|
||||
}));
|
||||
|
||||
it('Undo copy of files - [C306938]', async () => undoCopyFile(file4, source, destinationSearch, async () => {
|
||||
it('[C306938] Undo copy of files', async () => undoCopyFile(file4, source, destinationSearch, async () => {
|
||||
await searchInput.searchFor(file4);
|
||||
await dataTable.waitForBody();
|
||||
}));
|
||||
|
||||
it('Undo copy of folders - [C306939]', async () => undoCopyFolder(folder2, source, destinationSearch, async () => {
|
||||
it('[C306939] Undo copy of folders', async () => undoCopyFolder(folder2, source, destinationSearch, async () => {
|
||||
await searchInput.searchFor(folder2);
|
||||
await dataTable.waitForBody();
|
||||
}));
|
||||
|
||||
it('Undo copy of a file when a file with same name already exists on the destination - [C306940]', async () => undoCopyFileWithExistingName(fileInFolder, folder1, folder2, async () => {
|
||||
it('[C306940] Undo copy of a file when a file with same name already exists on the destination', async () => undoCopyFileWithExistingName(fileInFolder, folder1, folder2, async () => {
|
||||
await searchInput.searchFor(fileInFolder);
|
||||
await dataTable.waitForBody();
|
||||
}));
|
||||
|
||||
it('Undo copy of a folder when a folder with same name already exists on the destination - [C306941]', async () => undoCopyFolderWithExistingName(folderExisting, source, destinationSearch, async () => {
|
||||
it('[C306941] Undo copy of a folder when a folder with same name already exists on the destination', async () => undoCopyFolderWithExistingName(folderExisting, source, destinationSearch, async () => {
|
||||
await searchInput.searchFor(folderExisting);
|
||||
await dataTable.waitForBody();
|
||||
}));
|
||||
|
@@ -138,7 +138,7 @@ describe('Destination picker dialog : ', () => {
|
||||
await contentNodeSelector.waitForDialogToOpen();
|
||||
});
|
||||
|
||||
it('Dialog UI - [C263875]', async () => {
|
||||
it('[C263875] Dialog UI', async () => {
|
||||
expect(await contentNodeSelector.getTitle()).toEqual(`Copy '${file}' to...`);
|
||||
expect(await contentNodeSelector.isSearchInputPresent()).toBe(true, 'Search input is not displayed');
|
||||
expect(await contentNodeSelector.isSelectLocationDropdownDisplayed()).toBe(true, 'Select Location dropdown not displayed');
|
||||
@@ -148,7 +148,7 @@ describe('Destination picker dialog : ', () => {
|
||||
expect(await contentNodeSelector.isCancelButtonEnabled()).toBe(true, 'Cancel button is not enabled');
|
||||
});
|
||||
|
||||
it('Files are not displayed - [C263880]', async () => {
|
||||
it('[C263880] Files are not displayed', async () => {
|
||||
await contentNodeSelector.selectLocation('Personal Files');
|
||||
expect(await contentNodeSelector.dataTable.isItemPresent(destination)).toBe(true, 'destination folder not displayed');
|
||||
await contentNodeSelector.dataTable.doubleClickOnRowByName(destination);
|
||||
@@ -156,7 +156,7 @@ describe('Destination picker dialog : ', () => {
|
||||
expect(await contentNodeSelector.dataTable.isItemPresent(fileInDestination)).toBe(false, 'file is displayed');
|
||||
});
|
||||
|
||||
it('Folder links are not displayed - [C263881]', async() => {
|
||||
it('[C263881] Folder links are not displayed', async() => {
|
||||
await contentNodeSelector.selectLocation('Personal Files');
|
||||
await contentNodeSelector.dataTable.doubleClickOnRowByName(destination);
|
||||
|
||||
@@ -165,18 +165,18 @@ describe('Destination picker dialog : ', () => {
|
||||
expect(await contentNodeSelector.dataTable.isItemPresent(folderLink)).toBe(false, 'Link to folder is displayed');
|
||||
});
|
||||
|
||||
it('User can see his Libraries - [C263885]', async () => {
|
||||
it('[C263885] User can see his Libraries', async () => {
|
||||
await contentNodeSelector.selectLocation('File Libraries');
|
||||
expect(await contentNodeSelector.dataTable.isItemPresent(site)).toBe(true, 'user site is not displayed');
|
||||
});
|
||||
|
||||
it('Search - No results displayed - [C263889]', async () => {
|
||||
it('[C263889] Search - No results displayed', async () => {
|
||||
await contentNodeSelector.searchFor('nonexistent-folder');
|
||||
expect(await contentNodeSelector.dataTable.isEmpty()).toBe(true, 'datatable not empty');
|
||||
expect(await contentNodeSelector.dataTable.getEmptyListText()).toEqual('No results found');
|
||||
});
|
||||
|
||||
it('Search - results found - [C263888]', async () => {
|
||||
it('[C263888] Search - results found', async () => {
|
||||
await contentNodeSelector.searchFor(searchFolder);
|
||||
expect(await contentNodeSelector.dataTable.isItemPresent(searchFolder, username)).toBe(true, 'folder from Personal Files not displayed');
|
||||
expect(await contentNodeSelector.dataTable.isItemPresent(searchFolder, site)).toBe(true, 'folder from site not displayed');
|
||||
@@ -194,7 +194,7 @@ describe('Destination picker dialog : ', () => {
|
||||
await contentNodeSelector.waitForDialogToOpen();
|
||||
});
|
||||
|
||||
it('Dialog title - multiple selection - [C263879]', async () => {
|
||||
it('[C263879] Dialog title - multiple selection', async () => {
|
||||
expect(await contentNodeSelector.getTitle()).toEqual(`Copy 2 items to...`);
|
||||
});
|
||||
});
|
||||
@@ -210,28 +210,28 @@ describe('Destination picker dialog : ', () => {
|
||||
await contentNodeSelector.waitForDialogToOpen();
|
||||
});
|
||||
|
||||
it('Personal Files breadcrumb - main node - [C263890]', async () => {
|
||||
it('[C263890] Personal Files breadcrumb - main node', async () => {
|
||||
await contentNodeSelector.selectLocation('Personal Files');
|
||||
expect(await contentNodeSelector.breadcrumb.getCurrentFolderName()).toEqual('Personal Files');
|
||||
});
|
||||
|
||||
it('File Libraries breadcrumb - main node - [C263891]', async () => {
|
||||
it('[C263891] File Libraries breadcrumb - main node', async () => {
|
||||
await contentNodeSelector.selectLocation('File Libraries');
|
||||
expect(await contentNodeSelector.breadcrumb.getCurrentFolderName()).toEqual('File Libraries');
|
||||
});
|
||||
|
||||
it('Search results breadcrumb - [C263899]', async () => {
|
||||
it('[C263899] Search results breadcrumb', async () => {
|
||||
await contentNodeSelector.searchFor(searchFolder);
|
||||
expect(await contentNodeSelector.getToolbarTitle()).toEqual('Search results');
|
||||
});
|
||||
|
||||
it('Search results breadcrumb when selecting a folder - [C263900]', async () => {
|
||||
it('[C263900] Search results breadcrumb when selecting a folder', async () => {
|
||||
await contentNodeSelector.searchFor(searchFolder);
|
||||
await contentNodeSelector.dataTable.selectItem(searchFolder, site);
|
||||
expect(await contentNodeSelector.breadcrumb.getCurrentFolderName()).toEqual(searchFolder);
|
||||
});
|
||||
|
||||
it('Personal Files breadcrumb - folder structure - [C263897]', async () => {
|
||||
it('[C263897] Personal Files breadcrumb - folder structure', async () => {
|
||||
await contentNodeSelector.selectLocation('Personal Files');
|
||||
await contentNodeSelector.dataTable.doubleClickOnRowByName(destination);
|
||||
expect(await contentNodeSelector.breadcrumb.getCurrentFolderName()).toEqual(destination);
|
||||
@@ -245,7 +245,7 @@ describe('Destination picker dialog : ', () => {
|
||||
expect(await contentNodeSelector.breadcrumb.getPathItems()).toEqual([searchSubFolder1, searchFolder, destination, 'Personal Files']);
|
||||
});
|
||||
|
||||
it('File Libraries breadcrumb - folder structure - [C263898]', async () => {
|
||||
it('[C263898] File Libraries breadcrumb - folder structure', async () => {
|
||||
await contentNodeSelector.selectLocation('File Libraries');
|
||||
await contentNodeSelector.dataTable.doubleClickOnRowByName(site);
|
||||
expect(await contentNodeSelector.breadcrumb.getCurrentFolderName()).toEqual(site);
|
||||
@@ -261,7 +261,7 @@ describe('Destination picker dialog : ', () => {
|
||||
expect(await contentNodeSelector.breadcrumb.getPathItems()).toEqual([searchSubFolder1, searchFolder, site, 'File Libraries']);
|
||||
});
|
||||
|
||||
it('Select a node from the breadcrumb path - [C263895]', async () => {
|
||||
it('[C263895] Select a node from the breadcrumb path', async () => {
|
||||
await contentNodeSelector.selectLocation('Personal Files');
|
||||
await contentNodeSelector.dataTable.doubleClickOnRowByName(destination);
|
||||
await contentNodeSelector.dataTable.doubleClickOnRowByName(searchFolder);
|
||||
@@ -277,7 +277,7 @@ describe('Destination picker dialog : ', () => {
|
||||
|
||||
describe('Users with different permissions', () => {
|
||||
|
||||
it('Consumer user cannot select the folder as destination - [C263876]', async () => {
|
||||
it('[C263876] Consumer user cannot select the folder as destination', async () => {
|
||||
await loginPage.loginWith(consumer);
|
||||
await dataTable.selectItem(file);
|
||||
await toolbar.clickMoreActionsCopy();
|
||||
@@ -291,7 +291,7 @@ describe('Destination picker dialog : ', () => {
|
||||
expect(await contentNodeSelector.isCopyButtonEnabled()).toBe(false, 'Copy should be disabled');
|
||||
});
|
||||
|
||||
it('Contributor user can select the folder as destination - [C263877]', async () => {
|
||||
it('[C263877] Contributor user can select the folder as destination', async () => {
|
||||
await loginPage.loginWith(contributor);
|
||||
await dataTable.selectItem(file);
|
||||
await toolbar.clickMoreActionsCopy();
|
||||
@@ -305,7 +305,7 @@ describe('Destination picker dialog : ', () => {
|
||||
expect(await contentNodeSelector.isCopyButtonEnabled()).toBe(true, 'Copy should be disabled');
|
||||
});
|
||||
|
||||
it('Collaborator user can select the folder as destination - [C263878]', async () => {
|
||||
it('[C263878] Collaborator user can select the folder as destination', async () => {
|
||||
await loginPage.loginWith(collaborator);
|
||||
await dataTable.selectItem(file);
|
||||
await toolbar.clickMoreActionsCopy();
|
||||
@@ -319,7 +319,7 @@ describe('Destination picker dialog : ', () => {
|
||||
expect(await contentNodeSelector.isCopyButtonEnabled()).toBe(true, 'Copy should be disabled');
|
||||
});
|
||||
|
||||
it('Admin user - Personal Files breadcrumb main node - [C263892]', async () => {
|
||||
it('[C263892] Admin user - Personal Files breadcrumb main node', async () => {
|
||||
await loginPage.loginWithAdmin();
|
||||
await dataTable.selectItem(adminFolder);
|
||||
await toolbar.clickMoreActionsCopy();
|
||||
|
@@ -150,7 +150,7 @@ describe('Move content', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Move a file - [C217316]', async () => {
|
||||
it('[C217316] Move a file', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -168,7 +168,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(file1)).toBe(true, `${file1} not present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move a folder with content - [C217317]', async () => {
|
||||
it('[C217317] Move a folder with content', async () => {
|
||||
await dataTable.selectItem(folder1);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -190,7 +190,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(fileInFolder)).toBe(true, `${fileInFolder} is not present in parent folder`);
|
||||
});
|
||||
|
||||
it('Move multiple items - [C291958]', async () => {
|
||||
it('[C291958] Move multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([file2, file3]);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -210,7 +210,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(file3)).toBe(true, `${file3} not present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move a file with a name that already exists on the destination - [C217318]', async () => {
|
||||
it('[C217318] Move a file with a name that already exists on the destination', async () => {
|
||||
await dataTable.selectItem(existingFile);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -229,7 +229,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(`${existingFile}-1.txt`)).toBe(false, `${existingFile}-1.txt is present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move a folder with a name that already exists on the destination - [C217319]', async () => {
|
||||
it('[C217319] Move a folder with a name that already exists on the destination', async () => {
|
||||
await dataTable.selectItem(existingFolder);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -250,7 +250,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(file3InFolder)).toBe(true, `${file3InFolder} not present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move items into a library - [C291969]', async () => {
|
||||
it('[C291969] Move items into a library', async () => {
|
||||
await dataTable.selectMultipleItems([file4, folder2]);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('File Libraries');
|
||||
@@ -309,7 +309,7 @@ describe('Move content', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Move a file - [C280230]', async () => {
|
||||
it('[C280230] Move a file', async () => {
|
||||
await dataTable.selectItem(file1, sourceRF);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -328,7 +328,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(file1)).toBe(true, `${file1} not present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move multiple items - [C280237]', async () => {
|
||||
it('[C280237] Move multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([file2, file3], sourceRF);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -350,7 +350,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(file3)).toBe(true, `${file3} not present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move a file with a name that already exists on the destination - [C291970]', async () => {
|
||||
it('[C291970] Move a file with a name that already exists on the destination', async () => {
|
||||
await dataTable.selectItem(existingFile, sourceRF);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -370,7 +370,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(`${existingFile}-1.txt`)).toBe(false, `${existingFile}-1.txt is present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move items into a library - [C291971]', async () => {
|
||||
it('[C291971] Move items into a library', async () => {
|
||||
await dataTable.selectItem(file4, sourceRF);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('File Libraries');
|
||||
@@ -431,7 +431,7 @@ describe('Move content', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Move a file - [C280243]', async () => {
|
||||
it('[C280243] Move a file', async () => {
|
||||
await dataTable.selectItem(file1, sourceSF);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -450,7 +450,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(file1)).toBe(true, `${file1} not present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move multiple items - [C280250]', async () => {
|
||||
it('[C280250] Move multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([file2, file3], sourceSF);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -472,7 +472,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(file3)).toBe(true, `${file3} not present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move a file with a name that already exists on the destination - [C291977]', async () => {
|
||||
it('[C291977] Move a file with a name that already exists on the destination', async () => {
|
||||
await dataTable.selectItem(existingFile, sourceSF);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -492,7 +492,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(`${existingFile}-1.txt`)).toBe(false, `${existingFile}-1.txt not present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move items into a library - [C291978]', async () => {
|
||||
it('[C291978] Move items into a library', async () => {
|
||||
await dataTable.selectItem(file4, sourceSF);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('File Libraries');
|
||||
@@ -576,7 +576,7 @@ describe('Move content', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Move a file - [C280256]', async () => {
|
||||
it('[C280256] Move a file', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -595,7 +595,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(file1)).toBe(true, `${file1} not present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move a folder with content - [C280257]', async () => {
|
||||
it('[C280257] Move a folder with content', async () => {
|
||||
await dataTable.selectItem(folder1);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -618,7 +618,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(fileInFolder)).toBe(true, `${fileInFolder} is not present in parent folder`);
|
||||
});
|
||||
|
||||
it('Move multiple items - [C280258]', async () => {
|
||||
it('[C280258] Move multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([file2, file3]);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -640,7 +640,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(file3)).toBe(true, `${file3} not present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move a file with a name that already exists on the destination - [C280263]', async () => {
|
||||
it('[C280263] Move a file with a name that already exists on the destination', async () => {
|
||||
await dataTable.selectItem(existingFile);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -660,7 +660,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(`${existingFile}-1.txt`)).toBe(false, `${existingFile}-1.txt is present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move a folder with a name that already exists on the destination - [C280259]', async () => {
|
||||
it('[C280259] Move a folder with a name that already exists on the destination', async () => {
|
||||
await dataTable.selectItem(existingFolder);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('Personal Files');
|
||||
@@ -682,7 +682,7 @@ describe('Move content', () => {
|
||||
expect(await dataTable.isItemPresent(file3InFolder)).toBe(true, `${file3InFolder} not present in destination folder`);
|
||||
});
|
||||
|
||||
it('Move items into a library - [C291979]', async () => {
|
||||
it('[C291979] Move items into a library', async () => {
|
||||
await dataTable.selectMultipleItems([file4, folder2], sourceFav);
|
||||
await toolbar.clickMoreActionsMove();
|
||||
await moveDialog.selectLocation('File Libraries');
|
||||
|
@@ -103,7 +103,7 @@ describe('Create file from template', () => {
|
||||
await page.closeOpenDialogs();
|
||||
});
|
||||
|
||||
it('Select template - dialog UI - when no templates exist in the repo - [C325049]', async () => {
|
||||
it('[C325049] Select template - dialog UI - when no templates exist in the repo', async () => {
|
||||
await sidenav.openCreateFileFromTemplateDialog();
|
||||
await selectTemplateDialog.waitForDialogToOpen();
|
||||
|
||||
@@ -152,7 +152,7 @@ describe('Create file from template', () => {
|
||||
await selectTemplateDialog.waitForDialogToOpen();
|
||||
});
|
||||
|
||||
it('Select template - dialog UI - with existing templates - [C325043]', async () => {
|
||||
it('[C325043] Select template - dialog UI - with existing templates', async () => {
|
||||
expect(await selectTemplateDialog.getTitle()).toEqual('Select a document template');
|
||||
expect(await selectTemplateDialog.dataTable.isEmpty()).toBe(false, 'Datatable is empty');
|
||||
expect(await selectTemplateDialog.dataTable.isItemPresent(templatesFolder1)).toBe(true, 'template folder not displayed');
|
||||
@@ -164,11 +164,11 @@ describe('Create file from template', () => {
|
||||
expect(await selectTemplateDialog.isCancelButtonEnabled()).toBe(true, 'Cancel button is not enabled');
|
||||
});
|
||||
|
||||
it(`Templates don't appear if user doesn't have permissions to see them - [C325044]`, async () => {
|
||||
it(`[C325044] Templates don't appear if user doesn't have permissions to see them`, async () => {
|
||||
expect(await selectTemplateDialog.dataTable.isItemPresent(restrictedTemplateFolder)).toBe(false, 'restricted templates folder is displayed');
|
||||
});
|
||||
|
||||
it('Navigate through the templates list with folder hierarchy - [C325045]', async () => {
|
||||
it('[C325045] Navigate through the templates list with folder hierarchy', async () => {
|
||||
expect(await selectTemplateDialog.dataTable.isItemPresent(templatesFolder2)).toBe(true, 'template folder not displayed');
|
||||
|
||||
await selectTemplateDialog.dataTable.doubleClickOnRowByName(templatesFolder2);
|
||||
@@ -189,7 +189,7 @@ describe('Create file from template', () => {
|
||||
expect(await selectTemplateDialog.breadcrumb.getPathItems()).toEqual([ templatesFolder2, 'Node Templates' ]);
|
||||
});
|
||||
|
||||
it(`Templates list doesn't allow multiple selection - [C325047]`, async () => {
|
||||
it(`[C325047] Templates list doesn't allow multiple selection`, async () => {
|
||||
expect(await selectTemplateDialog.dataTable.getSelectedRowsCount()).toEqual(0, 'Incorrect number of selected rows');
|
||||
|
||||
await selectTemplateDialog.dataTable.selectItem(template1InRootFolder);
|
||||
@@ -204,11 +204,11 @@ describe('Create file from template', () => {
|
||||
expect(await selectTemplateDialog.dataTable.getSelectedRowsNames()).toEqual([ template2InRootFolder ], 'Incorrect selected item');
|
||||
});
|
||||
|
||||
it('Links to files are not displayed - [C325050]', async () => {
|
||||
it('[C325050] Links to files are not displayed', async () => {
|
||||
expect(await selectTemplateDialog.dataTable.isItemPresent(link)).toBe(false, 'Link to file is displayed');
|
||||
});
|
||||
|
||||
it('Cancel the Select template dialog - [C325048]', async () => {
|
||||
it('[C325048] Cancel the Select template dialog', async () => {
|
||||
expect(await selectTemplateDialog.isCancelButtonEnabled()).toBe(true, 'Cancel button is not enabled');
|
||||
|
||||
await selectTemplateDialog.clickCancel();
|
||||
@@ -216,7 +216,7 @@ describe('Create file from template', () => {
|
||||
expect(await selectTemplateDialog.isDialogOpen()).toBe(false, 'Select Template dialog is open');
|
||||
});
|
||||
|
||||
it('Next button is disabled when selecting a folder - [C216339]', async () => {
|
||||
it('[C216339] Next button is disabled when selecting a folder', async () => {
|
||||
expect(await selectTemplateDialog.isNextButtonEnabled()).toBe(false, 'Next button is enabled');
|
||||
|
||||
await selectTemplateDialog.dataTable.selectItem(templatesFolder1);
|
||||
@@ -234,7 +234,7 @@ describe('Create file from template', () => {
|
||||
await createFromTemplateDialog.waitForDialogToOpen();
|
||||
});
|
||||
|
||||
it('Create file from template - dialog UI - [C325020]', async () => {
|
||||
it('[C325020] Create file from template - dialog UI', async () => {
|
||||
expect(await createFromTemplateDialog.getTitle()).toEqual(`Create new document from '${template1InRootFolder}'`);
|
||||
expect(await createFromTemplateDialog.isNameFieldDisplayed()).toBe(true, 'Name field not displayed');
|
||||
expect(await createFromTemplateDialog.isTitleFieldDisplayed()).toBe(true, 'Title field not displayed');
|
||||
@@ -243,7 +243,7 @@ describe('Create file from template', () => {
|
||||
expect(await createFromTemplateDialog.isCreateButtonEnabled()).toBe(true, 'Create button is not enabled');
|
||||
});
|
||||
|
||||
it('File name is required - [C325031]', async () => {
|
||||
it('[C325031] File name is required', async () => {
|
||||
expect(await createFromTemplateDialog.getName()).toEqual(template1InRootFolder);
|
||||
await createFromTemplateDialog.deleteNameWithBackspace();
|
||||
|
||||
@@ -251,7 +251,7 @@ describe('Create file from template', () => {
|
||||
expect(await createFromTemplateDialog.isCreateButtonEnabled()).toBe(false, 'Create button is not disabled');
|
||||
});
|
||||
|
||||
it('Special characters in file name - [C325032]', async () => {
|
||||
it('[C325032] Special characters in file name', async () => {
|
||||
const namesWithSpecialChars = [ 'a*a', 'a"a', 'a<a', 'a>a', `a\\a`, 'a/a', 'a?a', 'a:a', 'a|a' ];
|
||||
|
||||
for (const name of namesWithSpecialChars) {
|
||||
@@ -261,21 +261,21 @@ describe('Create file from template', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('File name ending with a dot - [C325033]', async () => {
|
||||
it('[C325033] File name ending with a dot', async () => {
|
||||
await createFromTemplateDialog.enterName('file-name.');
|
||||
|
||||
expect(await createFromTemplateDialog.isCreateButtonEnabled()).toBe(false, 'Create button is not disabled');
|
||||
expect(await createFromTemplateDialog.getValidationMessage()).toMatch(`Name can't end with a period .`);
|
||||
});
|
||||
|
||||
it('File name containing only spaces - [C325034]', async () => {
|
||||
it('[C325034] File name containing only spaces', async () => {
|
||||
await createFromTemplateDialog.enterName(' ');
|
||||
|
||||
expect(await createFromTemplateDialog.isCreateButtonEnabled()).toBe(false, 'Create button is not disabled');
|
||||
expect(await createFromTemplateDialog.getValidationMessage()).toMatch(`Name can't contain only spaces`);
|
||||
});
|
||||
|
||||
it('Title too long - [C290146]', async () => {
|
||||
it('[C290146] Title too long', async () => {
|
||||
await createFromTemplateDialog.enterTitle(Utils.string257);
|
||||
await Utils.pressTab();
|
||||
|
||||
@@ -283,7 +283,7 @@ describe('Create file from template', () => {
|
||||
expect(await createFromTemplateDialog.getValidationMessage()).toMatch(`Use 256 characters or less for title`);
|
||||
});
|
||||
|
||||
it('Description too long - [C290142]', async () => {
|
||||
it('[C290142] Description too long', async () => {
|
||||
await createFromTemplateDialog.enterDescription(Utils.string513);
|
||||
await Utils.pressTab();
|
||||
|
||||
@@ -303,7 +303,7 @@ describe('Create file from template', () => {
|
||||
await createFromTemplateDialog.waitForDialogToOpen();
|
||||
});
|
||||
|
||||
it('Create a file from a template - with a new Name - [C325030]', async () => {
|
||||
it('[C325030] Create a file from a template - with a new Name', async () => {
|
||||
await createFromTemplateDialog.enterName(file1.name);
|
||||
await createFromTemplateDialog.clickCreate();
|
||||
await createFromTemplateDialog.waitForDialogToClose();
|
||||
@@ -312,7 +312,7 @@ describe('Create file from template', () => {
|
||||
expect(await page.dataTable.isItemPresent(file1.name)).toBe(true, 'File not displayed in list view');
|
||||
});
|
||||
|
||||
it('Create a file from a template - with a Name, Title and Description - [C325026]', async () => {
|
||||
it('[C325026] Create a file from a template - with a Name, Title and Description', async () => {
|
||||
await createFromTemplateDialog.enterName(file2.name);
|
||||
await createFromTemplateDialog.enterTitle(file2.title);
|
||||
await createFromTemplateDialog.enterDescription(file2.description);
|
||||
@@ -327,7 +327,7 @@ describe('Create file from template', () => {
|
||||
expect(title).toEqual(file2.title);
|
||||
});
|
||||
|
||||
it('Create a file with a duplicate name - [C325028]', async () => {
|
||||
it('[C325028] Create a file with a duplicate name', async () => {
|
||||
await createFromTemplateDialog.enterName(duplicateFileName);
|
||||
await createFromTemplateDialog.clickCreate();
|
||||
|
||||
@@ -335,7 +335,7 @@ describe('Create file from template', () => {
|
||||
expect(await createFromTemplateDialog.isDialogOpen()).toBe(true, 'dialog is not present');
|
||||
});
|
||||
|
||||
it('Cancel file creation - [C325027]', async () => {
|
||||
it('[C325027] Cancel file creation', async () => {
|
||||
await createFromTemplateDialog.enterName('test');
|
||||
await createFromTemplateDialog.clickCancel();
|
||||
|
||||
@@ -343,7 +343,7 @@ describe('Create file from template', () => {
|
||||
expect(await page.dataTable.isItemPresent('test')).toBe(false, 'File should not appear in the list');
|
||||
});
|
||||
|
||||
it('Trim spaces from file Name - [C325042]', async () => {
|
||||
it('[C325042] Trim spaces from file Name', async () => {
|
||||
await createFromTemplateDialog.enterName(nameWithSpaces);
|
||||
await createFromTemplateDialog.clickCreate();
|
||||
await createFromTemplateDialog.waitForDialogToClose();
|
||||
@@ -366,7 +366,7 @@ describe('Create file from template', () => {
|
||||
await createFromTemplateDialog.waitForDialogToOpen();
|
||||
});
|
||||
|
||||
it('Create a file from a template - with Name, Title and Description - [C325023]', async () => {
|
||||
it('[C325023] Create a file from a template - with Name, Title and Description', async () => {
|
||||
await createFromTemplateDialog.enterName(fileSite.name);
|
||||
await createFromTemplateDialog.enterTitle(fileSite.title);
|
||||
await createFromTemplateDialog.enterDescription(fileSite.description);
|
||||
@@ -381,7 +381,7 @@ describe('Create file from template', () => {
|
||||
expect(title).toEqual(fileSite.title);
|
||||
});
|
||||
|
||||
it('Cancel file creation - [C325024]', async () => {
|
||||
it('[C325024] Cancel file creation', async () => {
|
||||
await createFromTemplateDialog.enterName('test');
|
||||
await createFromTemplateDialog.clickCancel();
|
||||
|
||||
@@ -389,7 +389,7 @@ describe('Create file from template', () => {
|
||||
expect(await page.dataTable.isItemPresent('test')).toBe(false, 'File should not appear in the list');
|
||||
});
|
||||
|
||||
it('Create a file with a duplicate name - [C325025]', async () => {
|
||||
it('[C325025] Create a file with a duplicate name', async () => {
|
||||
await createFromTemplateDialog.enterName(duplicateFileSite);
|
||||
await createFromTemplateDialog.clickCreate();
|
||||
|
||||
|
@@ -140,7 +140,7 @@ describe('Create folder from template', () => {
|
||||
await selectTemplateDialog.waitForDialogToOpen();
|
||||
});
|
||||
|
||||
it('Select template - dialog UI - with existing templates - [C325147]', async () => {
|
||||
it('[C325147] Select template - dialog UI - with existing templates', async () => {
|
||||
expect(await selectTemplateDialog.getTitle()).toEqual('Select a folder template');
|
||||
expect(await selectTemplateDialog.dataTable.isEmpty()).toBe(false, 'Datatable is empty');
|
||||
expect(await selectTemplateDialog.dataTable.isItemPresent(templateFolder1)).toBe(true, 'template folder not displayed');
|
||||
@@ -151,11 +151,11 @@ describe('Create folder from template', () => {
|
||||
expect(await selectTemplateDialog.isCancelButtonEnabled()).toBe(true, 'Cancel button is not enabled');
|
||||
});
|
||||
|
||||
it(`Templates don't appear if user doesn't have permissions to see them - [C325148]`, async () => {
|
||||
it(`[C325148] Templates don't appear if user doesn't have permissions to see them`, async () => {
|
||||
expect(await selectTemplateDialog.dataTable.isItemPresent(restrictedTemplateFolder)).toBe(false, 'restricted template folder is displayed');
|
||||
});
|
||||
|
||||
it('Navigate through the templates list with folder hierarchy - [C325149]', async () => {
|
||||
it('[C325149] Navigate through the templates list with folder hierarchy', async () => {
|
||||
expect(await selectTemplateDialog.dataTable.isItemPresent(templateFolder2)).toBe(true, 'template folder not displayed');
|
||||
|
||||
await selectTemplateDialog.dataTable.doubleClickOnRowByName(templateFolder2);
|
||||
@@ -175,7 +175,7 @@ describe('Create folder from template', () => {
|
||||
expect(await selectTemplateDialog.breadcrumb.getPathItems()).toEqual([ templateFolder2, 'Space Templates' ]);
|
||||
});
|
||||
|
||||
it(`Templates list doesn't allow multiple selection - [C325150]`, async () => {
|
||||
it(`[C325150] Templates list doesn't allow multiple selection`, async () => {
|
||||
expect(await selectTemplateDialog.dataTable.getSelectedRowsCount()).toEqual(0, 'Incorrect number of selected rows');
|
||||
|
||||
await selectTemplateDialog.dataTable.selectItem(templateFolder1);
|
||||
@@ -190,11 +190,11 @@ describe('Create folder from template', () => {
|
||||
expect(await selectTemplateDialog.dataTable.getSelectedRowsNames()).toEqual([ templateFolder2 ], 'Incorrect selected item');
|
||||
});
|
||||
|
||||
it('Links to folders are not displayed - [C325153]', async () => {
|
||||
it('[C325153] Links to folders are not displayed', async () => {
|
||||
expect(await selectTemplateDialog.dataTable.isItemPresent(folderLink)).toBe(false, 'Link to folder is displayed');
|
||||
});
|
||||
|
||||
it('Cancel the Select template dialog - [C325151]', async () => {
|
||||
it('[C325151] Cancel the Select template dialog', async () => {
|
||||
expect(await selectTemplateDialog.isCancelButtonEnabled()).toBe(true, 'Cancel button is not enabled');
|
||||
|
||||
await selectTemplateDialog.clickCancel();
|
||||
@@ -202,7 +202,7 @@ describe('Create folder from template', () => {
|
||||
expect(await selectTemplateDialog.isDialogOpen()).toBe(false, 'Select Template dialog is open');
|
||||
});
|
||||
|
||||
it('Next button is disabled when selecting a file - [C325139]', async () => {
|
||||
it('[C325139] Next button is disabled when selecting a file', async () => {
|
||||
expect(await selectTemplateDialog.isNextButtonEnabled()).toBe(false, 'Next button is enabled');
|
||||
|
||||
await selectTemplateDialog.dataTable.selectItem(fileInRootFolder);
|
||||
@@ -220,7 +220,7 @@ describe('Create folder from template', () => {
|
||||
await createFromTemplateDialog.waitForDialogToOpen();
|
||||
});
|
||||
|
||||
it('Create folder from template - dialog UI - [C325142]', async () => {
|
||||
it('[C325142] Create folder from template - dialog UI', async () => {
|
||||
expect(await createFromTemplateDialog.getTitle()).toEqual(`Create new folder from '${templateFolder1}'`);
|
||||
expect(await createFromTemplateDialog.isNameFieldDisplayed()).toBe(true, 'Name field not displayed');
|
||||
expect(await createFromTemplateDialog.isTitleFieldDisplayed()).toBe(true, 'Title field not displayed');
|
||||
@@ -229,7 +229,7 @@ describe('Create folder from template', () => {
|
||||
expect(await createFromTemplateDialog.isCreateButtonEnabled()).toBe(true, 'Create button is not enabled');
|
||||
});
|
||||
|
||||
it('Folder name is required - [C325143]', async () => {
|
||||
it('[C325143] Folder name is required', async () => {
|
||||
expect(await createFromTemplateDialog.getName()).toEqual(templateFolder1);
|
||||
await createFromTemplateDialog.deleteNameWithBackspace();
|
||||
|
||||
@@ -237,7 +237,7 @@ describe('Create folder from template', () => {
|
||||
expect(await createFromTemplateDialog.isCreateButtonEnabled()).toBe(false, 'Create button is not disabled');
|
||||
});
|
||||
|
||||
it('Special characters in folder name - [C325144]', async () => {
|
||||
it('[C325144] Special characters in folder name', async () => {
|
||||
const namesWithSpecialChars = [ 'a*a', 'a"a', 'a<a', 'a>a', `a\\a`, 'a/a', 'a?a', 'a:a', 'a|a' ];
|
||||
|
||||
for (const name of namesWithSpecialChars) {
|
||||
@@ -247,21 +247,21 @@ describe('Create folder from template', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('Folder name ending with a dot - [C325145]', async () => {
|
||||
it('[C325145] Folder name ending with a dot', async () => {
|
||||
await createFromTemplateDialog.enterName('folder-name.');
|
||||
|
||||
expect(await createFromTemplateDialog.isCreateButtonEnabled()).toBe(false, 'Create button is not disabled');
|
||||
expect(await createFromTemplateDialog.getValidationMessage()).toMatch(`Name can't end with a period .`);
|
||||
});
|
||||
|
||||
it('Folder name containing only spaces - [C325146]', async () => {
|
||||
it('[C325146] Folder name containing only spaces', async () => {
|
||||
await createFromTemplateDialog.enterName(' ');
|
||||
|
||||
expect(await createFromTemplateDialog.isCreateButtonEnabled()).toBe(false, 'Create button is not disabled');
|
||||
expect(await createFromTemplateDialog.getValidationMessage()).toMatch(`Name can't contain only spaces`);
|
||||
});
|
||||
|
||||
it('Title too long - [C325141]', async () => {
|
||||
it('[C325141] Title too long', async () => {
|
||||
await createFromTemplateDialog.enterTitle(Utils.string257);
|
||||
await Utils.pressTab();
|
||||
|
||||
@@ -269,7 +269,7 @@ describe('Create folder from template', () => {
|
||||
expect(await createFromTemplateDialog.getValidationMessage()).toMatch(`Use 256 characters or less for title`);
|
||||
});
|
||||
|
||||
it('Description too long - [C325140]', async () => {
|
||||
it('[C325140] Description too long', async () => {
|
||||
await createFromTemplateDialog.enterDescription(Utils.string513);
|
||||
await Utils.pressTab();
|
||||
|
||||
@@ -289,7 +289,7 @@ describe('Create folder from template', () => {
|
||||
await createFromTemplateDialog.waitForDialogToOpen();
|
||||
});
|
||||
|
||||
it('Create a folder from a template - with a new Name - [C325157]', async () => {
|
||||
it('[C325157] Create a folder from a template - with a new Name', async () => {
|
||||
await createFromTemplateDialog.enterName(folder1.name);
|
||||
await createFromTemplateDialog.clickCreate();
|
||||
await createFromTemplateDialog.waitForDialogToClose();
|
||||
@@ -298,7 +298,7 @@ describe('Create folder from template', () => {
|
||||
expect(await page.dataTable.isItemPresent(folder1.name)).toBe(true, 'Folder not displayed in list view');
|
||||
});
|
||||
|
||||
it('Create a folder from a template - with a Name, Title and Description - [C325154]', async () => {
|
||||
it('[C325154] Create a folder from a template - with a Name, Title and Description', async () => {
|
||||
await createFromTemplateDialog.enterName(folder2.name);
|
||||
await createFromTemplateDialog.enterTitle(folder2.title);
|
||||
await createFromTemplateDialog.enterDescription(folder2.description);
|
||||
@@ -313,7 +313,7 @@ describe('Create folder from template', () => {
|
||||
expect(title).toEqual(folder2.title);
|
||||
});
|
||||
|
||||
it('Create a folder with a duplicate name - [C325156]', async () => {
|
||||
it('[C325156] Create a folder with a duplicate name', async () => {
|
||||
await createFromTemplateDialog.enterName(duplicateFolderName);
|
||||
await createFromTemplateDialog.clickCreate();
|
||||
|
||||
@@ -321,7 +321,7 @@ describe('Create folder from template', () => {
|
||||
expect(await createFromTemplateDialog.isDialogOpen()).toBe(true, 'dialog is not present');
|
||||
});
|
||||
|
||||
it('Cancel folder creation - [C325155]', async () => {
|
||||
it('[C325155] Cancel folder creation', async () => {
|
||||
await createFromTemplateDialog.enterName('test');
|
||||
await createFromTemplateDialog.clickCancel();
|
||||
|
||||
@@ -329,7 +329,7 @@ describe('Create folder from template', () => {
|
||||
expect(await page.dataTable.isItemPresent('test')).toBe(false, 'Folder should not appear in the list');
|
||||
});
|
||||
|
||||
it('Trim spaces from folder Name - [C325158]', async () => {
|
||||
it('[C325158] Trim spaces from folder Name', async () => {
|
||||
await createFromTemplateDialog.enterName(nameWithSpaces);
|
||||
await createFromTemplateDialog.clickCreate();
|
||||
await createFromTemplateDialog.waitForDialogToClose();
|
||||
@@ -352,7 +352,7 @@ describe('Create folder from template', () => {
|
||||
await createFromTemplateDialog.waitForDialogToOpen();
|
||||
});
|
||||
|
||||
it('Create a folder from a template - with Name, Title and Description - [C325161]', async () => {
|
||||
it('[C325161] Create a folder from a template - with Name, Title and Description', async () => {
|
||||
await createFromTemplateDialog.enterName(folderSite.name);
|
||||
await createFromTemplateDialog.enterTitle(folderSite.title);
|
||||
await createFromTemplateDialog.enterDescription(folderSite.description);
|
||||
@@ -367,7 +367,7 @@ describe('Create folder from template', () => {
|
||||
expect(title).toEqual(folderSite.title);
|
||||
});
|
||||
|
||||
it('Cancel folder creation - [C325162]', async () => {
|
||||
it('[C325162] Cancel folder creation', async () => {
|
||||
await createFromTemplateDialog.enterName('test');
|
||||
await createFromTemplateDialog.clickCancel();
|
||||
|
||||
@@ -375,7 +375,7 @@ describe('Create folder from template', () => {
|
||||
expect(await page.dataTable.isItemPresent('test')).toBe(false, 'Folder should not appear in the list');
|
||||
});
|
||||
|
||||
it('Create a folder with a duplicate name - [C325163]', async () => {
|
||||
it('[C325163] Create a folder with a duplicate name', async () => {
|
||||
await createFromTemplateDialog.enterName(duplicateFolderSite);
|
||||
await createFromTemplateDialog.clickCreate();
|
||||
|
||||
|
@@ -85,7 +85,7 @@ describe('Create folder', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('creates new folder with name - [C216341]', async () => {
|
||||
it('[C216341] creates new folder with name', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
await page.sidenav.openCreateFolderDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
@@ -97,7 +97,7 @@ describe('Create folder', () => {
|
||||
expect(await dataTable.isItemPresent(folderName1)).toBe(true, 'Folder not displayed in list view');
|
||||
});
|
||||
|
||||
it('creates new folder with name and description - [C216340]', async (done) => {
|
||||
it('[C216340] creates new folder with name and description', async (done) => {
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
await page.sidenav.openCreateFolderDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
@@ -113,7 +113,7 @@ describe('Create folder', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('dialog UI elements - [C216345]', async () => {
|
||||
it('[C216345] dialog UI elements', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
await page.sidenav.openCreateFolderDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
@@ -125,7 +125,7 @@ describe('Create folder', () => {
|
||||
expect(await createDialog.isCancelButtonEnabled()).toBe(true, 'Cancel button is not enabled');
|
||||
});
|
||||
|
||||
it('with empty folder name - [C216346]', async () => {
|
||||
it('[C216346] with empty folder name', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
await page.sidenav.openCreateFolderDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
@@ -135,7 +135,7 @@ describe('Create folder', () => {
|
||||
expect(await createDialog.getValidationMessage()).toMatch('Folder name is required');
|
||||
});
|
||||
|
||||
it('with folder name ending with a dot "." - [C216348]', async () => {
|
||||
it('[C216348] with folder name ending with a dot "."', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
await page.sidenav.openCreateFolderDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
@@ -145,7 +145,7 @@ describe('Create folder', () => {
|
||||
expect(await createDialog.getValidationMessage()).toMatch(`Folder name can't end with a period .`);
|
||||
});
|
||||
|
||||
it('with folder name containing special characters - [C216347]', async () => {
|
||||
it('[C216347] with folder name containing special characters', async () => {
|
||||
const namesWithSpecialChars = [ 'a*a', 'a"a', 'a<a', 'a>a', `a\\a`, 'a/a', 'a?a', 'a:a', 'a|a' ];
|
||||
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
@@ -159,7 +159,7 @@ describe('Create folder', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('with folder name containing only spaces - [C280406]', async () => {
|
||||
it('[C280406] with folder name containing only spaces', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
await page.sidenav.openCreateFolderDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
@@ -169,7 +169,7 @@ describe('Create folder', () => {
|
||||
expect(await createDialog.getValidationMessage()).toMatch(`Folder name can't contain only spaces`);
|
||||
});
|
||||
|
||||
it('cancel folder creation - [C216349]', async () => {
|
||||
it('[C216349] cancel folder creation', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
await page.sidenav.openCreateFolderDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
@@ -180,7 +180,7 @@ describe('Create folder', () => {
|
||||
expect(await createDialog.isDialogOpen()).not.toBe(true, 'dialog is not closed');
|
||||
});
|
||||
|
||||
it('duplicate folder name - [C216350]', async () => {
|
||||
it('[C216350] duplicate folder name', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
await page.sidenav.openCreateFolderDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
@@ -191,7 +191,7 @@ describe('Create folder', () => {
|
||||
expect(await createDialog.isDialogOpen()).toBe(true, 'dialog is not present');
|
||||
});
|
||||
|
||||
it('trim ending spaces from folder name - [C216351]', async () => {
|
||||
it('[C216351] trim ending spaces from folder name', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
await page.sidenav.openCreateFolderDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
@@ -217,7 +217,7 @@ describe('Create folder', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('creates new folder with name and description - [C280394]', async () => {
|
||||
it('[C280394] creates new folder with name and description', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(siteName);
|
||||
await page.sidenav.openCreateFolderDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
@@ -232,7 +232,7 @@ describe('Create folder', () => {
|
||||
expect(desc).toEqual(folderDescription);
|
||||
});
|
||||
|
||||
it('cancel folder creation - [C280403]', async () => {
|
||||
it('[C280403] cancel folder creation', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(siteName);
|
||||
await page.sidenav.openCreateFolderDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
@@ -243,7 +243,7 @@ describe('Create folder', () => {
|
||||
expect(await createDialog.isDialogOpen()).not.toBe(true, 'dialog is not closed');
|
||||
});
|
||||
|
||||
it('duplicate folder name - [C280404]', async () => {
|
||||
it('[C280404] duplicate folder name', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(siteName);
|
||||
await page.sidenav.openCreateFolderDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
|
@@ -82,7 +82,7 @@ describe('Create library', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Create Library dialog UI - [C280024]', async () => {
|
||||
it('[C280024] Create Library dialog UI', async () => {
|
||||
await page.sidenav.openCreateLibraryDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
|
||||
@@ -98,7 +98,7 @@ describe('Create library', () => {
|
||||
expect(await createDialog.isCancelEnabled()).toBe(true, 'Cancel button is not enabled');
|
||||
});
|
||||
|
||||
it('Create a public library - [C280025]', async () => {
|
||||
it('[C280025] Create a public library', async () => {
|
||||
await page.sidenav.openCreateLibraryDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
await createDialog.enterName(site1Name);
|
||||
@@ -111,7 +111,7 @@ describe('Create library', () => {
|
||||
expect(await apis.user.sites.getVisibility(site1Name)).toEqual(SITE_VISIBILITY.PUBLIC);
|
||||
});
|
||||
|
||||
it('Create a moderated library - [C289880]', async () => {
|
||||
it('[C289880] Create a moderated library', async () => {
|
||||
await page.sidenav.openCreateLibraryDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
await createDialog.enterName(site2Name);
|
||||
@@ -125,7 +125,7 @@ describe('Create library', () => {
|
||||
expect(await apis.user.sites.getVisibility(site2Name)).toEqual(SITE_VISIBILITY.MODERATED);
|
||||
});
|
||||
|
||||
it('Create a private library - [C289881]', async () => {
|
||||
it('[C289881] Create a private library', async () => {
|
||||
await page.sidenav.openCreateLibraryDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
await createDialog.enterName(site3Name);
|
||||
@@ -139,7 +139,7 @@ describe('Create library', () => {
|
||||
expect(await apis.user.sites.getVisibility(site3Name)).toEqual(SITE_VISIBILITY.PRIVATE);
|
||||
});
|
||||
|
||||
it('Create a library with a given ID and description - [C289882]', async () => {
|
||||
it('[C289882] Create a library with a given ID and description', async () => {
|
||||
await page.sidenav.openCreateLibraryDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
await createDialog.enterName(site4.name);
|
||||
@@ -156,7 +156,7 @@ describe('Create library', () => {
|
||||
expect(await apis.user.sites.getDescription(site4.id)).toEqual(site4.description);
|
||||
});
|
||||
|
||||
it('Duplicate library ID - [C280027]', async () => {
|
||||
it('[C280027] Duplicate library ID', async () => {
|
||||
await page.sidenav.openCreateLibraryDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
await createDialog.enterName(duplicateSite.name);
|
||||
@@ -166,7 +166,7 @@ describe('Create library', () => {
|
||||
expect(await createDialog.getErrorMessage()).toEqual(`This Library ID isn't available. Try a different Library ID.`);
|
||||
});
|
||||
|
||||
it('Create library using the ID of a library from the Trashcan - [C280028]', async () => {
|
||||
it('[C280028] Create library using the ID of a library from the Trashcan', async () => {
|
||||
await page.sidenav.openCreateLibraryDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
await createDialog.enterName(siteInTrash.name);
|
||||
@@ -176,7 +176,7 @@ describe('Create library', () => {
|
||||
expect(await createDialog.getErrorMessage()).toEqual(`This Library ID is already used. Check the trashcan.`);
|
||||
});
|
||||
|
||||
it('Cancel button - [C280029]', async () => {
|
||||
it('[C280029] Cancel button', async () => {
|
||||
await page.sidenav.openCreateLibraryDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
await createDialog.enterName('test site');
|
||||
@@ -186,7 +186,7 @@ describe('Create library', () => {
|
||||
expect(await createDialog.isDialogOpen()).not.toBe(true, 'dialog is not closed');
|
||||
});
|
||||
|
||||
it('Library ID cannot contain special characters - [C280026]', async () => {
|
||||
it('[C280026] Library ID cannot contain special characters', async () => {
|
||||
const idWithSpecialChars = [ 'a*a', 'a"a', 'a<a', 'a>a', `a\\a`, 'a/a', 'a?a', 'a:a', 'a|a' ];
|
||||
|
||||
await page.sidenav.openCreateLibraryDialog();
|
||||
@@ -200,7 +200,7 @@ describe('Create library', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('Create 2 libraries with same name but different IDs - [C280030]', async () => {
|
||||
it('[C280030] Create 2 libraries with same name but different IDs', async () => {
|
||||
await page.sidenav.openCreateLibraryDialog();
|
||||
await createDialog.waitForDialogToOpen();
|
||||
await createDialog.enterName(duplicateSite.name);
|
||||
|
@@ -125,7 +125,7 @@ describe('Delete and undo delete', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('delete a file and check notification - [C217125]', async () => {
|
||||
it('[C217125] delete a file and check notification', async () => {
|
||||
let items = await page.dataTable.getRowsCount();
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
@@ -139,7 +139,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(file1)).toBe(true, 'Item is not in trash');
|
||||
});
|
||||
|
||||
it('delete multiple files and check notification - [C280502]', async () => {
|
||||
it('[C280502] delete multiple files and check notification', async () => {
|
||||
let items = await page.dataTable.getRowsCount();
|
||||
await dataTable.selectMultipleItems([file2, file3]);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
@@ -154,7 +154,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(file3)).toBe(true, `${file3} is not in trash`);
|
||||
});
|
||||
|
||||
it('delete a folder with content - [C217126]', async () => {
|
||||
it('[C217126] delete a folder with content', async () => {
|
||||
let items = await page.dataTable.getRowsCount();
|
||||
await dataTable.selectItem(folder1);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
@@ -166,7 +166,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(file1InFolder)).toBe(false, 'Item is in trash');
|
||||
});
|
||||
|
||||
it('delete a folder containing locked files - [C217127]', async () => {
|
||||
it('[C217127] delete a folder containing locked files', async () => {
|
||||
await dataTable.selectItem(folder2);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
const message = await page.getSnackBarMessage();
|
||||
@@ -178,7 +178,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(fileLocked1)).toBe(false, 'Item is in trash');
|
||||
});
|
||||
|
||||
it('notification on multiple items deletion - some items fail to delete - [C217129]', async () => {
|
||||
it('[C217129] notification on multiple items deletion - some items fail to delete', async () => {
|
||||
await dataTable.selectMultipleItems([file4, folder3]);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
const message = await page.getSnackBarMessage();
|
||||
@@ -186,7 +186,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(message).toContain(`Undo`);
|
||||
});
|
||||
|
||||
it('notification on multiple items deletion - all items fail to delete - [C217130]', async () => {
|
||||
it('[C217130] notification on multiple items deletion - all items fail to delete', async () => {
|
||||
await dataTable.selectMultipleItems([folder4, folder5]);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
const message = await page.getSnackBarMessage();
|
||||
@@ -194,7 +194,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(message).not.toContain(`Undo`);
|
||||
});
|
||||
|
||||
it('undo delete of file - [C217132]', async () => {
|
||||
it('[C217132] undo delete of file', async () => {
|
||||
const items = await page.dataTable.getRowsCount();
|
||||
|
||||
await dataTable.selectItem(file5);
|
||||
@@ -205,7 +205,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await page.pagination.getRange()).toContain(`1-${items} of ${items}`);
|
||||
});
|
||||
|
||||
it('undo delete of folder with content - [C280503]', async () => {
|
||||
it('[C280503] undo delete of folder with content', async () => {
|
||||
const items = await page.dataTable.getRowsCount();
|
||||
|
||||
await dataTable.selectItem(folder6);
|
||||
@@ -217,7 +217,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(file2InFolder)).toBe(true, 'file from folder not restored');
|
||||
});
|
||||
|
||||
it('undo delete of multiple files - [C280504]', async () => {
|
||||
it('[C280504] undo delete of multiple files', async () => {
|
||||
const items = await page.dataTable.getRowsCount();
|
||||
|
||||
await dataTable.selectMultipleItems([file6, file7]);
|
||||
@@ -272,7 +272,7 @@ describe('Delete and undo delete', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('delete a file and check notification - [C280316]', async () => {
|
||||
it('[C280316] delete a file and check notification', async () => {
|
||||
await dataTable.selectItem(sharedFile1);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
const message = await page.getSnackBarMessage();
|
||||
@@ -283,7 +283,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(sharedFile1)).toBe(true, 'Item is not in trash');
|
||||
});
|
||||
|
||||
it('delete multiple files and check notification - [C280513]', async () => {
|
||||
it('[C280513] delete multiple files and check notification', async () => {
|
||||
await dataTable.selectMultipleItems([sharedFile2, sharedFile3]);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
const message = await page.getSnackBarMessage();
|
||||
@@ -296,7 +296,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(sharedFile3)).toBe(true, `${sharedFile3} is not in trash`);
|
||||
});
|
||||
|
||||
it('undo delete of file - [C280324]', async () => {
|
||||
it('[C280324] undo delete of file', async () => {
|
||||
await dataTable.selectItem(sharedFile4);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
await page.clickSnackBarAction();
|
||||
@@ -304,7 +304,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(sharedFile4)).toBe(false, 'Item was not restored');
|
||||
});
|
||||
|
||||
it('undo delete of multiple files - [C280514]', async () => {
|
||||
it('[C280514] undo delete of multiple files', async () => {
|
||||
await dataTable.selectMultipleItems([sharedFile5, sharedFile6]);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
await page.clickSnackBarAction();
|
||||
@@ -392,7 +392,7 @@ describe('Delete and undo delete', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('delete a file and check notification - [C280516]', async () => {
|
||||
it('[C280516] delete a file and check notification', async () => {
|
||||
let items = await page.dataTable.getRowsCount();
|
||||
|
||||
await dataTable.selectItem(favFile1);
|
||||
@@ -407,7 +407,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(favFile1)).toBe(true, 'Item is not in trash');
|
||||
});
|
||||
|
||||
it('delete multiple files and check notification - [C280517]', async () => {
|
||||
it('[C280517] delete multiple files and check notification', async () => {
|
||||
let items = await page.dataTable.getRowsCount();
|
||||
|
||||
await dataTable.selectMultipleItems([favFile2, favFile3]);
|
||||
@@ -424,7 +424,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(favFile3)).toBe(true, `${favFile3} is not in trash`);
|
||||
});
|
||||
|
||||
it('delete a folder with content - [C280518]', async () => {
|
||||
it('[C280518] delete a folder with content', async () => {
|
||||
let items = await page.dataTable.getRowsCount();
|
||||
await dataTable.selectItem(favFolder1);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
@@ -436,7 +436,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(file1InFolder)).toBe(false, 'Item is in trash');
|
||||
});
|
||||
|
||||
it('delete a folder containing locked files - [C280519]', async () => {
|
||||
it('[C280519] delete a folder containing locked files', async () => {
|
||||
await dataTable.selectItem(favFolder2);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
const message = await page.getSnackBarMessage();
|
||||
@@ -447,7 +447,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(fileLocked1)).toBe(false, 'Item is in trash');
|
||||
});
|
||||
|
||||
it('notification on multiple items deletion - some items fail to delete - [C280520]', async () => {
|
||||
it('[C280520] notification on multiple items deletion - some items fail to delete', async () => {
|
||||
await dataTable.selectMultipleItems([favFile4, favFolder3]);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
const message = await page.getSnackBarMessage();
|
||||
@@ -455,7 +455,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(message).toContain(`Undo`);
|
||||
});
|
||||
|
||||
it('notification on multiple items deletion - all items fail to delete - [C280521]', async () => {
|
||||
it('[C280521] notification on multiple items deletion - all items fail to delete', async () => {
|
||||
await dataTable.selectMultipleItems([favFolder4, favFolder5]);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
const message = await page.getSnackBarMessage();
|
||||
@@ -463,7 +463,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(message).not.toContain(`Undo`);
|
||||
});
|
||||
|
||||
it('undo delete of file - [C280524]', async () => {
|
||||
it('[C280524] undo delete of file', async () => {
|
||||
const items = await page.dataTable.getRowsCount();
|
||||
|
||||
await dataTable.selectItem(favFile5);
|
||||
@@ -473,7 +473,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await page.pagination.getRange()).toContain(`1-${items} of ${items}`);
|
||||
});
|
||||
|
||||
it('undo delete of folder with content - [C280526]', async () => {
|
||||
it('[C280526] undo delete of folder with content', async () => {
|
||||
const items = await page.dataTable.getRowsCount();
|
||||
|
||||
await dataTable.selectItem(favFolder6);
|
||||
@@ -485,7 +485,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(file2InFolder)).toBe(true, 'file from folder not restored');
|
||||
});
|
||||
|
||||
it('undo delete of multiple files - [C280525]', async () => {
|
||||
it('[C280525] undo delete of multiple files', async () => {
|
||||
const items = await page.dataTable.getRowsCount();
|
||||
|
||||
await dataTable.selectMultipleItems([favFile6, favFile7]);
|
||||
@@ -535,7 +535,7 @@ describe('Delete and undo delete', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('delete a file and check notification - [C280528]', async () => {
|
||||
it('[C280528] delete a file and check notification', async () => {
|
||||
await dataTable.selectItem(recentFile1);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
const message = await page.getSnackBarMessage();
|
||||
@@ -546,7 +546,7 @@ describe('Delete and undo delete', () => {
|
||||
expect(await dataTable.isItemPresent(recentFile1)).toBe(true, 'Item is not in trash');
|
||||
});
|
||||
|
||||
it('delete multiple files and check notification - [C280529]', async () => {
|
||||
it('[C280529] delete multiple files and check notification', async () => {
|
||||
await dataTable.selectMultipleItems([recentFile2, recentFile3]);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
const message = await page.getSnackBarMessage();
|
||||
@@ -563,7 +563,7 @@ describe('Delete and undo delete', () => {
|
||||
// we cannot test that the restored file is displayed in the Recent Files list
|
||||
// without adding a very big browser.sleep followed by a page.refresh
|
||||
// so for the moment we're testing that the restored file is not displayed in the Trash
|
||||
it('undo delete of file - [C280536]', async () => {
|
||||
it('[C280536] undo delete of file', async () => {
|
||||
await dataTable.selectItem(recentFile4);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
await page.clickSnackBarAction();
|
||||
@@ -575,7 +575,7 @@ describe('Delete and undo delete', () => {
|
||||
// we cannot test that the restored file is displayed in the Recent Files list
|
||||
// without adding a very big browser.sleep followed by a page.refresh
|
||||
// so for the moment we're testing that the restored file is not displayed in the Trash
|
||||
it('undo delete of multiple files - [C280537]', async () => {
|
||||
it('[C280537] undo delete of multiple files', async () => {
|
||||
await dataTable.selectMultipleItems([recentFile5, recentFile6]);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
await page.clickSnackBarAction();
|
||||
|
@@ -119,14 +119,14 @@ describe('Download', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Download a file - [C213179]', async () => {
|
||||
it('[C213179] Download a file', async () => {
|
||||
await dataTable.selectItem(filePersonal);
|
||||
await toolbar.clickDownload();
|
||||
|
||||
expect(await Utils.fileExistsOnOS(filePersonal)).toBe(true, 'File not found in download location');
|
||||
});
|
||||
|
||||
it('Download a folder - [C216352]', async () => {
|
||||
it('[C216352] Download a folder', async () => {
|
||||
await dataTable.selectItem(folderPersonal);
|
||||
await toolbar.clickDownload();
|
||||
|
||||
@@ -139,7 +139,7 @@ describe('Download', () => {
|
||||
expect(await Utils.fileExistsOnOS(fileInFolderPersonal, folderPersonal));
|
||||
});
|
||||
|
||||
it('Download multiple items - [C216353]', async () => {
|
||||
it('[C216353] Download multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([filePersonal, folderPersonal]);
|
||||
await toolbar.clickDownload();
|
||||
|
||||
@@ -166,14 +166,14 @@ describe('Download', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Download a file - [C280173]', async () => {
|
||||
it('[C280173] Download a file', async () => {
|
||||
await dataTable.selectItem(fileFavorites);
|
||||
await toolbar.clickDownload();
|
||||
|
||||
expect(await Utils.fileExistsOnOS(fileFavorites)).toBe(true, 'File not found in download location');
|
||||
});
|
||||
|
||||
it('Download a folder - [C280188]', async () => {
|
||||
it('[C280188] Download a folder', async () => {
|
||||
await dataTable.selectItem(folderFavorites);
|
||||
await toolbar.clickDownload();
|
||||
|
||||
@@ -186,7 +186,7 @@ describe('Download', () => {
|
||||
expect(await Utils.fileExistsOnOS(fileInFolderFavorites, folderFavorites));
|
||||
});
|
||||
|
||||
it('Download multiple items - [C280189]', async () => {
|
||||
it('[C280189] Download multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([fileFavorites, folderFavorites]);
|
||||
await toolbar.clickDownload();
|
||||
|
||||
@@ -213,14 +213,14 @@ describe('Download', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Download a file - [C280170]', async () => {
|
||||
it('[C280170] Download a file', async () => {
|
||||
await dataTable.selectItem(fileShared1);
|
||||
await toolbar.clickDownload();
|
||||
|
||||
expect(await Utils.fileExistsOnOS(fileShared1)).toBe(true, 'File not found in download location');
|
||||
});
|
||||
|
||||
it('Download multiple items - [C280183]', async () => {
|
||||
it('[C280183] Download multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([fileShared1, fileShared2]);
|
||||
await toolbar.clickDownload();
|
||||
|
||||
@@ -246,14 +246,14 @@ describe('Download', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Download a file - [C280167]', async () => {
|
||||
it('[C280167] Download a file', async () => {
|
||||
await dataTable.selectItem(fileRecent1);
|
||||
await toolbar.clickDownload();
|
||||
|
||||
expect(await Utils.fileExistsOnOS(fileRecent1)).toBe(true, 'File not found in download location');
|
||||
});
|
||||
|
||||
it('Download multiple items - [C280177]', async () => {
|
||||
it('[C280177] Download multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([fileRecent1, fileRecent2]);
|
||||
await toolbar.clickDownload();
|
||||
|
||||
@@ -277,14 +277,14 @@ describe('Download', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Download a file - [C279164]', async () => {
|
||||
it('[C279164] Download a file', async () => {
|
||||
await dataTable.selectItem(fileSearch, parent);
|
||||
await toolbar.clickDownload();
|
||||
|
||||
expect(await Utils.fileExistsOnOS(fileSearch)).toBe(true, 'File not found in download location');
|
||||
});
|
||||
|
||||
it('Download a folder - [C297694]', async () => {
|
||||
it('[C297694] Download a folder', async () => {
|
||||
await dataTable.selectItem(folderSearch, parent);
|
||||
await toolbar.clickDownload();
|
||||
|
||||
@@ -297,7 +297,7 @@ describe('Download', () => {
|
||||
expect(await Utils.fileExistsOnOS(fileInFolderSearch, folderSearch));
|
||||
});
|
||||
|
||||
it('Download multiple items - [C297695]', async () => {
|
||||
it('[C297695] Download multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([fileSearch, folderSearch], parent);
|
||||
await toolbar.clickDownload();
|
||||
|
||||
|
@@ -118,7 +118,7 @@ describe('Edit folder', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('dialog UI defaults - [C216331]', async () => {
|
||||
it('[C216331] dialog UI defaults', async () => {
|
||||
await dataTable.doubleClickOnRowByName(parent);
|
||||
await dataTable.selectItem(folderName);
|
||||
await toolbar.openMoreMenu();
|
||||
@@ -139,7 +139,7 @@ describe('Edit folder', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('properties are modified when pressing OK - [C216335]', async (done) => {
|
||||
it('[C216335] properties are modified when pressing OK', async (done) => {
|
||||
await dataTable.selectItem(folderNameToEdit);
|
||||
await toolbar.openMoreMenu();
|
||||
await toolbar.menu.clickEditFolder();
|
||||
@@ -156,7 +156,7 @@ describe('Edit folder', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('with empty folder name - [C216332]', async () => {
|
||||
it('[C216332] with empty folder name', async () => {
|
||||
await dataTable.selectItem(folderName);
|
||||
await toolbar.openMoreMenu();
|
||||
await toolbar.menu.clickEditFolder();
|
||||
@@ -166,7 +166,7 @@ describe('Edit folder', () => {
|
||||
expect(await editDialog.getValidationMessage()).toMatch('Folder name is required');
|
||||
});
|
||||
|
||||
it('with name with special characters - [C216333]', async () => {
|
||||
it('[C216333] with name with special characters', async () => {
|
||||
const namesWithSpecialChars = [ 'a*a', 'a"a', 'a<a', 'a>a', `a\\a`, 'a/a', 'a?a', 'a:a', 'a|a' ];
|
||||
|
||||
await dataTable.selectItem(folderName);
|
||||
@@ -180,7 +180,7 @@ describe('Edit folder', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('with name ending with a dot - [C216334]', async () => {
|
||||
it('[C216334] with name ending with a dot', async () => {
|
||||
await dataTable.selectItem(folderName);
|
||||
await toolbar.openMoreMenu();
|
||||
await toolbar.menu.clickEditFolder();
|
||||
@@ -191,7 +191,7 @@ describe('Edit folder', () => {
|
||||
expect(await editDialog.getValidationMessage()).toMatch(`Folder name can't end with a period .`);
|
||||
});
|
||||
|
||||
it('Cancel button - [C216336]', async () => {
|
||||
it('[C216336] Cancel button', async () => {
|
||||
await dataTable.selectItem(folderName);
|
||||
await toolbar.openMoreMenu();
|
||||
await toolbar.menu.clickEditFolder();
|
||||
@@ -201,7 +201,7 @@ describe('Edit folder', () => {
|
||||
expect(await editDialog.isDialogOpen()).not.toBe(true, 'dialog is not closed');
|
||||
});
|
||||
|
||||
it('with duplicate folder name - [C216337]', async () => {
|
||||
it('[C216337] with duplicate folder name', async () => {
|
||||
await dataTable.selectItem(folderName);
|
||||
await toolbar.openMoreMenu();
|
||||
await toolbar.menu.clickEditFolder();
|
||||
@@ -213,7 +213,7 @@ describe('Edit folder', () => {
|
||||
expect(await editDialog.isDialogOpen()).toBe(true, 'dialog is not present');
|
||||
});
|
||||
|
||||
it('trim ending spaces - [C216338]', async () => {
|
||||
it('[C216338] trim ending spaces', async () => {
|
||||
await dataTable.selectItem(folderName);
|
||||
await toolbar.openMoreMenu();
|
||||
await toolbar.menu.clickEditFolder();
|
||||
@@ -232,7 +232,7 @@ describe('Edit folder', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('properties are modified when pressing OK - [C280384]', async (done) => {
|
||||
it('[C280384] properties are modified when pressing OK', async (done) => {
|
||||
await dataTable.selectItem(folderFavoriteToEdit);
|
||||
await toolbar.openMoreMenu();
|
||||
await toolbar.menu.clickEditFolder();
|
||||
@@ -249,7 +249,7 @@ describe('Edit folder', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('with duplicate folder name - [C280386]', async () => {
|
||||
it('[C280386] with duplicate folder name', async () => {
|
||||
await dataTable.selectItem(folderFavorite);
|
||||
await toolbar.openMoreMenu();
|
||||
await toolbar.menu.clickEditFolder();
|
||||
@@ -269,7 +269,7 @@ describe('Edit folder', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('properties are modified when pressing OK - [C280509]', async (done) => {
|
||||
it('[C280509] properties are modified when pressing OK', async (done) => {
|
||||
await dataTable.selectItem(folderSiteToEdit);
|
||||
await toolbar.openMoreMenu();
|
||||
await toolbar.menu.clickEditFolder();
|
||||
@@ -286,7 +286,7 @@ describe('Edit folder', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('with duplicate folder name - [C280511]', async () => {
|
||||
it('[C280511] with duplicate folder name', async () => {
|
||||
await dataTable.selectItem(folderSite);
|
||||
await toolbar.openMoreMenu();
|
||||
await toolbar.menu.clickEditFolder();
|
||||
@@ -305,7 +305,7 @@ describe('Edit folder', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('properties are modified when pressing OK - [C306947]', async () => {
|
||||
it('[C306947] properties are modified when pressing OK', async () => {
|
||||
await page.clickPersonalFiles();
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkOnlyFolders();
|
||||
@@ -327,7 +327,7 @@ describe('Edit folder', () => {
|
||||
expect(desc).toEqual(folderDescriptionEdited);
|
||||
});
|
||||
|
||||
it('with duplicate folder name - [C306948]', async () => {
|
||||
it('[C306948] with duplicate folder name', async () => {
|
||||
await page.clickPersonalFiles();
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkOnlyFolders();
|
||||
|
@@ -86,7 +86,7 @@ describe('Edit offline', () => {
|
||||
await apis.user.nodes.deleteNodeById(parentPFId);
|
||||
});
|
||||
|
||||
it('File is locked and downloaded when clicking Edit Offline - [C297538]', async () => {
|
||||
it('[C297538] File is locked and downloaded when clicking Edit Offline', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickMoreActionsEditOffline();
|
||||
|
||||
@@ -94,13 +94,13 @@ describe('Edit offline', () => {
|
||||
expect(await apis.user.nodes.isFileLockedWrite(file1Id)).toBe(true, `${file1} is not locked`);
|
||||
});
|
||||
|
||||
it('Lock information is displayed - [C297539]', async () => {
|
||||
it('[C297539] Lock information is displayed', async () => {
|
||||
expect(await dataTable.isItemPresent(fileLocked2)).toBe(true, `${fileLocked2} is not displayed`);
|
||||
expect(await dataTable.hasLockIcon(fileLocked2)).toBe(true, `${fileLocked2} does not have a lock icon`);
|
||||
expect(await dataTable.getLockOwner(fileLocked2)).toContain(username, `${fileLocked2} does not have correct lock owner info`);
|
||||
});
|
||||
|
||||
it('Cancel Editing unlocks the file - [C297540]', async () => {
|
||||
it('[C297540] Cancel Editing unlocks the file', async () => {
|
||||
await dataTable.selectItem(fileLocked);
|
||||
await toolbar.clickMoreActionsCancelEditing();
|
||||
await dataTable.unselectItem(fileLocked);
|
||||
@@ -139,7 +139,7 @@ describe('Edit offline', () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('File is locked and downloaded when clicking Edit Offline - [C306950]', async () => {
|
||||
it('[C306950] File is locked and downloaded when clicking Edit Offline', async () => {
|
||||
await dataTable.selectItem(file1, parentSF);
|
||||
await toolbar.clickMoreActionsEditOffline();
|
||||
|
||||
@@ -147,13 +147,13 @@ describe('Edit offline', () => {
|
||||
expect(await apis.user.nodes.isFileLockedWrite(file1Id)).toBe(true, `${file1} is not locked`);
|
||||
});
|
||||
|
||||
it('Lock information is displayed - [C306951]', async () => {
|
||||
it('[C306951] Lock information is displayed', async () => {
|
||||
expect(await dataTable.isItemPresent(fileLocked2, parentSF)).toBe(true, `${fileLocked2} is not displayed`);
|
||||
expect(await dataTable.hasLockIcon(fileLocked2, parentSF)).toBe(true, `${fileLocked2} does not have a lock icon`);
|
||||
expect(await dataTable.getLockOwner(fileLocked2, parentSF)).toContain(username, `${fileLocked2} does not have correct lock owner info`);
|
||||
});
|
||||
|
||||
it('Cancel Editing unlocks the file - [C306952]', async () => {
|
||||
it('[C306952] Cancel Editing unlocks the file', async () => {
|
||||
await dataTable.selectItem(fileLocked);
|
||||
await toolbar.clickMoreActionsCancelEditing();
|
||||
await dataTable.unselectItem(fileLocked);
|
||||
@@ -193,7 +193,7 @@ describe('Edit offline', () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('File is locked and downloaded when clicking Edit Offline - [C297541]', async () => {
|
||||
it('[C297541] File is locked and downloaded when clicking Edit Offline', async () => {
|
||||
await dataTable.selectItem(file1, parentRF);
|
||||
await toolbar.clickMoreActionsEditOffline();
|
||||
|
||||
@@ -201,13 +201,13 @@ describe('Edit offline', () => {
|
||||
expect(await apis.user.nodes.isFileLockedWrite(file1Id)).toBe(true, `${file1} is not locked`);
|
||||
});
|
||||
|
||||
it('Lock information is displayed - [C297542]', async () => {
|
||||
it('[C297542] Lock information is displayed', async () => {
|
||||
expect(await dataTable.isItemPresent(fileLocked2, parentRF)).toBe(true, `${fileLocked2} is not displayed`);
|
||||
expect(await dataTable.hasLockIcon(fileLocked2, parentRF)).toBe(true, `${fileLocked2} does not have a lock icon`);
|
||||
expect(await dataTable.getLockOwner(fileLocked2, parentRF)).toContain(username, `${fileLocked2} does not have correct lock owner info`);
|
||||
});
|
||||
|
||||
it('Cancel Editing unlocks the file - [C297543]', async () => {
|
||||
it('[C297543] Cancel Editing unlocks the file', async () => {
|
||||
await dataTable.selectItem(fileLocked, parentRF);
|
||||
await toolbar.clickMoreActionsCancelEditing();
|
||||
await dataTable.unselectItem(fileLocked, parentRF);
|
||||
@@ -247,7 +247,7 @@ describe('Edit offline', () => {
|
||||
});
|
||||
|
||||
// TODO: raise REPO issue: permissions not returned in /people/${personId}/favorites api
|
||||
xit('File is locked and downloaded when clicking Edit Offline - [C306956]', async () => {
|
||||
xit('[C306956] File is locked and downloaded when clicking Edit Offline', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickMoreActionsEditOffline();
|
||||
|
||||
@@ -255,13 +255,13 @@ describe('Edit offline', () => {
|
||||
expect(await apis.user.nodes.isFileLockedWrite(file1Id)).toBe(true, `${file1} is not locked`);
|
||||
});
|
||||
|
||||
it('Lock information is displayed - [C306957]', async () => {
|
||||
it('[C306957] Lock information is displayed', async () => {
|
||||
expect(await dataTable.isItemPresent(fileLocked2)).toBe(true, `${fileLocked2} is not displayed`);
|
||||
expect(await dataTable.hasLockIcon(fileLocked2)).toBe(true, `${fileLocked2} does not have a lock icon`);
|
||||
expect(await dataTable.getLockOwner(fileLocked2)).toContain(username, `${fileLocked2} does not have correct lock owner info`);
|
||||
});
|
||||
|
||||
it('Cancel Editing unlocks the file - [C306958]', async () => {
|
||||
it('[C306958] Cancel Editing unlocks the file', async () => {
|
||||
await dataTable.selectItem(fileLocked);
|
||||
await toolbar.clickMoreActionsCancelEditing();
|
||||
await dataTable.unselectItem(fileLocked);
|
||||
@@ -302,7 +302,7 @@ describe('Edit offline', () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('File is locked and downloaded when clicking Edit Offline - [C306953]', async () => {
|
||||
it('[C306953] File is locked and downloaded when clicking Edit Offline', async () => {
|
||||
await dataTable.selectItem(fileSearch1);
|
||||
await toolbar.clickMoreActionsEditOffline();
|
||||
|
||||
@@ -310,14 +310,14 @@ describe('Edit offline', () => {
|
||||
expect(await apis.user.nodes.isFileLockedWrite(fileSearch1Id)).toBe(true, `${fileSearch1} is not locked`);
|
||||
});
|
||||
|
||||
it('Lock information is displayed - [C306954]', async () => {
|
||||
it('[C306954] Lock information is displayed', async () => {
|
||||
expect(await dataTable.isItemPresent(fileSearchLocked2, parentSearch)).toBe(true, `${fileSearchLocked2} is not displayed`);
|
||||
expect(await dataTable.hasLockIcon(fileSearchLocked2, parentSearch)).toBe(true, `${fileSearchLocked2} does not have a lock icon`);
|
||||
// TODO: enable when ACA-2314 is fixed
|
||||
// expect(await dataTable.getLockOwner(fileSearchLocked2, parentSearch)).toContain(username, `${fileSearchLocked2} does not have correct lock owner info`);
|
||||
});
|
||||
|
||||
it('Cancel Editing unlocks the file - [C306955]', async () => {
|
||||
it('[C306955] Cancel Editing unlocks the file', async () => {
|
||||
await dataTable.selectItem(fileSearchLocked);
|
||||
await toolbar.clickMoreActionsCancelEditing();
|
||||
await dataTable.unselectItem(fileSearchLocked);
|
||||
|
@@ -125,7 +125,7 @@ describe('Library actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('from Favorite Libraries - [C290105]', async () => {
|
||||
it('[C290105] from Favorite Libraries', async () => {
|
||||
await page.goToFavoriteLibrariesAndWait();
|
||||
await dataTable.selectItem(sitePublic1Admin);
|
||||
await toolbar.clickJoin();
|
||||
@@ -133,7 +133,7 @@ describe('Library actions', () => {
|
||||
expect(await dataTable.getLibraryRole(sitePublic1Admin)).toEqual('Consumer');
|
||||
});
|
||||
|
||||
it('from Search Results - [C306959]', async () => {
|
||||
it('[C306959] from Search Results', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor(siteSearchPublic1Admin);
|
||||
@@ -156,7 +156,7 @@ describe('Library actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('from Favorite Libraries - [C290109]', async () => {
|
||||
it('[C290109] from Favorite Libraries', async () => {
|
||||
await page.goToFavoriteLibrariesAndWait();
|
||||
await dataTable.selectItem(siteModerated1Admin);
|
||||
await toolbar.clickJoin();
|
||||
@@ -166,7 +166,7 @@ describe('Library actions', () => {
|
||||
expect(hasJoinRequest).toBe(true, `Join request does not exist on ${siteModerated1Admin}`);
|
||||
});
|
||||
|
||||
it('from Search Results - [C306960]', async () => {
|
||||
it('[C306960] from Search Results', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor(siteSearchModerated1Admin);
|
||||
@@ -200,7 +200,7 @@ describe('Library actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('from My Libraries - [C290106]', async () => {
|
||||
it('[C290106] from My Libraries', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.selectItem(sitePublic2Admin);
|
||||
await toolbar.clickLeave();
|
||||
@@ -211,7 +211,7 @@ describe('Library actions', () => {
|
||||
expect(await dataTable.isItemPresent(sitePublic2Admin)).toBe(false, `${sitePublic2Admin} is displayed`);
|
||||
});
|
||||
|
||||
it('from Favorite Libraries - [C290110]', async () => {
|
||||
it('[C290110] from Favorite Libraries', async () => {
|
||||
await page.goToFavoriteLibrariesAndWait();
|
||||
await dataTable.selectItem(sitePublic3Admin);
|
||||
await toolbar.clickLeave();
|
||||
@@ -222,7 +222,7 @@ describe('Library actions', () => {
|
||||
expect(await dataTable.isItemPresent(sitePublic3Admin)).toBe(true, `${sitePublic3Admin} is not displayed`);
|
||||
});
|
||||
|
||||
it('from Search Results - [C306961]', async () => {
|
||||
it('[C306961] from Search Results', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor(siteSearchPublic2Admin);
|
||||
@@ -237,7 +237,7 @@ describe('Library actions', () => {
|
||||
expect(await dataTable.isItemPresent(siteSearchPublic2Admin)).toBe(true, `${siteSearchPublic2Admin} is not displayed`);
|
||||
});
|
||||
|
||||
it('Confirmation dialog UI - [C290136]', async () => {
|
||||
it('[C290136] Confirmation dialog UI', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.selectItem(sitePublic4Admin);
|
||||
await toolbar.clickLeave();
|
||||
@@ -250,7 +250,7 @@ describe('Library actions', () => {
|
||||
expect(await confirmDialog.isCancelEnabled()).toBe(true, 'Cancel button is not enabled');
|
||||
});
|
||||
|
||||
it('Cancel Leave Library - [C290111]', async () => {
|
||||
it('[C290111] Cancel Leave Library', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.selectItem(sitePublic5Admin);
|
||||
await toolbar.clickLeave();
|
||||
@@ -261,7 +261,7 @@ describe('Library actions', () => {
|
||||
expect(await dataTable.isItemPresent(sitePublic5Admin)).toBe(true, `${sitePublic5Admin} was deleted`);
|
||||
});
|
||||
|
||||
it('Leave a library - failure notification - [C290107]', async () => {
|
||||
it('[C290107] Leave a library - failure notification', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.selectItem(sitePublicUser);
|
||||
await toolbar.clickLeave();
|
||||
@@ -283,7 +283,7 @@ describe('Library actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('from Favorite Libraries - [C290108]', async () => {
|
||||
it('[C290108] from Favorite Libraries', async () => {
|
||||
await page.goToFavoriteLibrariesAndWait();
|
||||
await dataTable.selectItem(siteModerated2Admin);
|
||||
await toolbar.clickButton('Cancel Join Request');
|
||||
@@ -294,7 +294,7 @@ describe('Library actions', () => {
|
||||
expect(hasJoinRequest).toBe(false, `Join request exists on ${siteModerated2Admin}`);
|
||||
});
|
||||
|
||||
it('from Search Results - [C306962]', async () => {
|
||||
it('[C306962] from Search Results', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor(siteSearchModerated2Admin);
|
||||
@@ -320,7 +320,7 @@ describe('Library actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('from My Libraries - [C289974]', async () => {
|
||||
it('[C289974] from My Libraries', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.selectItem(sitePublic6Admin);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
@@ -328,7 +328,7 @@ describe('Library actions', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(sitePublic6Admin, { expect: true })).toBe(true, `${sitePublic6Admin} not favorite`);
|
||||
});
|
||||
|
||||
it('from on Search Results - [C306963]', async () => {
|
||||
it('[C306963] from on Search Results', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor(siteSearchPublic3Admin);
|
||||
@@ -357,7 +357,7 @@ describe('Library actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('from My Libraries - [C289975]', async () => {
|
||||
it('[C289975] from My Libraries', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.selectItem(sitePublic7Admin);
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
@@ -365,7 +365,7 @@ describe('Library actions', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(sitePublic7Admin, { expect: false })).toBe(false, `${sitePublic7Admin} still favorite`);
|
||||
});
|
||||
|
||||
it('from Favorite Libraries - [C289976]', async () => {
|
||||
it('[C289976] from Favorite Libraries', async () => {
|
||||
await page.goToFavoriteLibrariesAndWait();
|
||||
await dataTable.selectItem(sitePublic8Admin);
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
@@ -374,7 +374,7 @@ describe('Library actions', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(sitePublic8Admin, { expect: false })).toBe(false, `${sitePublic8Admin} still favorite`);
|
||||
});
|
||||
|
||||
it('from Search Results - [C306964]', async () => {
|
||||
it('[C306964] from Search Results', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor(siteSearchPublic4Admin);
|
||||
@@ -396,7 +396,7 @@ describe('Library actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('from My Libraries - [C289988]', async () => {
|
||||
it('[C289988] from My Libraries', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.selectItem(siteForDelete1);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
@@ -405,7 +405,7 @@ describe('Library actions', () => {
|
||||
expect(await dataTable.isItemPresent(siteForDelete1)).toBe(false, `${siteForDelete1} still displayed`);
|
||||
});
|
||||
|
||||
it('from Favorite Libraries - [C289991]', async () => {
|
||||
it('[C289991] from Favorite Libraries', async () => {
|
||||
await page.goToFavoriteLibrariesAndWait();
|
||||
await dataTable.selectItem(siteForDelete2);
|
||||
await toolbar.clickMoreActionsDelete();
|
||||
@@ -414,7 +414,7 @@ describe('Library actions', () => {
|
||||
expect(await dataTable.isItemPresent(siteForDelete2)).toBe(false, `${siteForDelete2} still displayed`);
|
||||
});
|
||||
|
||||
it('from Search Results - [C306965]', async () => {
|
||||
it('[C306965] from Search Results', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor(siteSearchForDelete);
|
||||
|
@@ -138,49 +138,49 @@ describe('Mark items as favorites', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Favorite action has empty star icon for an item not marked as favorite - [C217186]', async () => {
|
||||
it('[C217186] Favorite action has empty star icon for an item not marked as favorite', async () => {
|
||||
await dataTable.selectItem(fileNotFavUI);
|
||||
await toolbar.openMoreMenu();
|
||||
|
||||
expect(await toolbar.menu.getItemIconText('Favorite')).toEqual('star_border');
|
||||
});
|
||||
|
||||
it('Favorite action has empty star icon for multiple selection of items when some are not favorite - [C217187]', async () => {
|
||||
it('[C217187] Favorite action has empty star icon for multiple selection of items when some are not favorite', async () => {
|
||||
await dataTable.selectMultipleItems([ fileNotFavUI, fileFavUI ]);
|
||||
await toolbar.openMoreMenu();
|
||||
|
||||
expect(await toolbar.menu.getItemIconText('Favorite')).toEqual('star_border');
|
||||
});
|
||||
|
||||
it('Favorite action has full star icon for items marked as favorite - [C217188]', async () => {
|
||||
it('[C217188] Favorite action has full star icon for items marked as favorite', async () => {
|
||||
await dataTable.selectItem(fileFavUI);
|
||||
await toolbar.openMoreMenu();
|
||||
|
||||
expect(await toolbar.menu.getItemIconText('Remove Favorite')).toEqual('star');
|
||||
});
|
||||
|
||||
it('favorite a file - [C217189]', async () => {
|
||||
it('[C217189] favorite a file', async () => {
|
||||
await dataTable.selectItem(fileNotFav1);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileNotFav1Id, { expect: true })).toBe(true, `${fileNotFav1} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('favorite a folder - [C280390]', async () => {
|
||||
it('[C280390] favorite a folder', async () => {
|
||||
await dataTable.selectItem(folder);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(folderId, { expect: true })).toBe(true, `${folder} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('unfavorite an item - [C217190]', async () => {
|
||||
it('[C217190] unfavorite an item', async () => {
|
||||
await dataTable.selectItem(fileFav1);
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileFav1Id, { expect: false })).toBe(false, `${fileFav1} is marked as favorite`);
|
||||
});
|
||||
|
||||
it('favorite multiple items - all unfavorite - [C217192]', async () => {
|
||||
it('[C217192] favorite multiple items - all unfavorite', async () => {
|
||||
await dataTable.selectMultipleItems([ fileNotFav2, fileNotFav3 ]);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
@@ -188,7 +188,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileNotFav3Id, { expect: true })).toBe(true, `${fileNotFav3} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('favorite multiple items - some favorite and some unfavorite - [C217194]', async () => {
|
||||
it('[C217194] favorite multiple items - some favorite and some unfavorite', async () => {
|
||||
await dataTable.selectMultipleItems([ fileNotFav4, fileFav2 ]);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
@@ -196,7 +196,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileFav2Id, { expect: true })).toBe(true, `${fileFav2} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('unfavorite multiple items - [C217193]', async () => {
|
||||
it('[C217193] unfavorite multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([ fileFav3, fileFav4 ])
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
|
||||
@@ -222,21 +222,21 @@ describe('Mark items as favorites', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('favorite a file - [C280352]', async () => {
|
||||
it('[C280352] favorite a file', async () => {
|
||||
await dataTable.selectItem(fileNotFav1);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileNotFav1Id, { expect: true })).toBe(true, `${fileNotFav1} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('unfavorite an item - [C280353]', async () => {
|
||||
it('[C280353] unfavorite an item', async () => {
|
||||
await dataTable.selectItem(fileFav1);
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileFav1Id, { expect: false })).toBe(false, `${fileFav1} is marked as favorite`);
|
||||
});
|
||||
|
||||
it('favorite multiple items - all unfavorite - [C280355]', async () => {
|
||||
it('[C280355] favorite multiple items - all unfavorite', async () => {
|
||||
await dataTable.selectMultipleItems([ fileNotFav2, fileNotFav3 ]);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
@@ -244,7 +244,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileNotFav3Id, { expect: true })).toBe(true, `${fileNotFav3} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('favorite multiple items - some favorite and some unfavorite - [C280357]', async () => {
|
||||
it('[C280357] favorite multiple items - some favorite and some unfavorite', async () => {
|
||||
await dataTable.selectMultipleItems([ fileNotFav4, fileFav2 ]);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
@@ -252,7 +252,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileFav2Id, { expect: true })).toBe(true, `${fileFav2} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('unfavorite multiple items - [C280356]', async () => {
|
||||
it('[C280356] unfavorite multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([ fileFav3, fileFav4 ]);
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
|
||||
@@ -278,21 +278,21 @@ describe('Mark items as favorites', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('favorite a file - [C280362]', async () => {
|
||||
it('[C280362] favorite a file', async () => {
|
||||
await dataTable.selectItem(fileNotFav1);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileNotFav1Id, { expect: true })).toBe(true, `${fileNotFav1} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('unfavorite an item - [C280363]', async () => {
|
||||
it('[C280363] unfavorite an item', async () => {
|
||||
await dataTable.selectItem(fileFav1);
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileFav1Id, { expect: false })).toBe(false, `${fileFav1} is marked as favorite`);
|
||||
});
|
||||
|
||||
it('favorite multiple items - all unfavorite - [C280365]', async () => {
|
||||
it('[C280365] favorite multiple items - all unfavorite', async () => {
|
||||
await dataTable.selectMultipleItems([ fileNotFav2, fileNotFav3 ]);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
@@ -300,7 +300,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileNotFav3Id, { expect: true })).toBe(true, `${fileNotFav3} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('favorite multiple items - some favorite and some unfavorite - [C280367]', async () => {
|
||||
it('[C280367] favorite multiple items - some favorite and some unfavorite', async () => {
|
||||
await dataTable.selectMultipleItems([ fileNotFav4, fileFav2 ]);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
@@ -308,7 +308,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileFav2Id, { expect: true })).toBe(true, `${fileFav2} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('unfavorite multiple items - [C280366]', async () => {
|
||||
it('[C280366] unfavorite multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([ fileFav3, fileFav4 ]);
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
|
||||
@@ -334,7 +334,7 @@ describe('Mark items as favorites', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('unfavorite an item - [C280368]', async () => {
|
||||
it('[C280368] unfavorite an item', async () => {
|
||||
await dataTable.selectItem(fileFav1);
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
|
||||
@@ -342,7 +342,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await dataTable.isItemPresent(fileFav1)).toBe(false, 'item still displayed');
|
||||
});
|
||||
|
||||
it('unfavorite multiple items - [C280374]', async () => {
|
||||
it('[C280374] unfavorite multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([ fileFav3, fileFav4 ]);
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
|
||||
@@ -352,7 +352,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await dataTable.isItemPresent(fileFav4)).toBe(false, 'file4 still displayed');
|
||||
});
|
||||
|
||||
it('Favorite action has full star icon for items marked as favorite - [C280371]', async () => {
|
||||
it('[C280371] Favorite action has full star icon for items marked as favorite', async () => {
|
||||
await dataTable.selectItem(fileFav2);
|
||||
await toolbar.openMoreMenu();
|
||||
|
||||
@@ -381,28 +381,28 @@ describe('Mark items as favorites', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('favorite a file - [C306966]', async () => {
|
||||
it('[C306966] favorite a file', async () => {
|
||||
await dataTable.selectItem(fileSearchNotFav1);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileSearchNotFav1Id, { expect: true })).toBe(true, `${fileSearchNotFav1} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('favorite a folder - [C306971]', async () => {
|
||||
it('[C306971] favorite a folder', async () => {
|
||||
await dataTable.selectItem(folderSearch);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(folderSearchId, { expect: true })).toBe(true, `${folderSearch} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('unfavorite an item - [C306967]', async () => {
|
||||
it('[C306967] unfavorite an item', async () => {
|
||||
await dataTable.selectItem(fileSearchFav1);
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileSearchFav1Id, { expect: false })).toBe(false, `${fileSearchFav1} is marked as favorite`);
|
||||
});
|
||||
|
||||
it('favorite multiple items - all unfavorite - [C306968]', async () => {
|
||||
it('[C306968] favorite multiple items - all unfavorite', async () => {
|
||||
await dataTable.selectMultipleItems([ fileSearchNotFav2, fileSearchNotFav3 ]);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
@@ -410,7 +410,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileSearchNotFav3Id, { expect: true })).toBe(true, `${fileSearchNotFav3} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('favorite multiple items - some favorite and some unfavorite - [C306970]', async () => {
|
||||
it('[C306970] favorite multiple items - some favorite and some unfavorite', async () => {
|
||||
await dataTable.selectMultipleItems([ fileSearchNotFav4, fileSearchFav2 ]);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
@@ -418,7 +418,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileSearchFav2Id, { expect: true })).toBe(true, `${fileSearchFav2} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('unfavorite multiple items - [C306969]', async () => {
|
||||
it('[C306969] unfavorite multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([ fileSearchFav3, fileSearchFav4 ])
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
|
||||
@@ -481,14 +481,14 @@ describe('Mark items as favorites', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Favorite a folder - [C280391]', async () => {
|
||||
it('[C280391] Favorite a folder', async () => {
|
||||
await dataTable.selectItem(folderSite);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(folderSiteId, { expect: true })).toBe(true, `${folderSite} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('Favorite a file - [C280342]', async () => {
|
||||
it('[C280342] Favorite a file', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(folderSite);
|
||||
await dataTable.selectItem(fileSiteNotFav1);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
@@ -496,7 +496,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileSiteNotFav1Id, { expect: true })).toBe(true, `${fileSiteNotFav1} not marked as favorite`);
|
||||
});
|
||||
|
||||
it('Unfavorite an item - [C280343]', async () => {
|
||||
it('[C280343] Unfavorite an item', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(folderSite);
|
||||
await dataTable.selectItem(fileSiteFav1);
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
@@ -504,7 +504,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileSiteFav1Id, { expect: false })).toBe(false, `${fileSiteFav1} is marked as favorite`);
|
||||
});
|
||||
|
||||
it('Favorite multiple items - all unfavorite - [C280345]', async () => {
|
||||
it('[C280345] Favorite multiple items - all unfavorite', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(folderSite);
|
||||
await dataTable.selectMultipleItems([ fileSiteNotFav2, fileSiteNotFav3 ]);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
@@ -513,7 +513,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileSiteNotFav3Id, { expect: true })).toBe(true, 'item not marked as favorite');
|
||||
});
|
||||
|
||||
it('Unfavorite multiple items - [C280346]', async () => {
|
||||
it('[C280346] Unfavorite multiple items', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(folderSite);
|
||||
await dataTable.selectMultipleItems([ fileSiteFav2, fileSiteFav3 ]);
|
||||
await toolbar.clickMoreActionsRemoveFavorite();
|
||||
@@ -522,7 +522,7 @@ describe('Mark items as favorites', () => {
|
||||
expect(await apis.user.favorites.isFavoriteWithRetry(fileSiteFav3Id, { expect: false })).toBe(false, 'item marked as favorite');
|
||||
});
|
||||
|
||||
it('Favorite multiple items - some favorite and some unfavorite - [C280347]', async () => {
|
||||
it('[C280347] Favorite multiple items - some favorite and some unfavorite', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(folderSite);
|
||||
await dataTable.selectMultipleItems([ fileSiteNotFav4, fileSiteFav4 ]);
|
||||
await toolbar.clickMoreActionsFavorite();
|
||||
|
@@ -66,7 +66,7 @@ describe('New menu', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Actions in Personal Files - [C286524]', async () => {
|
||||
it('[C286524] Actions in Personal Files', async () => {
|
||||
await page.clickPersonalFiles();
|
||||
await sidenav.openNewMenu();
|
||||
|
||||
@@ -80,7 +80,7 @@ describe('New menu', () => {
|
||||
expect(await menu.isCreateFolderFromTemplateEnabled()).toBe(true, 'Create folder from template is not enabled');
|
||||
});
|
||||
|
||||
it('Actions in File Libraries - user with enough permissions - [C280393]', async () => {
|
||||
it('[C280393] Actions in File Libraries - user with enough permissions', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(siteUser);
|
||||
await sidenav.openNewMenu();
|
||||
@@ -95,7 +95,7 @@ describe('New menu', () => {
|
||||
expect(await menu.isCreateFolderFromTemplateEnabled()).toBe(true, 'Create folder from template is not enabled');
|
||||
});
|
||||
|
||||
it('Actions in File Libraries - user without enough permissions - [C280397]', async () => {
|
||||
it('[C280397] Actions in File Libraries - user without enough permissions', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(siteAdmin);
|
||||
await sidenav.openNewMenu();
|
||||
@@ -110,7 +110,7 @@ describe('New menu', () => {
|
||||
expect(await menu.isCreateFolderFromTemplateEnabled()).toBe(false, 'Create folder from template is not disabled');
|
||||
});
|
||||
|
||||
it('Enabled actions tooltips - [C216342]', async () => {
|
||||
it('[C216342] Enabled actions tooltips', async () => {
|
||||
await page.clickPersonalFiles();
|
||||
await sidenav.openNewMenu();
|
||||
|
||||
@@ -132,7 +132,7 @@ describe('New menu', () => {
|
||||
expect(tooltip).toContain('Create file from template');
|
||||
});
|
||||
|
||||
it('Disabled actions tooltips - [C280398]', async () => {
|
||||
it('[C280398] Disabled actions tooltips', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(siteAdmin);
|
||||
await sidenav.openNewMenu();
|
||||
|
@@ -77,7 +77,7 @@ describe('Permanently delete from Trash', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('delete a file - [C217091]', async () => {
|
||||
it('[C217091] delete a file', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickPermanentlyDelete();
|
||||
await page.waitForDialog();
|
||||
@@ -87,7 +87,7 @@ describe('Permanently delete from Trash', () => {
|
||||
expect(await dataTable.isItemPresent(file1)).toBe(false, 'Item was not deleted');
|
||||
});
|
||||
|
||||
it('delete a folder - [C280416]', async () => {
|
||||
it('[C280416] delete a folder', async () => {
|
||||
await dataTable.selectItem(folder1);
|
||||
await toolbar.clickPermanentlyDelete();
|
||||
await page.waitForDialog();
|
||||
@@ -97,7 +97,7 @@ describe('Permanently delete from Trash', () => {
|
||||
expect(await dataTable.isItemPresent(folder1)).toBe(false, 'Item was not deleted');
|
||||
});
|
||||
|
||||
it('delete a library - [C290103]', async () => {
|
||||
it('[C290103] delete a library', async () => {
|
||||
await dataTable.selectItem(site);
|
||||
await toolbar.clickPermanentlyDelete();
|
||||
await page.waitForDialog();
|
||||
@@ -107,7 +107,7 @@ describe('Permanently delete from Trash', () => {
|
||||
expect(await dataTable.isItemPresent(site)).toBe(false, `${site} was not deleted`);
|
||||
});
|
||||
|
||||
it('delete multiple items - [C280417]', async () => {
|
||||
it('[C280417] delete multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([ file2, folder2 ]);
|
||||
await toolbar.clickPermanentlyDelete();
|
||||
await page.waitForDialog();
|
||||
@@ -118,7 +118,7 @@ describe('Permanently delete from Trash', () => {
|
||||
expect(await dataTable.isItemPresent(folder2)).toBe(false, 'Item was not deleted');
|
||||
});
|
||||
|
||||
it('Confirmation dialog UI - [C269113]', async () => {
|
||||
it('[C269113] Confirmation dialog UI', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickPermanentlyDelete();
|
||||
await page.waitForDialog();
|
||||
@@ -133,7 +133,7 @@ describe('Permanently delete from Trash', () => {
|
||||
await dataTable.clearSelection();
|
||||
});
|
||||
|
||||
it('Keep action cancels the deletion - [C269115]', async () => {
|
||||
it('[C269115] Keep action cancels the deletion', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickPermanentlyDelete();
|
||||
await page.waitForDialog();
|
||||
|
@@ -77,7 +77,7 @@ describe('Restore from Trash', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('restore file - [C217177]', async () => {
|
||||
it('[C217177] restore file', async () => {
|
||||
await dataTable.selectItem(file);
|
||||
await toolbar.clickRestore();
|
||||
const text = await page.getSnackBarMessage();
|
||||
@@ -90,7 +90,7 @@ describe('Restore from Trash', () => {
|
||||
await apis.user.nodes.deleteNodeById(fileId, false);
|
||||
});
|
||||
|
||||
it('restore folder - [C280438]', async () => {
|
||||
it('[C280438] restore folder', async () => {
|
||||
await dataTable.selectItem(folder);
|
||||
await toolbar.clickRestore();
|
||||
const text = await page.getSnackBarMessage();
|
||||
@@ -103,7 +103,7 @@ describe('Restore from Trash', () => {
|
||||
await apis.user.nodes.deleteNodeById(folderId, false);
|
||||
});
|
||||
|
||||
it('restore library - [C290104]', async () => {
|
||||
it('[C290104] restore library', async () => {
|
||||
await dataTable.selectItem(site);
|
||||
await toolbar.clickRestore();
|
||||
const text = await page.getSnackBarMessage();
|
||||
@@ -114,7 +114,7 @@ describe('Restore from Trash', () => {
|
||||
expect(await page.dataTable.isItemPresent(site)).toBe(true, `${site} not displayed in list`);
|
||||
});
|
||||
|
||||
it('restore multiple items - [C217182]', async () => {
|
||||
it('[C217182] restore multiple items', async () => {
|
||||
await dataTable.selectMultipleItems([file, folder]);
|
||||
await toolbar.clickRestore();
|
||||
const text = await page.getSnackBarMessage();
|
||||
@@ -129,7 +129,7 @@ describe('Restore from Trash', () => {
|
||||
await apis.user.nodes.deleteNodesById([fileId, folderId], false);
|
||||
});
|
||||
|
||||
it('View from notification - [C217181]', async () => {
|
||||
it('[C217181] View from notification', async () => {
|
||||
await dataTable.selectItem(file);
|
||||
await toolbar.clickRestore();
|
||||
await page.clickSnackBarAction();
|
||||
@@ -179,14 +179,14 @@ describe('Restore from Trash', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Restore a file when another file with same name exists on the restore location - [C217178]', async () => {
|
||||
it('[C217178] Restore a file when another file with same name exists on the restore location', async () => {
|
||||
await page.clickTrashAndWait();
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickRestore();
|
||||
expect(await page.getSnackBarMessage()).toEqual(`Can't restore, ${file1} already exists`);
|
||||
});
|
||||
|
||||
it('Restore a file when original location no longer exists - [C217179]', async () => {
|
||||
it('[C217179] Restore a file when original location no longer exists', async () => {
|
||||
await page.clickTrashAndWait();
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickRestore();
|
||||
@@ -248,13 +248,13 @@ describe('Restore from Trash', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('one failure - [C217183]', async () => {
|
||||
it('[C217183] one failure', async () => {
|
||||
await dataTable.selectMultipleItems([file1, file2]);
|
||||
await toolbar.clickRestore();
|
||||
expect(await page.getSnackBarMessage()).toEqual(`Can't restore ${file1}, the original location no longer exists`);
|
||||
});
|
||||
|
||||
it('multiple failures - [C217184]', async () => {
|
||||
it('[C217184] multiple failures', async () => {
|
||||
await dataTable.selectMultipleItems([file3, file4, file5]);
|
||||
await toolbar.clickRestore();
|
||||
expect(await page.getSnackBarMessage()).toEqual('2 items not restored because of issues with the restore location');
|
||||
|
@@ -83,7 +83,7 @@ describe('Share a file', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('A non-logged user can download the shared file from the viewer - [C286326]', async () => {
|
||||
it('[C286326] A non-logged user can download the shared file from the viewer', async () => {
|
||||
await browser.get(file6SharedLink);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'viewer is not open');
|
||||
expect(await viewer.getFileTitle()).toEqual(file6);
|
||||
@@ -150,7 +150,7 @@ describe('Share a file', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Share dialog default values - [C286327]', async () => {
|
||||
it('[C286327] Share dialog default values', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -166,7 +166,7 @@ describe('Share a file', () => {
|
||||
expect(await shareDialog.isCloseEnabled()).toBe(true, 'Close button is not enabled');
|
||||
});
|
||||
|
||||
it('Close dialog - [C286328]', async () => {
|
||||
it('[C286328] Close dialog', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -176,7 +176,7 @@ describe('Share a file', () => {
|
||||
expect(await shareDialog.isDialogOpen()).toBe(false, 'Share dialog is open');
|
||||
});
|
||||
|
||||
it('Share a file - [C286329]', async () => {
|
||||
it('[C286329] Share a file', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -188,7 +188,7 @@ describe('Share a file', () => {
|
||||
expect(url).toContain(sharedId);
|
||||
});
|
||||
|
||||
it('Copy shared file URL - [C286330]', async () => {
|
||||
it('[C286330] Copy shared file URL', async () => {
|
||||
await dataTable.selectItem(file4);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -205,7 +205,7 @@ describe('Share a file', () => {
|
||||
await page.load();
|
||||
});
|
||||
|
||||
it('Share a file with expiration date - [C286332]', async () => {
|
||||
it('[C286332] Share a file with expiration date', async () => {
|
||||
await dataTable.selectItem(file5);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -227,7 +227,7 @@ describe('Share a file', () => {
|
||||
expect(Utils.formatDate(expireDateProperty)).toEqual(Utils.formatDate(inputDate));
|
||||
});
|
||||
|
||||
it('Expire date is displayed correctly - [C286337]', async () => {
|
||||
it('[C286337] Expire date is displayed correctly', async () => {
|
||||
await dataTable.selectItem(file6);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -238,7 +238,7 @@ describe('Share a file', () => {
|
||||
expect(Utils.formatDate(await shareDialog.getExpireDate())).toEqual(Utils.formatDate(expiryDate));
|
||||
});
|
||||
|
||||
it('Disable the share link expiration - [C286333]', async () => {
|
||||
it('[C286333] Disable the share link expiration', async () => {
|
||||
await dataTable.selectItem(file7);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -254,7 +254,7 @@ describe('Share a file', () => {
|
||||
expect(await apis.user.nodes.getSharedExpiryDate(file7Id)).toBe('', `${file7} link still has expiration`);
|
||||
});
|
||||
|
||||
it('Shared file URL is not changed when Share dialog is closed and opened again - [C286335]', async () => {
|
||||
it('[C286335] Shared file URL is not changed when Share dialog is closed and opened again', async () => {
|
||||
await dataTable.selectItem(file8);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -271,7 +271,7 @@ describe('Share a file', () => {
|
||||
expect(url1).toEqual(url2);
|
||||
});
|
||||
|
||||
it('Share a file from the context menu - [C286345]', async () => {
|
||||
it('[C286345] Share a file from the context menu', async () => {
|
||||
await dataTable.rightClickOnItem(file9);
|
||||
await contextMenu.waitForMenuToOpen();
|
||||
await contextMenu.clickShare();
|
||||
@@ -331,7 +331,7 @@ describe('Share a file', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Share dialog default values - [C286639]', async () => {
|
||||
it('[C286639] Share dialog default values', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -347,7 +347,7 @@ describe('Share a file', () => {
|
||||
expect(await shareDialog.isCloseEnabled()).toBe(true, 'Close button is not enabled');
|
||||
});
|
||||
|
||||
it('Close dialog - [C286640]', async () => {
|
||||
it('[C286640] Close dialog', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -357,7 +357,7 @@ describe('Share a file', () => {
|
||||
expect(await shareDialog.isDialogOpen()).toBe(false, 'Share dialog is open');
|
||||
});
|
||||
|
||||
it('Share a file - [C286641]', async () => {
|
||||
it('[C286641] Share a file', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -369,7 +369,7 @@ describe('Share a file', () => {
|
||||
expect(url).toContain(sharedId);
|
||||
});
|
||||
|
||||
it('Copy shared file URL - [C286642]', async () => {
|
||||
it('[C286642] Copy shared file URL', async () => {
|
||||
await dataTable.selectItem(file4);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -386,7 +386,7 @@ describe('Share a file', () => {
|
||||
await page.load();
|
||||
});
|
||||
|
||||
it('Share a file with expiration date - [C286643]', async () => {
|
||||
it('[C286643] Share a file with expiration date', async () => {
|
||||
await dataTable.selectItem(file5);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -408,7 +408,7 @@ describe('Share a file', () => {
|
||||
expect(Utils.formatDate(expireDateProperty)).toEqual(Utils.formatDate(inputDate));
|
||||
});
|
||||
|
||||
it('Expire date is displayed correctly - [C286644]', async () => {
|
||||
it('[C286644] Expire date is displayed correctly', async () => {
|
||||
await dataTable.selectItem(file6);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -419,7 +419,7 @@ describe('Share a file', () => {
|
||||
expect(Utils.formatDate(await shareDialog.getExpireDate())).toEqual(Utils.formatDate(expiryDate));
|
||||
});
|
||||
|
||||
it('Disable the share link expiration - [C286645]', async () => {
|
||||
it('[C286645] Disable the share link expiration', async () => {
|
||||
await dataTable.selectItem(file7);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -435,7 +435,7 @@ describe('Share a file', () => {
|
||||
expect(await apis.user.nodes.getSharedExpiryDate(file7Id)).toBe('', `${file7} link still has expiration`);
|
||||
});
|
||||
|
||||
it('Shared file URL is not changed when Share dialog is closed and opened again - [C286646]', async () => {
|
||||
it('[C286646] Shared file URL is not changed when Share dialog is closed and opened again', async () => {
|
||||
await dataTable.selectItem(file8);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -452,7 +452,7 @@ describe('Share a file', () => {
|
||||
expect(url1).toEqual(url2);
|
||||
});
|
||||
|
||||
it('Share a file from the context menu - [C286647]', async () => {
|
||||
it('[C286647] Share a file from the context menu', async () => {
|
||||
await dataTable.rightClickOnItem(file9);
|
||||
await contextMenu.waitForMenuToOpen();
|
||||
await contextMenu.clickShare();
|
||||
@@ -509,7 +509,7 @@ describe('Share a file', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Share dialog default values - [C286657]', async () => {
|
||||
it('[C286657] Share dialog default values', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -525,7 +525,7 @@ describe('Share a file', () => {
|
||||
expect(await shareDialog.isCloseEnabled()).toBe(true, 'Close button is not enabled');
|
||||
});
|
||||
|
||||
it('Close dialog - [C286658]', async () => {
|
||||
it('[C286658] Close dialog', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -535,7 +535,7 @@ describe('Share a file', () => {
|
||||
expect(await shareDialog.isDialogOpen()).toBe(false, 'Share dialog is open');
|
||||
});
|
||||
|
||||
it('Share a file - [C286659]', async () => {
|
||||
it('[C286659] Share a file', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -547,7 +547,7 @@ describe('Share a file', () => {
|
||||
expect(url).toContain(sharedId);
|
||||
});
|
||||
|
||||
it('Copy shared file URL - [C286660]', async () => {
|
||||
it('[C286660] Copy shared file URL', async () => {
|
||||
await dataTable.selectItem(file4);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -564,7 +564,7 @@ describe('Share a file', () => {
|
||||
await page.load();
|
||||
});
|
||||
|
||||
it('Share a file with expiration date - [C286661]', async () => {
|
||||
it('[C286661] Share a file with expiration date', async () => {
|
||||
await dataTable.selectItem(file5);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -586,7 +586,7 @@ describe('Share a file', () => {
|
||||
expect(Utils.formatDate(expireDateProperty)).toEqual(Utils.formatDate(inputDate));
|
||||
});
|
||||
|
||||
it('Expire date is displayed correctly - [C286662]', async () => {
|
||||
it('[C286662] Expire date is displayed correctly', async () => {
|
||||
await dataTable.selectItem(file6);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -597,7 +597,7 @@ describe('Share a file', () => {
|
||||
expect(Utils.formatDate(await shareDialog.getExpireDate())).toEqual(Utils.formatDate(expiryDate));
|
||||
});
|
||||
|
||||
it('Disable the share link expiration - [C286663]', async () => {
|
||||
it('[C286663] Disable the share link expiration', async () => {
|
||||
await dataTable.selectItem(file7);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -613,7 +613,7 @@ describe('Share a file', () => {
|
||||
expect(await apis.user.nodes.getSharedExpiryDate(file7Id)).toBe('', `${file7} link still has expiration`);
|
||||
});
|
||||
|
||||
it('Shared file URL is not changed when Share dialog is closed and opened again - [C286664]', async () => {
|
||||
it('[C286664] Shared file URL is not changed when Share dialog is closed and opened again', async () => {
|
||||
await dataTable.selectItem(file8);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -630,7 +630,7 @@ describe('Share a file', () => {
|
||||
expect(url1).toEqual(url2);
|
||||
});
|
||||
|
||||
it('Share a file from the context menu - [C286665]', async () => {
|
||||
it('[C286665] Share a file from the context menu', async () => {
|
||||
await dataTable.rightClickOnItem(file9);
|
||||
await contextMenu.waitForMenuToOpen();
|
||||
await contextMenu.clickShare();
|
||||
@@ -689,7 +689,7 @@ describe('Share a file', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Share dialog default values - [C286648]', async () => {
|
||||
it('[C286648] Share dialog default values', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -705,7 +705,7 @@ describe('Share a file', () => {
|
||||
expect(await shareDialog.isCloseEnabled()).toBe(true, 'Close button is not enabled');
|
||||
});
|
||||
|
||||
it('Close dialog - [C286649]', async () => {
|
||||
it('[C286649] Close dialog', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -715,7 +715,7 @@ describe('Share a file', () => {
|
||||
expect(await shareDialog.isDialogOpen()).toBe(false, 'Share dialog is open');
|
||||
});
|
||||
|
||||
it('Copy shared file URL - [C286651]', async () => {
|
||||
it('[C286651] Copy shared file URL', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -732,7 +732,7 @@ describe('Share a file', () => {
|
||||
await page.load();
|
||||
});
|
||||
|
||||
it('Expire date is displayed correctly - [C286653]', async () => {
|
||||
it('[C286653] Expire date is displayed correctly', async () => {
|
||||
await dataTable.selectItem(file4);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -743,7 +743,7 @@ describe('Share a file', () => {
|
||||
expect(Utils.formatDate(await shareDialog.getExpireDate())).toEqual(Utils.formatDate(expiryDate));
|
||||
});
|
||||
|
||||
it('Disable the share link expiration - [C286654]', async () => {
|
||||
it('[C286654] Disable the share link expiration', async () => {
|
||||
await dataTable.selectItem(file5);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -759,7 +759,7 @@ describe('Share a file', () => {
|
||||
expect(await apis.user.nodes.getSharedExpiryDate(file5Id)).toBe('', `${file5} link still has expiration`);
|
||||
});
|
||||
|
||||
it('Shared file URL is not changed when Share dialog is closed and opened again - [C286655]', async () => {
|
||||
it('[C286655] Shared file URL is not changed when Share dialog is closed and opened again', async () => {
|
||||
await dataTable.selectItem(file6);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -776,7 +776,7 @@ describe('Share a file', () => {
|
||||
expect(url1).toEqual(url2);
|
||||
});
|
||||
|
||||
it('Open Share dialog from context menu - [C286656]', async () => {
|
||||
it('[C286656] Open Share dialog from context menu', async () => {
|
||||
await dataTable.rightClickOnItem(file7);
|
||||
await contextMenu.waitForMenuToOpen();
|
||||
await contextMenu.clickSharedLinkSettings();
|
||||
@@ -849,7 +849,7 @@ describe('Share a file', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Share dialog default values - [C286666]', async () => {
|
||||
it('[C286666] Share dialog default values', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -865,7 +865,7 @@ describe('Share a file', () => {
|
||||
expect(await shareDialog.isCloseEnabled()).toBe(true, 'Close button is not enabled');
|
||||
});
|
||||
|
||||
it('Close dialog - [C286667]', async () => {
|
||||
it('[C286667] Close dialog', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -875,7 +875,7 @@ describe('Share a file', () => {
|
||||
expect(await shareDialog.isDialogOpen()).toBe(false, 'Share dialog is open');
|
||||
});
|
||||
|
||||
it('Share a file - [C286668]', async () => {
|
||||
it('[C286668] Share a file', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -887,7 +887,7 @@ describe('Share a file', () => {
|
||||
expect(url).toContain(sharedId);
|
||||
});
|
||||
|
||||
it('Copy shared file URL - [C286669]', async () => {
|
||||
it('[C286669] Copy shared file URL', async () => {
|
||||
await dataTable.selectItem(file4);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -904,7 +904,7 @@ describe('Share a file', () => {
|
||||
await page.load();
|
||||
});
|
||||
|
||||
it('Share a file with expiration date - [C286670]', async () => {
|
||||
it('[C286670] Share a file with expiration date', async () => {
|
||||
await dataTable.selectItem(file5);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -926,7 +926,7 @@ describe('Share a file', () => {
|
||||
expect(Utils.formatDate(expireDateProperty)).toEqual(Utils.formatDate(inputDate));
|
||||
});
|
||||
|
||||
it('Expire date is displayed correctly - [C286671]', async () => {
|
||||
it('[C286671] Expire date is displayed correctly', async () => {
|
||||
await dataTable.selectItem(file6);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -937,7 +937,7 @@ describe('Share a file', () => {
|
||||
expect(Utils.formatDate(await shareDialog.getExpireDate())).toEqual(Utils.formatDate(expiryDate));
|
||||
});
|
||||
|
||||
it('Disable the share link expiration - [C286672]', async () => {
|
||||
it('[C286672] Disable the share link expiration', async () => {
|
||||
await dataTable.selectItem(file7);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -953,7 +953,7 @@ describe('Share a file', () => {
|
||||
expect(await apis.user.nodes.getSharedExpiryDate(file7Id)).toBe('', `${file7} link still has expiration`);
|
||||
});
|
||||
|
||||
it('Shared file URL is not changed when Share dialog is closed and opened again - [C286673]', async () => {
|
||||
it('[C286673] Shared file URL is not changed when Share dialog is closed and opened again', async () => {
|
||||
await dataTable.selectItem(file8);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -970,7 +970,7 @@ describe('Share a file', () => {
|
||||
expect(url1).toEqual(url2);
|
||||
});
|
||||
|
||||
it('Share a file from the context menu - [C286674]', async () => {
|
||||
it('[C286674] Share a file from the context menu', async () => {
|
||||
await dataTable.rightClickOnItem(file9);
|
||||
await contextMenu.waitForMenuToOpen();
|
||||
await contextMenu.clickShare();
|
||||
@@ -1029,7 +1029,7 @@ describe('Share a file', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Share a file - [C306975]', async () => {
|
||||
it('[C306975] Share a file', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -1041,7 +1041,7 @@ describe('Share a file', () => {
|
||||
expect(url).toContain(sharedId);
|
||||
});
|
||||
|
||||
it('Share a file with expiration date - [C306977]', async () => {
|
||||
it('[C306977] Share a file with expiration date', async () => {
|
||||
await dataTable.selectItem(file5);
|
||||
await toolbar.clickShare();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -1063,7 +1063,7 @@ describe('Share a file', () => {
|
||||
expect(Utils.formatDate(expireDateProperty)).toEqual(Utils.formatDate(inputDate));
|
||||
});
|
||||
|
||||
it('Expire date is displayed correctly - [C306978]', async () => {
|
||||
it('[C306978] Expire date is displayed correctly', async () => {
|
||||
await dataTable.selectItem(file6);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -1074,7 +1074,7 @@ describe('Share a file', () => {
|
||||
expect(Utils.formatDate(await shareDialog.getExpireDate())).toEqual(Utils.formatDate(expiryDate));
|
||||
});
|
||||
|
||||
it('Disable the share link expiration - [C306979]', async () => {
|
||||
it('[C306979] Disable the share link expiration', async () => {
|
||||
await dataTable.selectItem(file7);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -1090,7 +1090,7 @@ describe('Share a file', () => {
|
||||
expect(await apis.user.nodes.getSharedExpiryDate(file7Id)).toBe('', `${file7} link still has expiration`);
|
||||
});
|
||||
|
||||
it('Share a file from the context menu - [C306981]', async () => {
|
||||
it('[C306981] Share a file from the context menu', async () => {
|
||||
await dataTable.rightClickOnItem(file9);
|
||||
await contextMenu.waitForMenuToOpen();
|
||||
await contextMenu.clickShare();
|
||||
|
@@ -105,7 +105,7 @@ describe('Unshare a file from Search Results', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Unshare dialog UI - [C306995]', async () => {
|
||||
it('[C306995] Unshare dialog UI', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(file1);
|
||||
@@ -125,7 +125,7 @@ describe('Unshare a file from Search Results', () => {
|
||||
expect(await confirmDialog.isCancelEnabled()).toBe(true, 'CANCEL button is not enabled');
|
||||
});
|
||||
|
||||
it('Unshare a file - [C306996]', async () => {
|
||||
it('[C306996] Unshare a file', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(file2);
|
||||
@@ -150,7 +150,7 @@ describe('Unshare a file from Search Results', () => {
|
||||
await page.load();
|
||||
});
|
||||
|
||||
it('Cancel the Unshare action - [C306997]', async () => {
|
||||
it('[C306997] Cancel the Unshare action', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(file3);
|
||||
@@ -172,7 +172,7 @@ describe('Unshare a file from Search Results', () => {
|
||||
expect(urlBefore).toEqual(urlAfter);
|
||||
});
|
||||
|
||||
it('Unshare a file from the context menu - [C306999]', async () => {
|
||||
it('[C306999] Unshare a file from the context menu', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(file4);
|
||||
@@ -198,7 +198,7 @@ describe('Unshare a file from Search Results', () => {
|
||||
await page.load();
|
||||
});
|
||||
|
||||
it('Consumer - on Search Results - file shared by other user - [C306998]', async () => {
|
||||
it('[C306998] Consumer - on Search Results - file shared by other user', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(fileSite1);
|
||||
@@ -216,7 +216,7 @@ describe('Unshare a file from Search Results', () => {
|
||||
expect(msg).toContain(`You don't have permission to unshare this file`);
|
||||
});
|
||||
|
||||
it('Consumer - on Search Results - file shared by the user - [C307000]', async () => {
|
||||
it('[C307000] Consumer - on Search Results - file shared by the user', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(fileSite2);
|
||||
|
@@ -104,7 +104,7 @@ describe('Unshare a file', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Unshare dialog UI - [C286339]', async () => {
|
||||
it('[C286339] Unshare dialog UI', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -119,7 +119,7 @@ describe('Unshare a file', () => {
|
||||
expect(await confirmDialog.isCancelEnabled()).toBe(true, 'CANCEL button is not enabled');
|
||||
});
|
||||
|
||||
it('Unshare a file - [C286340]', async () => {
|
||||
it('[C286340] Unshare a file', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -139,7 +139,7 @@ describe('Unshare a file', () => {
|
||||
await page.load();
|
||||
});
|
||||
|
||||
it('Cancel the Unshare action - [C286341]', async () => {
|
||||
it('[C286341] Cancel the Unshare action', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -156,7 +156,7 @@ describe('Unshare a file', () => {
|
||||
expect(urlBefore).toEqual(urlAfter);
|
||||
});
|
||||
|
||||
it('Unshare a file from the context menu - [C286359]', async () => {
|
||||
it('[C286359] Unshare a file from the context menu', async () => {
|
||||
await dataTable.rightClickOnItem(file4);
|
||||
await contextMenu.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -225,7 +225,7 @@ describe('Unshare a file', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Unshare dialog UI - [C286679]', async () => {
|
||||
it('[C286679] Unshare dialog UI', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -240,7 +240,7 @@ describe('Unshare a file', () => {
|
||||
expect(await confirmDialog.isCancelEnabled()).toBe(true, 'CANCEL button is not enabled');
|
||||
});
|
||||
|
||||
it('Unshare a file - [C286680]', async () => {
|
||||
it('[C286680] Unshare a file', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -260,7 +260,7 @@ describe('Unshare a file', () => {
|
||||
await page.load();
|
||||
});
|
||||
|
||||
it('Cancel the Unshare action - [C286681]', async () => {
|
||||
it('[C286681] Cancel the Unshare action', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -277,7 +277,7 @@ describe('Unshare a file', () => {
|
||||
expect(urlBefore).toEqual(urlAfter);
|
||||
});
|
||||
|
||||
it('Unshare a file from the context menu - [C286683]', async () => {
|
||||
it('[C286683] Unshare a file from the context menu', async () => {
|
||||
await dataTable.rightClickOnItem(file4);
|
||||
await contextMenu.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -338,7 +338,7 @@ describe('Unshare a file', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Unshare dialog UI - [C286689]', async () => {
|
||||
it('[C286689] Unshare dialog UI', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -353,7 +353,7 @@ describe('Unshare a file', () => {
|
||||
expect(await confirmDialog.isCancelEnabled()).toBe(true, 'CANCEL button is not enabled');
|
||||
});
|
||||
|
||||
it('Unshare a file - [C286690]', async () => {
|
||||
it('[C286690] Unshare a file', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -373,7 +373,7 @@ describe('Unshare a file', () => {
|
||||
await page.load();
|
||||
});
|
||||
|
||||
it('Cancel the Unshare action - [C286691]', async () => {
|
||||
it('[C286691] Cancel the Unshare action', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -390,7 +390,7 @@ describe('Unshare a file', () => {
|
||||
expect(urlBefore).toEqual(urlAfter);
|
||||
});
|
||||
|
||||
it('Unshare a file from the context menu - [C286693]', async () => {
|
||||
it('[C286693] Unshare a file from the context menu', async () => {
|
||||
await dataTable.rightClickOnItem(file4);
|
||||
await contextMenu.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -451,7 +451,7 @@ describe('Unshare a file', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Unshare dialog UI - [C286684]', async () => {
|
||||
it('[C286684] Unshare dialog UI', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -466,7 +466,7 @@ describe('Unshare a file', () => {
|
||||
expect(await confirmDialog.isCancelEnabled()).toBe(true, 'CANCEL button is not enabled');
|
||||
});
|
||||
|
||||
it('Unshare a file - [C286685]', async () => {
|
||||
it('[C286685] Unshare a file', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -486,7 +486,7 @@ describe('Unshare a file', () => {
|
||||
await page.load();
|
||||
});
|
||||
|
||||
it('Cancel the Unshare action - [C286686]', async () => {
|
||||
it('[C286686] Cancel the Unshare action', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -503,7 +503,7 @@ describe('Unshare a file', () => {
|
||||
expect(urlBefore).toEqual(urlAfter);
|
||||
});
|
||||
|
||||
it('Unshare a file from the context menu - [C286688]', async () => {
|
||||
it('[C286688] Unshare a file from the context menu', async () => {
|
||||
await dataTable.rightClickOnItem(file4);
|
||||
await contextMenu.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -571,7 +571,7 @@ describe('Unshare a file', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Unshare dialog UI - [C286694]', async () => {
|
||||
it('[C286694] Unshare dialog UI', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -586,7 +586,7 @@ describe('Unshare a file', () => {
|
||||
expect(await confirmDialog.isCancelEnabled()).toBe(true, 'CANCEL button is not enabled');
|
||||
});
|
||||
|
||||
it('Unshare a file - [C286695]', async () => {
|
||||
it('[C286695] Unshare a file', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -606,7 +606,7 @@ describe('Unshare a file', () => {
|
||||
await page.load();
|
||||
});
|
||||
|
||||
it('Cancel the Unshare action - [C286696]', async () => {
|
||||
it('[C286696] Cancel the Unshare action', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -623,7 +623,7 @@ describe('Unshare a file', () => {
|
||||
expect(urlBefore).toEqual(urlAfter);
|
||||
});
|
||||
|
||||
it('Unshare a file from the context menu - [C286698]', async () => {
|
||||
it('[C286698] Unshare a file from the context menu', async () => {
|
||||
await dataTable.rightClickOnItem(file4);
|
||||
await contextMenu.clickSharedLinkSettings();
|
||||
await shareDialog.waitForDialogToOpen();
|
||||
@@ -695,7 +695,7 @@ describe('Unshare a file', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('on File Libraries - file shared by other user - [C286682]', async () => {
|
||||
it('[C286682] on File Libraries - file shared by other user', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(sitePrivate);
|
||||
await dataTable.waitForHeader();
|
||||
@@ -712,7 +712,7 @@ describe('Unshare a file', () => {
|
||||
expect(msg).toContain(`You don't have permission to unshare this file`);
|
||||
});
|
||||
|
||||
it('on File Libraries - file shared by the user - [C286701]', async () => {
|
||||
it('[C286701] on File Libraries - file shared by the user', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(sitePrivate);
|
||||
await dataTable.waitForHeader();
|
||||
@@ -731,7 +731,7 @@ describe('Unshare a file', () => {
|
||||
expect(await apis.user.nodes.isFileShared(file2FileLibId)).toBe(false, `${file2FileLib} is shared`);
|
||||
});
|
||||
|
||||
it('on Shared Files - file shared by other user - [C286687]', async () => {
|
||||
it('[C286687] on Shared Files - file shared by other user', async () => {
|
||||
await page.clickSharedFilesAndWait();
|
||||
await dataTable.selectItem(file1Shared);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
@@ -746,7 +746,7 @@ describe('Unshare a file', () => {
|
||||
expect(msg).toContain(`You don't have permission to unshare this file`);
|
||||
});
|
||||
|
||||
it('on Shared Files - file shared by the user - [C286702]', async () => {
|
||||
it('[C286702] on Shared Files - file shared by the user', async () => {
|
||||
await page.clickSharedFilesAndWait();
|
||||
await dataTable.selectItem(file2Shared);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
@@ -763,7 +763,7 @@ describe('Unshare a file', () => {
|
||||
expect(await apis.user.nodes.isFileShared(file2SharedId)).toBe(false, `${file2Shared} is shared`);
|
||||
});
|
||||
|
||||
it('on Favorites - file shared by other user - [C286697]', async () => {
|
||||
it('[C286697] on Favorites - file shared by other user', async () => {
|
||||
await page.clickFavoritesAndWait();
|
||||
await dataTable.selectItem(file1Fav);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
@@ -778,7 +778,7 @@ describe('Unshare a file', () => {
|
||||
expect(msg).toContain(`You don't have permission to unshare this file`);
|
||||
});
|
||||
|
||||
it('on Favorites - file shared by the user - [C286703]', async () => {
|
||||
it('[C286703] on Favorites - file shared by the user', async () => {
|
||||
await page.clickFavoritesAndWait();
|
||||
await dataTable.selectItem(file2Fav);
|
||||
await toolbar.clickSharedLinkSettings();
|
||||
|
@@ -123,7 +123,7 @@ describe('Upload new version', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('dialog UI defaults - [C297544]', async () => {
|
||||
it('[C297544] dialog UI defaults', async () => {
|
||||
await dataTable.selectItem(file);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -139,7 +139,7 @@ describe('Upload new version', () => {
|
||||
expect(await uploadNewVersionDialog.isUploadButtonEnabled()).toBe(true, 'Update button not enabled');
|
||||
});
|
||||
|
||||
it('file is updated after uploading a new version - major - [C297545]', async () => {
|
||||
it('[C297545] file is updated after uploading a new version - major', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -156,7 +156,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file1Id)).toEqual('2.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is updated after uploading a new version - minor - [C297546]', async () => {
|
||||
it('[C297546] file is updated after uploading a new version - minor', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -173,7 +173,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file2Id)).toEqual('1.1', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is not updated when clicking Cancel - [C297547]', async () => {
|
||||
it('[C297547] file is not updated when clicking Cancel', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -189,7 +189,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file3Id)).toEqual('1.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('upload new version fails when new file name already exists - [C297548]', async () => {
|
||||
it('[C297548] upload new version fails when new file name already exists', async () => {
|
||||
await dataTable.selectItem(file4);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -208,7 +208,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file4Id)).toEqual('1.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is unlocked after uploading a new version - [C297549]', async () => {
|
||||
it('[C297549] file is unlocked after uploading a new version', async () => {
|
||||
await dataTable.selectItem(fileLocked1);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -226,7 +226,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(fileLocked1Id)).toEqual('1.1', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file remains locked after canceling of uploading a new version - [C297550]', async () => {
|
||||
it('[C297550] file remains locked after canceling of uploading a new version', async () => {
|
||||
await dataTable.selectItem(fileLocked2);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -274,7 +274,7 @@ describe('Upload new version', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('dialog UI defaults - [C297551]', async () => {
|
||||
it('[C297551] dialog UI defaults', async () => {
|
||||
await dataTable.selectItem(file);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -290,7 +290,7 @@ describe('Upload new version', () => {
|
||||
expect(await uploadNewVersionDialog.isUploadButtonEnabled()).toBe(true, 'Update button not enabled');
|
||||
});
|
||||
|
||||
it('file is updated after uploading a new version - major - [C297552]', async () => {
|
||||
it('[C297552] file is updated after uploading a new version - major', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -307,7 +307,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file1Id)).toEqual('2.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is updated after uploading a new version - minor - [C297553]', async () => {
|
||||
it('[C297553] file is updated after uploading a new version - minor', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -324,7 +324,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file2Id)).toEqual('1.1', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is not updated when clicking Cancel - [C297554]', async () => {
|
||||
it('[C297554] file is not updated when clicking Cancel', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -340,7 +340,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file3Id)).toEqual('1.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('upload new version fails when new file name already exists - [C297555]', async () => {
|
||||
it('[C297555] upload new version fails when new file name already exists', async () => {
|
||||
await dataTable.selectItem(file4);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -359,7 +359,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file4Id)).toEqual('1.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is unlocked after uploading a new version - [C297556]', async () => {
|
||||
it('[C297556] file is unlocked after uploading a new version', async () => {
|
||||
await dataTable.selectItem(fileLocked1);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -377,7 +377,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(fileLocked1Id)).toEqual('1.1', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file remains locked after canceling of uploading a new version - [C297557]', async () => {
|
||||
it('[C297557] file remains locked after canceling of uploading a new version', async () => {
|
||||
await dataTable.selectItem(fileLocked2);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -424,7 +424,7 @@ describe('Upload new version', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('dialog UI defaults - [C297558]', async () => {
|
||||
it('[C297558] dialog UI defaults', async () => {
|
||||
await dataTable.selectItem(file, parentRF);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -440,7 +440,7 @@ describe('Upload new version', () => {
|
||||
expect(await uploadNewVersionDialog.isUploadButtonEnabled()).toBe(true, 'Update button not enabled');
|
||||
});
|
||||
|
||||
it('file is updated after uploading a new version - major - [C297559]', async () => {
|
||||
it('[C297559] file is updated after uploading a new version - major', async () => {
|
||||
await dataTable.selectItem(file1, parentRF);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -457,7 +457,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file1Id)).toEqual('2.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is updated after uploading a new version - minor - [C297560]', async () => {
|
||||
it('[C297560] file is updated after uploading a new version - minor', async () => {
|
||||
await dataTable.selectItem(file2, parentRF);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -474,7 +474,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file2Id)).toEqual('1.1', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is not updated when clicking Cancel - [C297561]', async () => {
|
||||
it('[C297561] file is not updated when clicking Cancel', async () => {
|
||||
await dataTable.selectItem(file3, parentRF);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -490,7 +490,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file3Id)).toEqual('1.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('upload new version fails when new file name already exists - [C297562]', async () => {
|
||||
it('[C297562] upload new version fails when new file name already exists', async () => {
|
||||
await dataTable.selectItem(file4, parentRF);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -509,7 +509,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file4Id)).toEqual('1.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is unlocked after uploading a new version - [C297563]', async () => {
|
||||
it('[C297563] file is unlocked after uploading a new version', async () => {
|
||||
await dataTable.selectItem(fileLocked1, parentRF);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -527,7 +527,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(fileLocked1Id)).toEqual('1.1', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file remains locked after canceling of uploading a new version - [C297564]', async () => {
|
||||
it('[C297564] file remains locked after canceling of uploading a new version', async () => {
|
||||
await dataTable.selectItem(fileLocked2, parentRF);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -575,7 +575,7 @@ describe('Upload new version', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('dialog UI defaults - [C297565]', async () => {
|
||||
it('[C297565] dialog UI defaults', async () => {
|
||||
await dataTable.selectItem(file);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -591,7 +591,7 @@ describe('Upload new version', () => {
|
||||
expect(await uploadNewVersionDialog.isUploadButtonEnabled()).toBe(true, 'Update button not enabled');
|
||||
});
|
||||
|
||||
it('file is updated after uploading a new version - major - [C297566]', async () => {
|
||||
it('[C297566] file is updated after uploading a new version - major', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -608,7 +608,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file1Id)).toEqual('2.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is updated after uploading a new version - minor - [C297567]', async () => {
|
||||
it('[C297567] file is updated after uploading a new version - minor', async () => {
|
||||
await dataTable.selectItem(file2);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -625,7 +625,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file2Id)).toEqual('1.1', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is not updated when clicking Cancel - [C297568]', async () => {
|
||||
it('[C297568] file is not updated when clicking Cancel', async () => {
|
||||
await dataTable.selectItem(file3);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -641,7 +641,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file3Id)).toEqual('1.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('upload new version fails when new file name already exists - [C297569]', async () => {
|
||||
it('[C297569] upload new version fails when new file name already exists', async () => {
|
||||
await dataTable.selectItem(file4);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -660,7 +660,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(file4Id)).toEqual('1.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is unlocked after uploading a new version - [C297570]', async () => {
|
||||
it('[C297570] file is unlocked after uploading a new version', async () => {
|
||||
await dataTable.selectItem(fileLocked1);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -678,7 +678,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(fileLocked1Id)).toEqual('1.1', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file remains locked after canceling of uploading a new version - [C297571]', async () => {
|
||||
it('[C297571] file remains locked after canceling of uploading a new version', async () => {
|
||||
await dataTable.selectItem(fileLocked2);
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
|
||||
@@ -722,7 +722,7 @@ describe('Upload new version', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('dialog UI defaults - [C307003]', async () => {
|
||||
it('[C307003] dialog UI defaults', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(file);
|
||||
@@ -742,7 +742,7 @@ describe('Upload new version', () => {
|
||||
expect(await uploadNewVersionDialog.isUploadButtonEnabled()).toBe(true, 'Update button not enabled');
|
||||
});
|
||||
|
||||
it('file is updated after uploading a new version - major - [C307004]', async () => {
|
||||
it('[C307004] file is updated after uploading a new version - major', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(fileSearch1);
|
||||
@@ -764,7 +764,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(fileSearch1Id)).toEqual('2.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is updated after uploading a new version - minor - [C307005]', async () => {
|
||||
it('[C307005] file is updated after uploading a new version - minor', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(fileSearch2);
|
||||
@@ -786,7 +786,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(fileSearch2Id)).toEqual('1.1', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is not updated when clicking Cancel - [C307006]', async () => {
|
||||
it('[C307006] file is not updated when clicking Cancel', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(fileSearch3);
|
||||
@@ -806,7 +806,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(fileSearch3Id)).toEqual('1.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('upload new version fails when new file name already exists - [C307007]', async () => {
|
||||
it('[C307007] upload new version fails when new file name already exists', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(fileSearch4);
|
||||
@@ -829,7 +829,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(fileSearch4Id)).toEqual('1.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file is unlocked after uploading a new version - [C307008]', async () => {
|
||||
it('[C307008] file is unlocked after uploading a new version', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(fileLockedSearch1);
|
||||
@@ -852,7 +852,7 @@ describe('Upload new version', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(fileLockedSearch1Id)).toEqual('1.1', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('file remains locked after canceling of uploading a new version - [C307009]', async () => {
|
||||
it('[C307009] file remains locked after canceling of uploading a new version', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(fileLockedSearch2);
|
||||
|
@@ -50,7 +50,7 @@ describe('General', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('should close opened dialogs - [C286473]', async () => {
|
||||
it('[C286473] should close opened dialogs', async () => {
|
||||
await loginPage.loginWithAdmin();
|
||||
|
||||
await page.sidenav.openCreateFolderDialog();
|
||||
|
@@ -38,18 +38,18 @@ describe('Page titles', () => {
|
||||
const { searchInput } = page.header;
|
||||
|
||||
describe('on Login / Logout pages', () => {
|
||||
it('on Login page - [C217155]', async () => {
|
||||
it('[C217155] on Login page', async () => {
|
||||
await loginPage.load();
|
||||
expect(await browser.getTitle()).toContain('Sign in');
|
||||
});
|
||||
|
||||
it('after logout - [C217156]', async () => {
|
||||
it('[C217156] after logout', async () => {
|
||||
await loginPage.loginWithAdmin();
|
||||
await page.signOut();
|
||||
expect(await browser.getTitle()).toContain('Sign in');
|
||||
});
|
||||
|
||||
it('when pressing Back after Logout - [C280414]', async () => {
|
||||
it('[C280414] when pressing Back after Logout', async () => {
|
||||
await loginPage.loginWithAdmin();
|
||||
await page.signOut();
|
||||
await browser.navigate().back();
|
||||
@@ -69,49 +69,49 @@ describe('Page titles', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Personal Files page - [C217157]', async () => {
|
||||
it('[C217157] Personal Files page', async () => {
|
||||
await page.clickPersonalFiles();
|
||||
expect(await browser.getTitle()).toContain(PAGE_TITLES.PERSONAL_FILES);
|
||||
});
|
||||
|
||||
it('My Libraries page - [C217158]', async () => {
|
||||
it('[C217158] My Libraries page', async () => {
|
||||
await page.goToMyLibraries();
|
||||
expect(await browser.getTitle()).toContain(PAGE_TITLES.MY_LIBRARIES);
|
||||
});
|
||||
|
||||
it('Favorite Libraries page - [C289907]', async () => {
|
||||
it('[C289907] Favorite Libraries page', async () => {
|
||||
await page.goToFavoriteLibraries();
|
||||
expect(await browser.getTitle()).toContain(PAGE_TITLES.FAVORITE_LIBRARIES);
|
||||
});
|
||||
|
||||
it('Shared Files page - [C217159]', async () => {
|
||||
it('[C217159] Shared Files page', async () => {
|
||||
await page.clickSharedFiles();
|
||||
expect(await browser.getTitle()).toContain(PAGE_TITLES.SHARED_FILES);
|
||||
});
|
||||
|
||||
it('Recent Files page - [C217160]', async () => {
|
||||
it('[C217160] Recent Files page', async () => {
|
||||
await page.clickRecentFiles();
|
||||
expect(await browser.getTitle()).toContain(PAGE_TITLES.RECENT_FILES);
|
||||
});
|
||||
|
||||
it('Favorites page - [C217161]', async () => {
|
||||
it('[C217161] Favorites page', async () => {
|
||||
await page.clickFavorites();
|
||||
expect(await browser.getTitle()).toContain(PAGE_TITLES.FAVORITES);
|
||||
});
|
||||
|
||||
it('Trash page - [C217162]', async () => {
|
||||
it('[C217162] Trash page', async () => {
|
||||
await page.clickTrash();
|
||||
expect(await browser.getTitle()).toContain(PAGE_TITLES.TRASH);
|
||||
});
|
||||
|
||||
it('File Preview page - [C280415]', async () => {
|
||||
it('[C280415] File Preview page', async () => {
|
||||
await page.clickPersonalFilesAndWait();
|
||||
await page.dataTable.doubleClickOnRowByName(file);
|
||||
expect(await browser.getTitle()).toContain(PAGE_TITLES.VIEWER);
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('Search Results page - [C280413]', async () => {
|
||||
it('[C280413] Search Results page', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.searchFor(file);
|
||||
expect(await browser.getTitle()).toContain(PAGE_TITLES.SEARCH);
|
||||
|
@@ -80,14 +80,14 @@ describe('Login', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('login page layout - [C213089]', async () => {
|
||||
it('[C213089] login page layout', async () => {
|
||||
expect(await login.isUsernameEnabled()).toBe(true, 'username input is not enabled');
|
||||
expect(await login.isPasswordEnabled()).toBe(true, 'password input is not enabled');
|
||||
expect(await login.isSubmitEnabled()).toBe(false, 'SIGN IN button is enabled');
|
||||
expect(await login.isPasswordHidden()).toBe(true, 'Password is not hidden by default');
|
||||
});
|
||||
|
||||
it('change password visibility - [C213091]', async () => {
|
||||
it('[C213091] change password visibility', async () => {
|
||||
await login.enterPassword('some password');
|
||||
expect(await login.isPasswordDisplayed()).toBe(false, 'password is visible');
|
||||
await login.clickPasswordVisibility();
|
||||
@@ -97,14 +97,14 @@ describe('Login', () => {
|
||||
});
|
||||
|
||||
describe('with valid credentials', () => {
|
||||
it('navigate to "Personal Files" - [C213092]', async () => {
|
||||
it('[C213092] navigate to "Personal Files"', async () => {
|
||||
const { username } = johnDoe;
|
||||
|
||||
await loginPage.loginWith(username);
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);
|
||||
});
|
||||
|
||||
it(`displays user's name in header - [C213108]`, async () => {
|
||||
it(`[C213108] displays user's name in header`, async () => {
|
||||
const { userInfo } = new BrowsingPage(APP_ROUTES.PERSONAL_FILES).header;
|
||||
const { username, firstName, lastName } = johnDoe;
|
||||
|
||||
@@ -112,12 +112,12 @@ describe('Login', () => {
|
||||
expect(await userInfo.getName()).toEqual(`${firstName} ${lastName}`);
|
||||
});
|
||||
|
||||
it(`logs in with user having username containing "@" - [C213096]`, async () => {
|
||||
it(`[C213096] logs in with user having username containing "@"`, async () => {
|
||||
await loginPage.loginWith(testUser);
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);
|
||||
});
|
||||
|
||||
it('logs in with user with non-latin characters - [C213097]', async () => {
|
||||
it('[C213097] logs in with user with non-latin characters', async () => {
|
||||
const { username, password } = russianUser;
|
||||
|
||||
await loginPage.loginWith(username, password);
|
||||
@@ -125,7 +125,7 @@ describe('Login', () => {
|
||||
});
|
||||
|
||||
// TODO: ACA-245
|
||||
xit('redirects to Home Page when navigating to the Login page while already logged in - [C213107]', async () => {
|
||||
xit('[C213107] redirects to Home Page when navigating to the Login page while already logged in', async () => {
|
||||
const { username } = johnDoe;
|
||||
|
||||
await loginPage.loginWith(username);
|
||||
@@ -134,7 +134,7 @@ describe('Login', () => {
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);
|
||||
});
|
||||
|
||||
it('redirects to Personal Files when pressing browser Back while already logged in - [C213109]', async () => {
|
||||
it('[C213109] redirects to Personal Files when pressing browser Back while already logged in', async () => {
|
||||
const { username } = johnDoe;
|
||||
|
||||
await loginPage.loginWith(username);
|
||||
@@ -142,7 +142,7 @@ describe('Login', () => {
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);
|
||||
});
|
||||
|
||||
it('user is able to login after changing his password - [C213104]', async () => {
|
||||
it('[C213104] user is able to login after changing his password', async () => {
|
||||
await loginPage.loginWith(testUser2.username, testUser2.password);
|
||||
await peopleApi.changePassword(testUser2.username, newPassword);
|
||||
await loginPage.loginWith(testUser2.username, newPassword);
|
||||
@@ -159,24 +159,24 @@ describe('Login', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('disabled submit button when password is empty - [C280072]', async () => {
|
||||
it('[C280072] disabled submit button when password is empty', async () => {
|
||||
await loginComponent.enterUsername('any-username');
|
||||
expect(await submitButton.isEnabled()).toBe(false, 'submit button is enabled');
|
||||
});
|
||||
|
||||
it('disabled submit button when username is empty - [C280070]', async () => {
|
||||
it('[C280070] disabled submit button when username is empty', async () => {
|
||||
await loginPage.login.enterPassword('any-password');
|
||||
expect(await submitButton.isEnabled()).toBe(false, 'submit button is enabled');
|
||||
});
|
||||
|
||||
it('shows error when entering nonexistent user - [C213093]', async () => {
|
||||
it('[C213093] shows error when entering nonexistent user', async () => {
|
||||
await loginPage.tryLoginWith('nonexistent-user', 'any-password');
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.LOGIN);
|
||||
expect(await errorMessage.isDisplayed()).toBe(true, 'error message is not displayed');
|
||||
expect(await errorMessage.getText()).toBe(`You've entered an unknown username or password`);
|
||||
});
|
||||
|
||||
it('shows error when entering invalid password - [C280071]', async () => {
|
||||
it('[C280071] shows error when entering invalid password', async () => {
|
||||
const { username } = johnDoe;
|
||||
|
||||
await loginPage.tryLoginWith(username, 'incorrect-password');
|
||||
@@ -185,12 +185,12 @@ describe('Login', () => {
|
||||
expect(await errorMessage.getText()).toBe(`You've entered an unknown username or password`);
|
||||
});
|
||||
|
||||
it('unauthenticated user is redirected to Login page - [C213106]', async () => {
|
||||
it('[C213106] unauthenticated user is redirected to Login page', async () => {
|
||||
await navigate(APP_ROUTES.PERSONAL_FILES);
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.LOGIN);
|
||||
});
|
||||
|
||||
it('disabled user is not logged in - [C213100]', async () => {
|
||||
it('[C213100] disabled user is not logged in', async () => {
|
||||
await loginPage.tryLoginWith(disabledUser);
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.LOGIN);
|
||||
expect(await errorMessage.isDisplayed()).toBe(true, 'error message is not displayed');
|
||||
|
@@ -47,23 +47,23 @@ describe('Logout', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Sign out option is available - [C213143]', async () => {
|
||||
it('[C213143] Sign out option is available', async () => {
|
||||
await page.header.userInfo.openMenu();
|
||||
expect(await page.header.isSignOutDisplayed()).toBe(true, 'Sign out option not displayed');
|
||||
});
|
||||
|
||||
it('redirects to Login page on sign out - [C213144]', async () => {
|
||||
it('[C213144] redirects to Login page on sign out', async () => {
|
||||
await page.signOut();
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.LOGIN);
|
||||
});
|
||||
|
||||
it('redirects to Login page when pressing browser Back after logout - [C213145]', async () => {
|
||||
it('[C213145] redirects to Login page when pressing browser Back after logout', async () => {
|
||||
await page.signOut();
|
||||
await browser.navigate().back();
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.LOGIN);
|
||||
});
|
||||
|
||||
it('redirects to Login page when trying to access a part of the app after logout - [C213146]', async () => {
|
||||
it('[C213146] redirects to Login page when trying to access a part of the app after logout', async () => {
|
||||
await page.signOut();
|
||||
await page.load('/favorites');
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.LOGIN);
|
||||
|
@@ -81,7 +81,7 @@ describe('Extensions - Context submenu', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Displays the submenu actions set from config - [C286717]', async () => {
|
||||
it('[C286717] Displays the submenu actions set from config', async () => {
|
||||
await dataTable.rightClickOnItem(file);
|
||||
expect(await contextMenu.isMenuItemPresent(menuItem1.label)).toBe(true, `${menuItem1.label} is not displayed for ${file}`);
|
||||
expect(await contextMenu.hasSubMenu(menuItem1.label)).toBe(true, 'Menu does not have submenu');
|
||||
@@ -93,7 +93,7 @@ describe('Extensions - Context submenu', () => {
|
||||
expect(await contextMenu.isSubMenuItemPresent(menuItem1.submenu[2])).toBe(true, `${restrictedPermissionsItem} is not displayed for ${file}`);
|
||||
});
|
||||
|
||||
it('Does not display submenu actions without permissions - [C286718]', async () => {
|
||||
it('[C286718] Does not display submenu actions without permissions', async () => {
|
||||
await dataTable.rightClickOnItem(folder);
|
||||
expect(await contextMenu.isMenuItemPresent(menuItem1.label)).toBe(true, `${menuItem1.label} is not displayed for ${folder}`);
|
||||
await contextMenu.mouseOverMenuItem(menuItem1.label);
|
||||
@@ -104,7 +104,7 @@ describe('Extensions - Context submenu', () => {
|
||||
expect(await contextMenu.isSubMenuItemPresent(menuItem1.submenu[2])).toBe(false, `no permission submenu ${restrictedPermissionsItem} is displayed`);
|
||||
});
|
||||
|
||||
it('The parent item is not displayed if all its children have no permission to be displayed - [C287784]', async () => {
|
||||
it('[C287784] The parent item is not displayed if all its children have no permission to be displayed', async () => {
|
||||
await dataTable.rightClickOnItem(folder);
|
||||
expect(await contextMenu.isMenuItemPresent(menuItem2.label)).toBe(false, `${menuItem2.label} menu is displayed for ${folder}`);
|
||||
});
|
||||
|
@@ -83,7 +83,7 @@ describe('Extensions - DocumentList presets', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Sets the columns to display - [C286700]', async () => {
|
||||
it('[C286700] Sets the columns to display', async () => {
|
||||
const expectedColumns = testData
|
||||
.filter(item => !item.disabled)
|
||||
.map(data => data.label);
|
||||
@@ -92,7 +92,7 @@ describe('Extensions - DocumentList presets', () => {
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
it('Disabled items are not shown - [C286699]', async () => {
|
||||
it('[C286699] Disabled items are not shown', async () => {
|
||||
const noColumnLabel = testData.find(item => item.disabled).label;
|
||||
const element = dataTable.getColumnHeaderByLabel(noColumnLabel);
|
||||
|
||||
|
@@ -70,13 +70,13 @@ describe('Extensions - Info Drawer', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Add a new button in the header - [C286474]', async () => {
|
||||
it('[C286474] Add a new button in the header', async () => {
|
||||
await header.openMoreMenu();
|
||||
expect(await toolbarMenu.isMenuItemPresent(enabledMenu.title)).toBe(true, 'menu item not present');
|
||||
expect(await toolbarMenu.getItemIconText(enabledMenu.title)).toEqual(enabledMenu.icon);
|
||||
});
|
||||
|
||||
it('Disable a button from the header - [C286477]', async () => {
|
||||
it('[C286477] Disable a button from the header', async () => {
|
||||
await header.openMoreMenu();
|
||||
expect(await toolbarMenu.isMenuItemPresent(disabledMenu.title)).toBe(true, `${disabledMenu.title} menu item not present`);
|
||||
expect(await toolbarMenu.isMenuItemDisabled(disabledMenu.title)).toEqual('true', `${disabledMenu.title} is not disabled`);
|
||||
|
@@ -92,7 +92,7 @@ describe('Extensions - Info Drawer', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Add a new tab with icon and title - [C284646]', async () => {
|
||||
it('[C284646] Add a new tab with icon and title', async () => {
|
||||
await page.dataTable.selectItem(file);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -102,7 +102,7 @@ describe('Extensions - Info Drawer', () => {
|
||||
expect(val.trim()).toEqual(`${custom_tab.icon}\n${custom_tab.title}`.trim());
|
||||
});
|
||||
|
||||
it('Remove existing tab - [C284647]', async () => {
|
||||
it('[C284647] Remove existing tab', async () => {
|
||||
await page.dataTable.selectItem(file);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -110,7 +110,7 @@ describe('Extensions - Info Drawer', () => {
|
||||
expect(await infoDrawer.isTabPresent(comments_tab.title)).toBe(false, `${comments_tab.title} tab should not be present!`);
|
||||
});
|
||||
|
||||
it('Change tab title - [C284648]', async () => {
|
||||
it('[C284648] Change tab title', async () => {
|
||||
await page.dataTable.selectItem(file);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -119,7 +119,7 @@ describe('Extensions - Info Drawer', () => {
|
||||
expect(await infoDrawer.getTabTitle(properties_tab.order)).toEqual(properties_tab.title);
|
||||
});
|
||||
|
||||
it('Tab with icon and no title - [C284649]', async () => {
|
||||
it('[C284649] Tab with icon and no title', async () => {
|
||||
await page.dataTable.selectItem(file);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -128,7 +128,7 @@ describe('Extensions - Info Drawer', () => {
|
||||
expect((await infoDrawer.getTabTitle(no_title_tab.order)).trim()).toEqual(`${no_title_tab.icon}`.trim());
|
||||
});
|
||||
|
||||
it('Insert new component in tab - [C284651]', async () => {
|
||||
it('[C284651] Insert new component in tab', async () => {
|
||||
await page.dataTable.selectItem(file);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -148,7 +148,7 @@ describe('Extensions - Info Drawer', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Remove all tabs - [C284650]', async () => {
|
||||
it('[C284650] Remove all tabs', async () => {
|
||||
await page.dataTable.selectItem(file);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
|
@@ -98,14 +98,14 @@ describe('Extensions - Metadata presets', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Set groups of properties to display - [C286636]', async () => {
|
||||
it('[C286636] Set groups of properties to display', async () => {
|
||||
expect(await metadataCard.isExpansionPanelPresent(0)).toBe(true, `expansion panel is not present`);
|
||||
expect(await metadataCard.getComponentIdOfPanel(0)).toEqual(`adf-metadata-group-${customGroup1.title}`);
|
||||
expect(await metadataCard.isExpansionPanelPresent(1)).toBe(true, `expansion panel is not present`);
|
||||
expect(await metadataCard.getComponentIdOfPanel(1)).toEqual(`adf-metadata-group-${customGroup2.title}`);
|
||||
});
|
||||
|
||||
it('Disabled group is not displayed - [C286637]', async () => {
|
||||
it('[C286637] Disabled group is not displayed', async () => {
|
||||
expect(await metadataCard.isExpansionPanelPresent(2)).toBe(false, `disabled group is displayed`);
|
||||
expect(await metadataCard.getComponentIdOfPanel(1)).not.toEqual(`adf-metadata-group-${disabledGroup.title}`);
|
||||
expect(await metadataCard.getComponentIdOfPanel(0)).not.toEqual(`adf-metadata-group-${disabledGroup.title}`);
|
||||
|
@@ -104,7 +104,7 @@ describe('Extensions - Viewer', () => {
|
||||
});
|
||||
|
||||
describe('content', () => {
|
||||
it('Insert new component in a content viewer - [C284659]', async () => {
|
||||
it('[C284659] Insert new component in a content viewer', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(pdfFile.file_name);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
expect(await viewer.isCustomContentPresent()).toBe(true, 'Custom content is not present');
|
||||
@@ -119,7 +119,7 @@ describe('Extensions - Viewer', () => {
|
||||
});
|
||||
|
||||
describe('toolbar actions', () => {
|
||||
it('Add a new action in the toolbar - [C286416]', async () => {
|
||||
it('[C286416] Add a new action in the toolbar', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(pdfFile.file_name);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -128,14 +128,14 @@ describe('Extensions - Viewer', () => {
|
||||
expect(await toolbar.getButtonByTitleAttribute(customAction.title).getText()).toEqual(customAction.icon);
|
||||
});
|
||||
|
||||
it('Modify title of action from toolbar - [C286417]', async () => {
|
||||
it('[C286417] Modify title of action from toolbar', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(pdfFile.file_name);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
expect(await toolbar.getButtonById(downloadButton.id).getAttribute('title')).toEqual(downloadButton.title);
|
||||
});
|
||||
|
||||
it('Remove action from toolbar - [C286419]', async () => {
|
||||
it('[C286419] Remove action from toolbar', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(pdfFile.file_name);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -144,7 +144,7 @@ describe('Extensions - Viewer', () => {
|
||||
});
|
||||
|
||||
describe('toolbar More actions menu', () => {
|
||||
it('Add a new action - [C286420]', async () => {
|
||||
it('[C286420] Add a new action', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(pdfFile.file_name);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -154,7 +154,7 @@ describe('Extensions - Viewer', () => {
|
||||
expect(await toolbar.menu.getItemIdAttribute(customSecondaryAction.title)).toEqual(customSecondaryAction.id);
|
||||
});
|
||||
|
||||
it('Modify title of action from More actions menu - [C286421]', async () => {
|
||||
it('[C286421] Modify title of action from More actions menu', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(pdfFile.file_name);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -162,7 +162,7 @@ describe('Extensions - Viewer', () => {
|
||||
expect(await toolbar.menu.getItemById(moveAction.id).getAttribute('title')).toEqual(moveAction.title);
|
||||
});
|
||||
|
||||
it('Remove action from More actions menu - [C286423]', async () => {
|
||||
it('[C286423] Remove action from More actions menu', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(pdfFile.file_name);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
|
@@ -106,7 +106,7 @@ describe('Comments', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Comments tab default fields - [C299173]', async () => {
|
||||
it('[C299173] Comments tab default fields', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -118,7 +118,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.isAddCommentButtonEnabled()).toBe(false, 'Add comment button not disabled');
|
||||
});
|
||||
|
||||
it('Comments are displayed ordered by created date in descending order - [C280583]', async () => {
|
||||
it('[C280583] Comments are displayed ordered by created date in descending order', async () => {
|
||||
await dataTable.selectItem(fileWith2Comments);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -128,7 +128,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.getNthCommentId(2)).toContain(comment1File2Entry.id);
|
||||
});
|
||||
|
||||
it('Total number of comments is displayed - [C280585]', async () => {
|
||||
it('[C280585] Total number of comments is displayed', async () => {
|
||||
await dataTable.selectItem(fileWith2Comments);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -137,7 +137,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.getCommentsTabHeaderText()).toBe('Comments (2)');
|
||||
});
|
||||
|
||||
it('Add button is enabled when typing in the comment field - [C280589]', async () => {
|
||||
it('[C280589] Add button is enabled when typing in the comment field', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -149,7 +149,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.isAddCommentButtonEnabled()).toBe(true, 'Add comment button not enabled');
|
||||
});
|
||||
|
||||
it('Add a comment on a file - [C280590]', async () => {
|
||||
it('[C280590] Add a comment on a file', async () => {
|
||||
const myComment = 'my comment';
|
||||
|
||||
await dataTable.selectItem(file2Personal);
|
||||
@@ -164,7 +164,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.getCommentText()).toBe(myComment, 'Incorrect comment text');
|
||||
});
|
||||
|
||||
it('Add a comment on a folder - [C299208]', async () => {
|
||||
it('[C299208] Add a comment on a folder', async () => {
|
||||
const myComment = 'my comment';
|
||||
|
||||
await dataTable.selectItem(folder1);
|
||||
@@ -179,7 +179,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.getCommentText()).toBe(myComment, 'Incorrect comment text');
|
||||
});
|
||||
|
||||
it('Escape key clears the text when focus is on the textarea - [C280591]', async () => {
|
||||
it('[C280591] Escape key clears the text when focus is on the textarea', async () => {
|
||||
await dataTable.selectItem(file2Personal);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -205,7 +205,7 @@ describe('Comments', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Comments are displayed ordered by created date in descending order - [C299197]', async () => {
|
||||
it('[C299197] Comments are displayed ordered by created date in descending order', async () => {
|
||||
await dataTable.selectItem(fileWith2Comments);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -215,7 +215,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.getNthCommentId(2)).toContain(comment1File2Entry.id);
|
||||
});
|
||||
|
||||
it('Total number of comments is displayed - [C299198]', async () => {
|
||||
it('[C299198] Total number of comments is displayed', async () => {
|
||||
await dataTable.selectItem(fileWith2Comments);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -224,7 +224,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.getCommentsTabHeaderText()).toBe('Comments (2)');
|
||||
});
|
||||
|
||||
it('Add a comment on a file - [C299199]', async () => {
|
||||
it('[C299199] Add a comment on a file', async () => {
|
||||
const myComment = 'my comment';
|
||||
|
||||
await dataTable.selectItem(file2Favorites);
|
||||
@@ -239,7 +239,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.getCommentText()).toBe(myComment, 'Incorrect comment text');
|
||||
});
|
||||
|
||||
it('Add a comment on a folder - [C299209]', async () => {
|
||||
it('[C299209] Add a comment on a folder', async () => {
|
||||
const myComment = 'my comment';
|
||||
|
||||
await dataTable.selectItem(folder2);
|
||||
@@ -266,7 +266,7 @@ describe('Comments', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Comments are displayed ordered by created date in descending order - [C299189]', async () => {
|
||||
it('[C299189] Comments are displayed ordered by created date in descending order', async () => {
|
||||
await dataTable.selectItem(fileWith2Comments);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -276,7 +276,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.getNthCommentId(2)).toContain(comment1File2Entry.id);
|
||||
});
|
||||
|
||||
it('Total number of comments is displayed - [C299190]', async () => {
|
||||
it('[C299190] Total number of comments is displayed', async () => {
|
||||
await dataTable.selectItem(fileWith2Comments);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -285,7 +285,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.getCommentsTabHeaderText()).toBe('Comments (2)');
|
||||
});
|
||||
|
||||
it('Add a comment on a file - [C299191]', async () => {
|
||||
it('[C299191] Add a comment on a file', async () => {
|
||||
const myComment = 'my comment';
|
||||
|
||||
await dataTable.selectItem(file2Shared);
|
||||
@@ -312,7 +312,7 @@ describe('Comments', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Comments are displayed ordered by created date in descending order - [C299193]', async () => {
|
||||
it('[C299193] Comments are displayed ordered by created date in descending order', async () => {
|
||||
await dataTable.selectItem(fileWith2Comments);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -322,7 +322,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.getNthCommentId(2)).toContain(comment1File2Entry.id);
|
||||
});
|
||||
|
||||
it('Total number of comments is displayed - [C299194]', async () => {
|
||||
it('[C299194] Total number of comments is displayed', async () => {
|
||||
await dataTable.selectItem(fileWith2Comments);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -331,7 +331,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.getCommentsTabHeaderText()).toBe('Comments (2)');
|
||||
});
|
||||
|
||||
it('Add a comment on a file - [C299195]', async () => {
|
||||
it('[C299195] Add a comment on a file', async () => {
|
||||
const myComment = 'my comment';
|
||||
|
||||
await dataTable.selectItem(file2Recent);
|
||||
@@ -358,7 +358,7 @@ describe('Comments', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('File from Personal files - [C280582]', async () => {
|
||||
it('[C280582] File from Personal files', async () => {
|
||||
await page.clickPersonalFilesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(parent);
|
||||
|
||||
@@ -378,7 +378,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.isCommentUserAvatarDisplayed(commentFile1Entry.id)).toBe(true, 'User avatar not displayed');
|
||||
});
|
||||
|
||||
it('File from Favorites - [C299196]', async () => {
|
||||
it('[C299196] File from Favorites', async () => {
|
||||
await page.clickFavoritesAndWait();
|
||||
|
||||
await dataTable.selectItem(fileWith1Comment);
|
||||
@@ -397,7 +397,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.isCommentUserAvatarDisplayed(commentFile1Entry.id)).toBe(true, 'User avatar not displayed');
|
||||
});
|
||||
|
||||
it('File from Shared Files - [C299188]', async () => {
|
||||
it('[C299188] File from Shared Files', async () => {
|
||||
await page.clickSharedFilesAndWait();
|
||||
|
||||
await dataTable.selectItem(fileWith1Comment);
|
||||
@@ -416,7 +416,7 @@ describe('Comments', () => {
|
||||
expect(await commentsTab.isCommentUserAvatarDisplayed(commentFile1Entry.id)).toBe(true, 'User avatar not displayed');
|
||||
});
|
||||
|
||||
it('File from Recent Files - [C299192]', async () => {
|
||||
it('[C299192] File from Recent Files', async () => {
|
||||
await page.clickRecentFilesAndWait();
|
||||
|
||||
await dataTable.selectItem(fileWith1Comment);
|
||||
|
@@ -94,7 +94,7 @@ describe('File / Folder properties', () => {
|
||||
});
|
||||
|
||||
describe('View properties', () => {
|
||||
it('Default tabs - [C299162]', async () => {
|
||||
it('[C299162] Default tabs', async () => {
|
||||
await dataTable.selectItem(file1.name);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -105,7 +105,7 @@ describe('File / Folder properties', () => {
|
||||
expect(await infoDrawer.getTabsCount()).toBe(2, 'Incorrect number of tabs');
|
||||
});
|
||||
|
||||
it('File properties - [C269003]', async () => {
|
||||
it('[C269003] File properties', async () => {
|
||||
const apiProps = await apis.user.nodes.getNodeById(file1Id);
|
||||
|
||||
const expectedPropLabels = [
|
||||
@@ -143,7 +143,7 @@ describe('File / Folder properties', () => {
|
||||
expect(await propertiesTab.isMoreInfoButtonEnabled()).toBe(true, 'More information button not enabled');
|
||||
});
|
||||
|
||||
it('Folder properties - [C307106]', async () => {
|
||||
it('[C307106] Folder properties', async () => {
|
||||
const apiProps = await apis.user.nodes.getNodeById(folder1Id);
|
||||
|
||||
const expectedPropLabels = [
|
||||
@@ -177,7 +177,7 @@ describe('File / Folder properties', () => {
|
||||
expect(await propertiesTab.isMoreInfoButtonEnabled()).toBe(true, 'More information button not enabled');
|
||||
});
|
||||
|
||||
it('Less / More information buttons - [C269004]', async () => {
|
||||
it('[C269004] Less / More information buttons', async () => {
|
||||
await dataTable.selectItem(file1.name);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -198,7 +198,7 @@ describe('File / Folder properties', () => {
|
||||
expect(await propertiesTab.isPropertiesListExpanded()).toBe(true, 'Properties list not expanded');
|
||||
});
|
||||
|
||||
it('Image properties - [C269007]', async () => {
|
||||
it('[C269007] Image properties', async () => {
|
||||
const apiProps = await apis.user.nodes.getNodeById(image1Id);
|
||||
|
||||
const expectedPropLabels = [
|
||||
|
@@ -76,7 +76,7 @@ describe('General', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Info drawer closes on page refresh - [C268999]', async () => {
|
||||
it('[C268999] Info drawer closes on page refresh', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await page.toolbar.clickViewDetails();
|
||||
expect(await infoDrawer.isOpen()).toBe(true, 'Info drawer not open');
|
||||
|
@@ -102,7 +102,7 @@ describe('Library properties', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Info drawer opens for a library - [C289336]', async () => {
|
||||
it('[C289336] Info drawer opens for a library', async () => {
|
||||
await dataTable.selectItem(site.name);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -122,7 +122,7 @@ describe('Library properties', () => {
|
||||
expect(await aboutTab.isEditLibraryPropertiesDisplayed()).toBe(true, 'Edit action is not displayed');
|
||||
});
|
||||
|
||||
it('Editable properties - [C289338]', async () => {
|
||||
it('[C289338] Editable properties', async () => {
|
||||
await dataTable.selectItem(site.name);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -141,7 +141,7 @@ describe('Library properties', () => {
|
||||
expect(await aboutTab.isUpdateEnabled()).toBe(false, 'Update button not disabled');
|
||||
});
|
||||
|
||||
it('Edit site details - [C289339]', async () => {
|
||||
it('[C289339] Edit site details', async () => {
|
||||
await dataTable.selectItem(siteForUpdate.name);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -165,7 +165,7 @@ describe('Library properties', () => {
|
||||
expect((await apis.user.sites.getSite(siteForUpdate.id)).entry.visibility).toEqual(siteUpdated.visibility);
|
||||
});
|
||||
|
||||
it('Cancel editing a site - [C289340]', async () => {
|
||||
it('[C289340] Cancel editing a site', async () => {
|
||||
const newName = `new-name-${Utils.random}`;
|
||||
const newDesc = `new desc ${Utils.random}`;
|
||||
|
||||
@@ -187,7 +187,7 @@ describe('Library properties', () => {
|
||||
expect(await infoDrawer.isOpen()).toBe(true, 'Info drawer not open');
|
||||
});
|
||||
|
||||
it('Warning appears when editing the name of the library by entering an existing name - [C289341]', async () => {
|
||||
it('[C289341] Warning appears when editing the name of the library by entering an existing name', async () => {
|
||||
await apis.user.queries.waitForSites(site.name, { expect: 1 });
|
||||
|
||||
await dataTable.selectItem(siteDup);
|
||||
@@ -200,7 +200,7 @@ describe('Library properties', () => {
|
||||
expect(await aboutTab.getMessage()).toEqual('Library name already in use');
|
||||
});
|
||||
|
||||
it('Site name too long - [C289342]', async () => {
|
||||
it('[C289342] Site name too long', async () => {
|
||||
await dataTable.selectItem(site.name);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -213,7 +213,7 @@ describe('Library properties', () => {
|
||||
expect(await aboutTab.isUpdateEnabled()).toBe(false, 'Update button not disabled');
|
||||
});
|
||||
|
||||
it('Site description too long - [C289343]', async () => {
|
||||
it('[C289343] Site description too long', async () => {
|
||||
await dataTable.selectItem(site.name);
|
||||
await page.toolbar.clickViewDetails();
|
||||
await infoDrawer.waitForInfoDrawerToOpen();
|
||||
@@ -232,7 +232,7 @@ describe('Library properties', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Edit button is not displayed when user is not the library manager - [C289337]', async () => {
|
||||
it('[C289337] Edit button is not displayed when user is not the library manager', async () => {
|
||||
await loginPage.loginWith(user2);
|
||||
|
||||
await page.clickFileLibrariesAndWait();
|
||||
@@ -242,7 +242,7 @@ describe('Library properties', () => {
|
||||
expect(await aboutTab.isEditLibraryPropertiesDisplayed()).toBe(false, 'Edit action is displayed');
|
||||
});
|
||||
|
||||
it('Error notification - [C289344]', async () => {
|
||||
it('[C289344] Error notification', async () => {
|
||||
await loginPage.loginWith(user3);
|
||||
|
||||
await page.clickFileLibrariesAndWait();
|
||||
|
@@ -48,48 +48,48 @@ describe('Empty list views', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('empty Personal Files - [C280131]', async () => {
|
||||
it('[C280131] empty Personal Files', async () => {
|
||||
await page.clickPersonalFiles();
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'list is not empty');
|
||||
expect(await dataTable.getEmptyDragAndDropText()).toContain('Drag and drop');
|
||||
});
|
||||
|
||||
it('empty My Libraries - [C217099]', async () => {
|
||||
it('[C217099] empty My Libraries', async () => {
|
||||
await page.goToMyLibraries();
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'list is not empty');
|
||||
expect(await dataTable.getEmptyStateTitle()).toContain(`You aren't a member of any File Libraries yet`);
|
||||
expect(await dataTable.getEmptyStateSubtitle()).toContain('Join libraries to upload, view, and share files.');
|
||||
});
|
||||
|
||||
it('empty Favorite Libraries - [C289911]', async () => {
|
||||
it('[C289911] empty Favorite Libraries', async () => {
|
||||
await page.goToFavoriteLibraries();
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'list is not empty');
|
||||
expect(await dataTable.getEmptyStateTitle()).toContain(`No Favorite Libraries`);
|
||||
expect(await dataTable.getEmptyStateSubtitle()).toContain('Favorite a library that you want to find easily later.');
|
||||
});
|
||||
|
||||
it('empty Shared Files - [C280132]', async () => {
|
||||
it('[C280132] empty Shared Files', async () => {
|
||||
await page.clickSharedFiles();
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'list is not empty');
|
||||
expect(await dataTable.getEmptyStateTitle()).toContain('No shared files or folders');
|
||||
expect(await dataTable.getEmptyStateSubtitle()).toContain('Items you share using the Share option are shown here.');
|
||||
});
|
||||
|
||||
it('empty Recent Files - [C213169]', async () => {
|
||||
it('[C213169] empty Recent Files', async () => {
|
||||
await page.clickRecentFiles();
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'list is not empty');
|
||||
expect(await dataTable.getEmptyStateTitle()).toContain('No recent files');
|
||||
expect(await dataTable.getEmptyStateSubtitle()).toContain('Items you uploaded or edited in the last 30 days are shown here.');
|
||||
});
|
||||
|
||||
it('empty Favorites - [C280133]', async () => {
|
||||
it('[C280133] empty Favorites', async () => {
|
||||
await page.clickFavorites();
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'list is not empty');
|
||||
expect(await dataTable.getEmptyStateTitle()).toContain('No favorite files or folders');
|
||||
expect(await dataTable.getEmptyStateSubtitle()).toContain('Favorite items that you want to easily find later.');
|
||||
});
|
||||
|
||||
it('empty Trash - [C280134]', async () => {
|
||||
it('[C280134] empty Trash', async () => {
|
||||
await page.clickTrash();
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'list is not empty');
|
||||
expect(await dataTable.getEmptyStateTitle()).toContain('Trash is empty');
|
||||
@@ -97,7 +97,7 @@ describe('Empty list views', () => {
|
||||
expect(await dataTable.getEmptyListText()).toContain('Empty Trash to permanently delete items.');
|
||||
});
|
||||
|
||||
it('Favorites - pagination controls not displayed - [C280111]', async () => {
|
||||
it('[C280111] Favorites - pagination controls not displayed', async () => {
|
||||
await page.clickFavorites();
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
@@ -107,7 +107,7 @@ describe('Empty list views', () => {
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('My Libraries - pagination controls not displayed - [C280084]', async () => {
|
||||
it('[C280084] My Libraries - pagination controls not displayed', async () => {
|
||||
await page.goToMyLibraries();
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
@@ -117,7 +117,7 @@ describe('Empty list views', () => {
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('Favorite Libraries - pagination controls not displayed - [C291873]', async () => {
|
||||
it('[C291873] Favorite Libraries - pagination controls not displayed', async () => {
|
||||
await page.goToFavoriteLibraries();
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
@@ -127,7 +127,7 @@ describe('Empty list views', () => {
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('Personal Files - pagination controls not displayed - [C280075]', async () => {
|
||||
it('[C280075] Personal Files - pagination controls not displayed', async () => {
|
||||
await page.clickPersonalFiles();
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
@@ -137,7 +137,7 @@ describe('Empty list views', () => {
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('Recent Files - pagination controls not displayed - [C280102]', async () => {
|
||||
it('[C280102] Recent Files - pagination controls not displayed', async () => {
|
||||
await page.clickRecentFiles();
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
@@ -147,7 +147,7 @@ describe('Empty list views', () => {
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('Shared Files - pagination controls not displayed - [C280094]', async () => {
|
||||
it('[C280094] Shared Files - pagination controls not displayed', async () => {
|
||||
await page.clickSharedFiles();
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
@@ -157,7 +157,7 @@ describe('Empty list views', () => {
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('Trash - pagination controls not displayed - [C280120]', async () => {
|
||||
it('[C280120] Trash - pagination controls not displayed', async () => {
|
||||
await page.clickTrash();
|
||||
expect(await pagination.isRangePresent()).toBe(false, 'Range is present');
|
||||
expect(await pagination.isMaxItemsPresent()).toBe(false, 'Max items is present');
|
||||
@@ -167,7 +167,7 @@ describe('Empty list views', () => {
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('Search results - pagination controls not displayed - [C290123]', async () => {
|
||||
it('[C290123] Search results - pagination controls not displayed', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
/* cspell:disable-next-line */
|
||||
await searchInput.searchFor('qwertyuiop');
|
||||
@@ -181,7 +181,7 @@ describe('Empty list views', () => {
|
||||
expect(await pagination.isNextButtonPresent()).toBe(false, 'Next button is present');
|
||||
});
|
||||
|
||||
it('Search filters panel is not displayed on empty Search Results page - [C279189]', async () => {
|
||||
it('[C279189] Search filters panel is not displayed on empty Search Results page', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
/* cspell:disable-next-line */
|
||||
await searchInput.searchFor('qwertyuiop');
|
||||
@@ -190,7 +190,7 @@ describe('Empty list views', () => {
|
||||
expect(await searchResultsPage.filters.isSearchFiltersPanelDisplayed()).toBe(false, 'Search filters panel is present');
|
||||
});
|
||||
|
||||
it('Empty Search results - Libraries - [C290020]', async () => {
|
||||
it('[C290020] Empty Search results - Libraries', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
/* cspell:disable-next-line */
|
||||
@@ -201,7 +201,7 @@ describe('Empty list views', () => {
|
||||
expect(await dataTable.getEmptySearchResultsText()).toContain('Your search returned 0 results');
|
||||
});
|
||||
|
||||
it('Empty Search results - Files / Folders - [C290031]', async () => {
|
||||
it('[C290031] Empty Search results - Files / Folders', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
/* cspell:disable-next-line */
|
||||
|
@@ -87,56 +87,56 @@ describe('Favorites', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('has the correct columns - [C280482]', async () => {
|
||||
it('[C280482] has the correct columns', async () => {
|
||||
const expectedColumns = [ 'Name', 'Location', 'Size', 'Modified', 'Modified by' ];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
it('displays the favorite files and folders - [C213226]', async () => {
|
||||
it('[C213226] displays the favorite files and folders', async () => {
|
||||
expect(await dataTable.getRowsCount()).toEqual(4, 'Incorrect number of items displayed');
|
||||
expect(await dataTable.isItemPresent(fileName1)).toBe(true, `${fileName1} not displayed`);
|
||||
expect(await dataTable.isItemPresent(fileName2)).toBe(true, `${fileName2} not displayed`);
|
||||
expect(await dataTable.isItemPresent(favFolderName)).toBe(true, `${favFolderName} not displayed`);
|
||||
});
|
||||
|
||||
it(`deleted favorite file does not appear - [C213228]`, async () => {
|
||||
it(`[C213228] deleted favorite file does not appear`, async () => {
|
||||
expect(await dataTable.isItemPresent(fileName3)).not.toBe(true, `${fileName3} is displayed`);
|
||||
});
|
||||
|
||||
it(`file is displayed after it is restored from Trashcan - [C213229]`, async () => {
|
||||
it(`[C213229] file is displayed after it is restored from Trashcan`, async () => {
|
||||
expect(await dataTable.isItemPresent(fileName4)).toBe(true, `${fileName4} not displayed`);
|
||||
});
|
||||
|
||||
it('Location column displays the parent folder of the files - [C213231]', async () => {
|
||||
it('[C213231] Location column displays the parent folder of the files', async () => {
|
||||
expect(await dataTable.getItemLocation(fileName1)).toEqual(siteName);
|
||||
expect(await dataTable.getItemLocation(fileName2)).toEqual(parentFolder);
|
||||
expect(await dataTable.getItemLocation(favFolderName)).toEqual('Personal Files');
|
||||
});
|
||||
|
||||
it('Location column displays a tooltip with the entire path of the file - [C213671]', async () => {
|
||||
it('[C213671] Location column displays a tooltip with the entire path of the file', async () => {
|
||||
expect(await dataTable.getItemLocationTooltip(fileName1)).toEqual(`File Libraries/${siteName}`);
|
||||
expect(await dataTable.getItemLocationTooltip(fileName2)).toEqual(`Personal Files/${parentFolder}`);
|
||||
expect(await dataTable.getItemLocationTooltip(favFolderName)).toEqual('Personal Files');
|
||||
});
|
||||
|
||||
it('Location column redirect - item in user Home - [C213650]', async () => {
|
||||
it('[C213650] Location column redirect - item in user Home', async () => {
|
||||
await dataTable.clickItemLocation(favFolderName);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'Personal Files' ]);
|
||||
});
|
||||
|
||||
it('Location column redirect - file in folder - [C280484]', async () => {
|
||||
it('[C280484] Location column redirect - file in folder', async () => {
|
||||
await dataTable.clickItemLocation(fileName2);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'Personal Files', parentFolder ]);
|
||||
});
|
||||
|
||||
it('Location column redirect - file in site - [C280485]', async () => {
|
||||
it('[C280485] Location column redirect - file in site', async () => {
|
||||
await dataTable.clickItemLocation(fileName1);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'My Libraries', siteName ]);
|
||||
});
|
||||
|
||||
it('Navigate into folder from Favorites - [C213230]', async () => {
|
||||
it('[C213230] Navigate into folder from Favorites', async () => {
|
||||
await dataTable.doubleClickOnRowByName(favFolderName);
|
||||
await dataTable.waitForEmptyState();
|
||||
expect(await breadcrumb.getCurrentItemName()).toBe(favFolderName);
|
||||
|
@@ -102,21 +102,21 @@ describe('File Libraries', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('has the correct columns - [C217095]', async () => {
|
||||
it('[C217095] has the correct columns', async () => {
|
||||
const expectedColumns = [ 'Name', 'My Role', 'Visibility' ];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
it('User can see only the sites he is a member of - [C280501]', async () => {
|
||||
it('[C280501] User can see only the sites he is a member of', async () => {
|
||||
const sitesCount = await dataTable.getRowsCount();
|
||||
|
||||
expect(sitesCount).toEqual(10, 'Incorrect number of sites displayed');
|
||||
expect(await dataTable.isItemPresent(adminSite5)).toBe(false, `${adminSite5} should not appear in the list`);
|
||||
});
|
||||
|
||||
it('Library visibility is correctly displayed - [C289905]', async () => {
|
||||
it('[C289905] Library visibility is correctly displayed', async () => {
|
||||
const expectedSitesVisibility = {
|
||||
[userSitePrivate]: SITE_VISIBILITY.PRIVATE,
|
||||
[userSiteModerated]: SITE_VISIBILITY.MODERATED,
|
||||
@@ -130,7 +130,7 @@ describe('File Libraries', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('User role is correctly displayed - [C289903]', async () => {
|
||||
it('[C289903] User role is correctly displayed', async () => {
|
||||
const expectedSitesRoles = {
|
||||
[adminSite1]: SITE_ROLES.SITE_CONSUMER.LABEL,
|
||||
[adminSite2]: SITE_ROLES.SITE_CONTRIBUTOR.LABEL,
|
||||
@@ -145,7 +145,7 @@ describe('File Libraries', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('Site ID is displayed when two sites have the same name - [C217098]', async () => {
|
||||
it('[C217098] Site ID is displayed when two sites have the same name', async () => {
|
||||
const expectedSites = [
|
||||
`${siteName} (${siteId1})`,
|
||||
`${siteName} (${siteId2})`
|
||||
@@ -154,12 +154,12 @@ describe('File Libraries', () => {
|
||||
expect(actualSites.sort()).toEqual(expectedSites.sort());
|
||||
});
|
||||
|
||||
it('Tooltip for sites without description - [C217096]', async () => {
|
||||
it('[C217096] Tooltip for sites without description', async () => {
|
||||
const tooltip = await dataTable.getItemNameTooltip(userSitePrivate);
|
||||
expect(tooltip).toBe(`${userSitePrivate}`);
|
||||
});
|
||||
|
||||
it('Tooltip for sites with description - [C217097]', async () => {
|
||||
it('[C217097] Tooltip for sites with description', async () => {
|
||||
const tooltip = await dataTable.getItemNameTooltip(userSiteModerated);
|
||||
expect(tooltip).toBe(`${siteDescription}`);
|
||||
});
|
||||
@@ -171,21 +171,21 @@ describe('File Libraries', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('has the correct columns - [C289893]', async () => {
|
||||
it('[C289893] has the correct columns', async () => {
|
||||
const expectedColumns = [ 'Name', 'My Role', 'Visibility' ];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
it('User can see only his favorite sites - [C289897]', async () => {
|
||||
it('[C289897] User can see only his favorite sites', async () => {
|
||||
const sitesCount = await dataTable.getRowsCount();
|
||||
|
||||
expect(sitesCount).toEqual(9, 'Incorrect number of sites displayed');
|
||||
expect(await dataTable.isItemPresent(adminSite6)).toBe(false, `${adminSite6} should not appear`);
|
||||
});
|
||||
|
||||
it('Library visibility is correctly displayed - [C289906]', async () => {
|
||||
it('[C289906] Library visibility is correctly displayed', async () => {
|
||||
const expectedSitesVisibility = {
|
||||
[userSitePrivate]: SITE_VISIBILITY.PRIVATE,
|
||||
[userSiteModerated]: SITE_VISIBILITY.MODERATED,
|
||||
@@ -199,7 +199,7 @@ describe('File Libraries', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('User role is correctly displayed - [C289904]', async () => {
|
||||
it('[C289904] User role is correctly displayed', async () => {
|
||||
const expectedSitesRoles = {
|
||||
[adminSite1]: SITE_ROLES.SITE_CONSUMER.LABEL,
|
||||
[adminSite2]: SITE_ROLES.SITE_CONTRIBUTOR.LABEL,
|
||||
@@ -214,7 +214,7 @@ describe('File Libraries', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('Site ID is displayed when two sites have the same name - [C289896]', async () => {
|
||||
it('[C289896] Site ID is displayed when two sites have the same name', async () => {
|
||||
const expectedSites = [
|
||||
`${siteName} (${siteId1})`,
|
||||
`${siteName} (${siteId2})`
|
||||
@@ -223,12 +223,12 @@ describe('File Libraries', () => {
|
||||
expect(actualSites.sort()).toEqual(expectedSites.sort());
|
||||
});
|
||||
|
||||
it('Tooltip for sites without description - [C289894]', async () => {
|
||||
it('[C289894] Tooltip for sites without description', async () => {
|
||||
const tooltip = await dataTable.getItemNameTooltip(userSitePrivate);
|
||||
expect(tooltip).toBe(`${userSitePrivate}`);
|
||||
});
|
||||
|
||||
it('Tooltip for sites with description - [C289895]', async () => {
|
||||
it('[C289895] Tooltip for sites with description', async () => {
|
||||
const tooltip = await dataTable.getItemNameTooltip(userSiteModerated);
|
||||
expect(tooltip).toBe(`${siteDescription}`);
|
||||
});
|
||||
|
@@ -63,7 +63,7 @@ describe('Generic errors', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('File / folder not found - [C217313]', async () => {
|
||||
it('[C217313] File / folder not found', async () => {
|
||||
await page.clickPersonalFilesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(parent);
|
||||
await dataTable.doubleClickOnRowByName(file1);
|
||||
@@ -75,7 +75,7 @@ describe('Generic errors', () => {
|
||||
expect(await page.getGenericErrorTitle()).toContain(`This item no longer exists or you don't have permission to view it.`);
|
||||
});
|
||||
|
||||
it('Invalid URL - [C217315]', async () => {
|
||||
it('[C217315] Invalid URL', async () => {
|
||||
await page.load('/invalid page');
|
||||
|
||||
expect(await page.isGenericErrorDisplayed()).toBe(true, 'Generic error page not displayed');
|
||||
@@ -83,7 +83,7 @@ describe('Generic errors', () => {
|
||||
|
||||
});
|
||||
|
||||
it('Permission denied - [C217314]', async () => {
|
||||
it('[C217314] Permission denied', async () => {
|
||||
await page.clickPersonalFilesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(parent);
|
||||
await dataTable.doubleClickOnRowByName(file2);
|
||||
|
@@ -78,7 +78,7 @@ describe('Special permissions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('on Recent Files - [C213173]', async () => {
|
||||
it('[C213173] on Recent Files', async () => {
|
||||
await page.clickRecentFilesAndWait();
|
||||
expect(await dataTable.getRowsCount()).toBe(1, 'Incorrect number of items');
|
||||
await apis.admin.sites.deleteSiteMember(sitePrivate, username);
|
||||
@@ -86,7 +86,7 @@ describe('Special permissions', () => {
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'Items are still displayed');
|
||||
});
|
||||
|
||||
it('on Favorites - [C213227]', async () => {
|
||||
it('[C213227] on Favorites', async () => {
|
||||
await page.clickFavoritesAndWait();
|
||||
expect(await dataTable.getRowsCount()).toBe(1, 'Incorrect number of items');
|
||||
await apis.admin.sites.deleteSiteMember(sitePrivate, username);
|
||||
@@ -94,7 +94,7 @@ describe('Special permissions', () => {
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'Items are still displayed');
|
||||
});
|
||||
|
||||
it('on Shared Files - [C213116]', async () => {
|
||||
it('[C213116] on Shared Files', async () => {
|
||||
await page.clickSharedFilesAndWait();
|
||||
expect(await dataTable.getRowsCount()).toBe(1, 'Incorrect number of items');
|
||||
await apis.admin.sites.deleteSiteMember(sitePrivate, username);
|
||||
@@ -102,7 +102,7 @@ describe('Special permissions', () => {
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'Items are still displayed');
|
||||
});
|
||||
|
||||
it('on Search Results - [C290122]', async () => {
|
||||
it('[C290122] on Search Results', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(fileName);
|
||||
@@ -145,25 +145,25 @@ describe('Special permissions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it(`on Recent Files - [C213178]`, async () => {
|
||||
it('[C213178] on Recent Files', async () => {
|
||||
await page.clickRecentFilesAndWait();
|
||||
expect(await dataTable.getRowsCount()).toBe(1, 'Incorrect number of items');
|
||||
expect(await dataTable.getItemLocation(fileName)).toEqual('Unknown');
|
||||
});
|
||||
|
||||
it(`on Favorites - [C213672]`, async () => {
|
||||
it('[C213672] on Favorites', async () => {
|
||||
await page.clickFavoritesAndWait();
|
||||
expect(await dataTable.getRowsCount()).toBe(1, 'Incorrect number of items');
|
||||
expect(await dataTable.getItemLocation(fileName)).toEqual('Unknown');
|
||||
});
|
||||
|
||||
it(`on Shared Files - [C213668]`, async () => {
|
||||
it(`[C213668] on Shared Files`, async () => {
|
||||
await page.clickSharedFilesAndWait();
|
||||
expect(await dataTable.getRowsCount()).toBe(1, 'Incorrect number of items');
|
||||
expect(await dataTable.getItemLocation(fileName)).toEqual('Unknown');
|
||||
});
|
||||
|
||||
it('on Search results - [C306868]', async () => {
|
||||
it('[C306868] on Search results', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(fileName);
|
||||
|
@@ -76,7 +76,7 @@ describe('Personal Files', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('has Data Dictionary and created content - [C213241]', async () => {
|
||||
it('[C213241] has Data Dictionary and created content', async () => {
|
||||
expect(await dataTable.isItemPresent('Data Dictionary')).toBe(true, 'Data Dictionary not displayed');
|
||||
expect(await dataTable.isItemPresent(adminFolder)).toBe(true, 'admin folder not displayed');
|
||||
});
|
||||
@@ -93,22 +93,22 @@ describe('Personal Files', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('has the correct columns - [C217142]', async () => {
|
||||
it('[C217142] has the correct columns', async () => {
|
||||
const expectedColumns = [ 'Name', 'Size', 'Modified', 'Modified by' ];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
it('has default sorted column - [C217143]', async () => {
|
||||
it('[C217143] has default sorted column', async () => {
|
||||
expect(await dataTable.getSortedColumnHeaderText()).toBe('Modified');
|
||||
});
|
||||
|
||||
it('has user created content - [C213242]', async () => {
|
||||
it('[C213242] has user created content', async () => {
|
||||
expect(await dataTable.isItemPresent(userFolder)).toBe(true, 'user folder not displayed');
|
||||
});
|
||||
|
||||
it('navigates to folder - [C213244]', async () => {
|
||||
it('[C213244] navigates to folder', async () => {
|
||||
const nodeId = (await apis.user.nodes.getNodeByPath(`/${userFolder}`)).entry.id;
|
||||
|
||||
await dataTable.doubleClickOnRowByName(userFolder)
|
||||
@@ -118,19 +118,19 @@ describe('Personal Files', () => {
|
||||
expect(await dataTable.isItemPresent(userFile)).toBe(true, 'user file is missing');
|
||||
});
|
||||
|
||||
it('redirects to Personal Files on clicking the link from sidebar - [C213245]', async () => {
|
||||
it('[C213245] redirects to Personal Files on clicking the link from sidebar', async () => {
|
||||
await page.dataTable.doubleClickOnRowByName(userFolder);
|
||||
await page.clickPersonalFiles();
|
||||
const url = await browser.getCurrentUrl();
|
||||
expect(url.endsWith(APP_ROUTES.PERSONAL_FILES)).toBe(true, 'incorrect url');
|
||||
});
|
||||
|
||||
it('page loads correctly after browser refresh - [C213246]', async () => {
|
||||
it('[C213246] page loads correctly after browser refresh', async () => {
|
||||
await page.refresh();
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);
|
||||
});
|
||||
|
||||
it('page load by URL - [C213247]', async () => {
|
||||
it('[C213247] page load by URL', async () => {
|
||||
const url = await browser.getCurrentUrl();
|
||||
await page.clickTrash();
|
||||
await browser.get(url);
|
||||
|
@@ -80,52 +80,52 @@ describe('Recent Files', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('has the correct columns - [C213168]', async () => {
|
||||
it('[C213168] has the correct columns', async () => {
|
||||
const expectedColumns = [ 'Name', 'Location', 'Size', 'Modified' ];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
it('default sorting column - [C213171]', async () => {
|
||||
it('[C213171] default sorting column', async () => {
|
||||
expect(await dataTable.getSortedColumnHeaderText()).toBe('Modified');
|
||||
expect(await dataTable.getSortingOrder()).toBe('desc');
|
||||
});
|
||||
|
||||
it('displays the files added by the current user in the last 30 days - [C213170]', async () => {
|
||||
it('[C213170] displays the files added by the current user in the last 30 days', async () => {
|
||||
expect(await dataTable.getRowsCount()).toEqual(3, 'Incorrect number of files displayed');
|
||||
expect(await dataTable.isItemPresent(fileName1)).toBe(true, `${fileName1} not displayed`);
|
||||
expect(await dataTable.isItemPresent(fileName2)).toBe(true, `${fileName2} not displayed`);
|
||||
expect(await dataTable.isItemPresent(fileSite)).toBe(true, `${fileSite} not displayed`);
|
||||
});
|
||||
|
||||
it(`file not displayed if it's been deleted - [C213174]`, async () => {
|
||||
it(`[C213174] file not displayed if it's been deleted`, async () => {
|
||||
expect(await dataTable.isItemPresent(fileName3)).not.toBe(true, `${fileName3} is displayed`);
|
||||
});
|
||||
|
||||
it('Location column displays the parent folder of the file - [C213175]', async () => {
|
||||
it('[C213175] Location column displays the parent folder of the file', async () => {
|
||||
expect(await dataTable.getItemLocation(fileName1)).toEqual(folderName);
|
||||
expect(await dataTable.getItemLocation(fileName2)).toEqual('Personal Files');
|
||||
expect(await dataTable.getItemLocation(fileSite)).toEqual(folderSite);
|
||||
});
|
||||
|
||||
it('Location column displays a tooltip with the entire path of the file - [C213177]', async () => {
|
||||
it('[C213177] Location column displays a tooltip with the entire path of the file', async () => {
|
||||
expect(await dataTable.getItemLocationTooltip(fileName1)).toEqual(`Personal Files/${folderName}`);
|
||||
expect(await dataTable.getItemLocationTooltip(fileName2)).toEqual('Personal Files');
|
||||
expect(await dataTable.getItemLocationTooltip(fileSite)).toEqual(`File Libraries/${siteName}/${folderSite}`);
|
||||
});
|
||||
|
||||
it('Location column redirect - file in user Home - [C213176]', async () => {
|
||||
it('[C213176] Location column redirect - file in user Home', async () => {
|
||||
await dataTable.clickItemLocation(fileName2);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'Personal Files' ]);
|
||||
});
|
||||
|
||||
it('Location column redirect - file in folder - [C280486]', async () => {
|
||||
it('[C280486] Location column redirect - file in folder', async () => {
|
||||
await dataTable.clickItemLocation(fileName1);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'Personal Files', folderName ]);
|
||||
});
|
||||
|
||||
it('Location column redirect - file in site - [C280487]', async () => {
|
||||
it('[C280487] Location column redirect - file in site', async () => {
|
||||
await dataTable.clickItemLocation(fileSite);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'My Libraries', siteName, folderSite ]);
|
||||
});
|
||||
|
@@ -86,53 +86,53 @@ describe('Shared Files', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('has the correct columns - [C213113]', async () => {
|
||||
it('[C213113] has the correct columns', async () => {
|
||||
const expectedColumns = [ 'Name', 'Location', 'Size', 'Modified', 'Modified by', 'Shared by' ];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
it('default sorting column - [C213115]', async () => {
|
||||
it('[C213115] default sorting column', async () => {
|
||||
expect(await dataTable.getSortedColumnHeaderText()).toBe('Modified');
|
||||
expect(await dataTable.getSortingOrder()).toBe('desc');
|
||||
});
|
||||
|
||||
it('displays the files shared by everyone - [C213114]', async () => {
|
||||
it('[C213114] displays the files shared by everyone', async () => {
|
||||
expect(await dataTable.isItemPresent(fileAdmin)).toBe(true, `${fileAdmin} not displayed`);
|
||||
expect(await dataTable.isItemPresent(file1User)).toBe(true, `${file1User} not displayed`);
|
||||
});
|
||||
|
||||
it(`file not displayed if it's been deleted - [C213117]`, async () => {
|
||||
it(`[C213117] file not displayed if it's been deleted`, async () => {
|
||||
expect(await dataTable.isItemPresent(file2User)).toBe(false, `${file2User} is displayed`);
|
||||
});
|
||||
|
||||
it('unshared file is not displayed - [C213118]', async () => {
|
||||
it('[C213118] unshared file is not displayed', async () => {
|
||||
expect(await dataTable.isItemPresent(file3User)).toBe(false, `${file3User} is displayed`);
|
||||
});
|
||||
|
||||
it('Location column displays the parent folder of the file - [C213665]', async () => {
|
||||
it('[C213665] Location column displays the parent folder of the file', async () => {
|
||||
expect(await dataTable.getItemLocationTooltip(file4User)).toEqual('Personal Files');
|
||||
expect(await dataTable.getItemLocation(fileAdmin)).toEqual(siteName);
|
||||
expect(await dataTable.getItemLocation(file1User)).toEqual(folderUser);
|
||||
});
|
||||
|
||||
it('Location column redirect - file in user Home - [C213666]', async () => {
|
||||
it('[C213666] Location column redirect - file in user Home', async () => {
|
||||
await dataTable.clickItemLocation(file4User);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'Personal Files' ]);
|
||||
});
|
||||
|
||||
it('Location column redirect - file in folder - [C280490]', async () => {
|
||||
it('[C280490] Location column redirect - file in folder', async () => {
|
||||
await dataTable.clickItemLocation(file1User);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'Personal Files', folderUser ]);
|
||||
});
|
||||
|
||||
it('Location column redirect - file in site - [C280491]', async () => {
|
||||
it('[C280491] Location column redirect - file in site', async () => {
|
||||
await dataTable.clickItemLocation(fileAdmin);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'My Libraries', siteName ]);
|
||||
});
|
||||
|
||||
it('Location column displays a tooltip with the entire path of the file - [C213667]', async () => {
|
||||
it('[C213667] Location column displays a tooltip with the entire path of the file', async () => {
|
||||
expect(await dataTable.getItemLocationTooltip(fileAdmin)).toEqual(`File Libraries/${siteName}`);
|
||||
expect(await dataTable.getItemLocationTooltip(file1User)).toEqual(`Personal Files/${folderUser}`);
|
||||
});
|
||||
|
@@ -92,35 +92,35 @@ describe('File / folder tooltips', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('File with name, no title, no description - [C255871]', async () => {
|
||||
it('[C255871] File with name, no title, no description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(file)).toEqual(`${file}`);
|
||||
});
|
||||
|
||||
it('File with name and description, no title - [C255872]', async () => {
|
||||
it('[C255872] File with name and description, no title', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithDesc)).toEqual(`${fileWithDesc}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
it('File with name and title, no description - [C255873]', async () => {
|
||||
it('[C255873] File with name and title, no description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithTitle)).toEqual(`${fileWithTitle}\n${fileTitle}`);
|
||||
});
|
||||
|
||||
it('File with name and title and description, all different - [C255874]', async () => {
|
||||
it('[C255874] File with name and title and description, all different', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithTitleAndDesc)).toEqual(`${fileTitle}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
it('File with name and title and description, all equal - [C255875]', async () => {
|
||||
it('[C255875] File with name and title and description, all equal', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqTitleEqDesc)).toEqual(`${fileNameEqTitleEqDesc}`);
|
||||
});
|
||||
|
||||
it('File with name = title, different description - [C255876]', async () => {
|
||||
it('[C255876] File with name = title, different description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqTitleDiffDesc)).toEqual(`${fileNameEqTitleDiffDesc}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
it('File with name = description, different title - [C255877]', async () => {
|
||||
it('[C255877] File with name = description, different title', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqDescDiffTitle)).toEqual(`${fileTitle}\n${fileNameEqDescDiffTitle}`);
|
||||
});
|
||||
|
||||
it('File with title = description, different name - [C255878]', async () => {
|
||||
it('[C255878] File with title = description, different name', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileTitleEqDesc)).toEqual(`${fileTitle}`);
|
||||
});
|
||||
});
|
||||
@@ -132,35 +132,35 @@ describe('File / folder tooltips', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('File with name, no title, no description - [C280135]', async () => {
|
||||
it('[C280135] File with name, no title, no description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(file)).toEqual(`${file}`);
|
||||
});
|
||||
|
||||
it('File with name and description, no title - [C280136]', async () => {
|
||||
it('[C280136] File with name and description, no title', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithDesc)).toEqual(`${fileWithDesc}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
it('File with name and title, no description - [C280137]', async () => {
|
||||
it('[C280137] File with name and title, no description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithTitle)).toEqual(`${fileWithTitle}\n${fileTitle}`);
|
||||
});
|
||||
|
||||
it('File with name and title and description, all different - [C280138]', async () => {
|
||||
it('[C280138] File with name and title and description, all different', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithTitleAndDesc)).toEqual(`${fileTitle}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
it('File with name and title and description, all equal - [C280139]', async () => {
|
||||
it('[C280139] File with name and title and description, all equal', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqTitleEqDesc)).toEqual(`${fileNameEqTitleEqDesc}`);
|
||||
});
|
||||
|
||||
it('File with name = title, different description - [C280140]', async () => {
|
||||
it('[C280140] File with name = title, different description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqTitleDiffDesc)).toEqual(`${fileNameEqTitleDiffDesc}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
it('File with name = description, different title - [C280141]', async () => {
|
||||
it('[C280141] File with name = description, different title', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqDescDiffTitle)).toEqual(`${fileTitle}\n${fileNameEqDescDiffTitle}`);
|
||||
});
|
||||
|
||||
it('File with title = description, different name - [C280142]', async () => {
|
||||
it('[C280142] File with title = description, different name', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileTitleEqDesc)).toEqual(`${fileTitle}`);
|
||||
});
|
||||
});
|
||||
@@ -173,35 +173,35 @@ describe('File / folder tooltips', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
xit('File with name, no title, no description - [C280143]', async () => {
|
||||
xit('[C280143] File with name, no title, no description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(file)).toEqual(`${file}`);
|
||||
});
|
||||
|
||||
xit('File with name and description, no title - [C280144]', async () => {
|
||||
xit('[C280144] File with name and description, no title', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithDesc)).toEqual(`${fileWithDesc}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
xit('File with name and title, no description - [C280145]', async () => {
|
||||
xit('[C280145] File with name and title, no description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithTitle)).toEqual(`${fileWithTitle}\n${fileTitle}`);
|
||||
});
|
||||
|
||||
xit('File with name and title and description, all different - [C280146]', async () => {
|
||||
xit('[C280146] File with name and title and description, all different', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithTitleAndDesc)).toEqual(`${fileTitle}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
xit('File with name and title and description, all equal - [C280147]', async () => {
|
||||
xit('[C280147] File with name and title and description, all equal', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqTitleEqDesc)).toEqual(`${fileNameEqTitleEqDesc}`);
|
||||
});
|
||||
|
||||
xit('File with name = title, different description - [C280148]', async () => {
|
||||
xit('[C280148] File with name = title, different description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqTitleDiffDesc)).toEqual(`${fileNameEqTitleDiffDesc}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
xit('File with name = description, different title - [C280149]', async () => {
|
||||
xit('[C280149] File with name = description, different title', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqDescDiffTitle)).toEqual(`${fileTitle}\n${fileNameEqDescDiffTitle}`);
|
||||
});
|
||||
|
||||
xit('File with title = description, different name - [C280150]', async () => {
|
||||
xit('[C280150] File with title = description, different name', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileTitleEqDesc)).toEqual(`${fileTitle}`);
|
||||
});
|
||||
});
|
||||
@@ -212,35 +212,35 @@ describe('File / folder tooltips', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('File with name, no title, no description - [C280151]', async () => {
|
||||
it('[C280151] File with name, no title, no description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(file)).toEqual(`${file}`);
|
||||
});
|
||||
|
||||
it('File with name and description, no title - [C280152]', async () => {
|
||||
it('[C280152] File with name and description, no title', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithDesc)).toEqual(`${fileWithDesc}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
it('File with name and title, no description - [C280153]', async () => {
|
||||
it('[C280153] File with name and title, no description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithTitle)).toEqual(`${fileWithTitle}\n${fileTitle}`);
|
||||
});
|
||||
|
||||
it('File with name and title and description, all different - [C280154]', async () => {
|
||||
it('[C280154] File with name and title and description, all different', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithTitleAndDesc)).toEqual(`${fileTitle}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
it('File with name and title and description, all equal - [C280155]', async () => {
|
||||
it('[C280155] File with name and title and description, all equal', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqTitleEqDesc)).toEqual(`${fileNameEqTitleEqDesc}`);
|
||||
});
|
||||
|
||||
it('File with name = title, different description - [C280156]', async () => {
|
||||
it('[C280156] File with name = title, different description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqTitleDiffDesc)).toEqual(`${fileNameEqTitleDiffDesc}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
it('File with name = description, different title - [C280157]', async () => {
|
||||
it('[C280157] File with name = description, different title', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqDescDiffTitle)).toEqual(`${fileTitle}\n${fileNameEqDescDiffTitle}`);
|
||||
});
|
||||
|
||||
it('File with title = description, different name - [C280158]', async () => {
|
||||
it('[C280158] File with title = description, different name', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileTitleEqDesc)).toEqual(`${fileTitle}`);
|
||||
});
|
||||
});
|
||||
@@ -275,35 +275,35 @@ describe('File / folder tooltips', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('File with name, no title, no description - [C280159]', async () => {
|
||||
it('[C280159] File with name, no title, no description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(file)).toEqual(`${file}`);
|
||||
});
|
||||
|
||||
it('File with name and description, no title - [C280160]', async () => {
|
||||
it('[C280160] File with name and description, no title', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithDesc)).toEqual(`${fileWithDesc}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
it('File with name and title, no description - [C280161]', async () => {
|
||||
it('[C280161] File with name and title, no description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithTitle)).toEqual(`${fileWithTitle}\n${fileTitle}`);
|
||||
});
|
||||
|
||||
it('File with name and title and description, all different - [C280162]', async () => {
|
||||
it('[C280162] File with name and title and description, all different', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileWithTitleAndDesc)).toEqual(`${fileTitle}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
it('File with name and title and description, all equal - [C280163]', async () => {
|
||||
it('[C280163] File with name and title and description, all equal', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqTitleEqDesc)).toEqual(`${fileNameEqTitleEqDesc}`);
|
||||
});
|
||||
|
||||
it('File with name = title, different description - [C280164]', async () => {
|
||||
it('[C280164] File with name = title, different description', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqTitleDiffDesc)).toEqual(`${fileNameEqTitleDiffDesc}\n${fileDescription}`);
|
||||
});
|
||||
|
||||
it('File with name = description, different title - [C280165]', async () => {
|
||||
it('[C280165] File with name = description, different title', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileNameEqDescDiffTitle)).toEqual(`${fileTitle}\n${fileNameEqDescDiffTitle}`);
|
||||
});
|
||||
|
||||
it('File with title = description, different name - [C280166]', async () => {
|
||||
it('[C280166] File with title = description, different name', async () => {
|
||||
expect(await dataTable.getItemNameTooltip(fileTitleEqDesc)).toEqual(`${fileTitle}`);
|
||||
});
|
||||
});
|
||||
|
@@ -98,14 +98,14 @@ describe('Trash', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('has the correct columns - [C213217]', async () => {
|
||||
it('[C213217] has the correct columns', async () => {
|
||||
const expectedColumns = [ 'Name', 'Location', 'Size', 'Deleted', 'Deleted by' ];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
it('displays the files and folders deleted by everyone - [C280493]', async () => {
|
||||
it('[C280493] displays the files and folders deleted by everyone', async () => {
|
||||
expect(await dataTable.getRowsCount()).toEqual(8, 'Incorrect number of deleted items displayed');
|
||||
|
||||
expect(await dataTable.isItemPresent(fileAdmin)).toBe(true, `${fileAdmin} not displayed`);
|
||||
@@ -127,14 +127,14 @@ describe('Trash', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('has the correct columns - [C280494]', async () => {
|
||||
it('[C280494] has the correct columns', async () => {
|
||||
const expectedColumns = [ 'Name', 'Location', 'Size', 'Deleted'];
|
||||
const actualColumns = await dataTable.getColumnHeadersText();
|
||||
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
it('displays the files and folders deleted by the user - [C213218]', async () => {
|
||||
it('[C213218] displays the files and folders deleted by the user', async () => {
|
||||
expect(await dataTable.getRowsCount()).toEqual(6, 'Incorrect number of deleted items displayed');
|
||||
|
||||
expect(await dataTable.isItemPresent(fileSite)).toBe(true, `${fileSite} not displayed`);
|
||||
@@ -143,38 +143,38 @@ describe('Trash', () => {
|
||||
expect(await dataTable.isItemPresent(fileAdmin)).toBe(false, `${fileAdmin} is displayed`);
|
||||
});
|
||||
|
||||
it('default sorting column - [C213219]', async () => {
|
||||
it('[C213219] default sorting column', async () => {
|
||||
expect(await dataTable.getSortedColumnHeaderText()).toBe('Deleted');
|
||||
expect(await dataTable.getSortingOrder()).toBe('desc');
|
||||
});
|
||||
|
||||
it('Location column displays the parent folder of the file - [C280498]', async () => {
|
||||
it('[C280498] Location column displays the parent folder of the file', async () => {
|
||||
expect(await dataTable.getItemLocation(fileInFolder)).toEqual(folderNotDeleted);
|
||||
expect(await dataTable.getItemLocation(fileUser)).toEqual('Personal Files');
|
||||
expect(await dataTable.getItemLocation(fileSite)).toEqual(siteName);
|
||||
});
|
||||
|
||||
it('Location column displays a tooltip with the entire path of the file - [C280499]', async () => {
|
||||
it('[C280499] Location column displays a tooltip with the entire path of the file', async () => {
|
||||
expect(await dataTable.getItemLocationTooltip(fileInFolder)).toEqual(`Personal Files/${folderNotDeleted}`);
|
||||
expect(await dataTable.getItemLocationTooltip(fileUser)).toEqual('Personal Files');
|
||||
expect(await dataTable.getItemLocationTooltip(fileSite)).toEqual(`File Libraries/${siteName}`);
|
||||
});
|
||||
|
||||
it('Location column is empty if parent folder no longer exists - [C280500]', async () => {
|
||||
it('[C280500] Location column is empty if parent folder no longer exists', async () => {
|
||||
expect(await dataTable.getItemLocation(fileDeleted)).toEqual('');
|
||||
});
|
||||
|
||||
it('Location column redirect - file in user Home - [C217144]', async () => {
|
||||
it('[C217144] Location column redirect - file in user Home', async () => {
|
||||
await dataTable.clickItemLocation(fileUser);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'Personal Files' ]);
|
||||
});
|
||||
|
||||
it('Location column redirect - file in folder - [C280496]', async () => {
|
||||
it('[C280496] Location column redirect - file in folder', async () => {
|
||||
await dataTable.clickItemLocation(fileInFolder);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'Personal Files', folderNotDeleted ]);
|
||||
});
|
||||
|
||||
it('Location column redirect - file in site - [C280497]', async () => {
|
||||
it('[C280497] Location column redirect - file in site', async () => {
|
||||
await dataTable.clickItemLocation(fileSite);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'My Libraries', siteName ]);
|
||||
});
|
||||
|
@@ -83,49 +83,49 @@ describe('Breadcrumb', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Personal Files breadcrumb main node - [C260964]', async () => {
|
||||
it('[C260964] Personal Files breadcrumb main node', async () => {
|
||||
await page.clickPersonalFiles();
|
||||
expect(await breadcrumb.getItemsCount()).toEqual(1, 'Breadcrumb has incorrect number of items');
|
||||
expect(await breadcrumb.getCurrentItemName()).toBe('Personal Files');
|
||||
});
|
||||
|
||||
it('My Libraries breadcrumb main node - [C260966]', async () => {
|
||||
it('[C260966] My Libraries breadcrumb main node', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
expect(await breadcrumb.getItemsCount()).toEqual(1, 'Breadcrumb has incorrect number of items');
|
||||
expect(await breadcrumb.getCurrentItemName()).toBe('My Libraries');
|
||||
});
|
||||
|
||||
it('Favorite Libraries breadcrumb main node - [C289891]', async () => {
|
||||
it('[C289891] Favorite Libraries breadcrumb main node', async () => {
|
||||
await page.goToFavoriteLibrariesAndWait();
|
||||
expect(await breadcrumb.getItemsCount()).toEqual(1, 'Breadcrumb has incorrect number of items');
|
||||
expect(await breadcrumb.getCurrentItemName()).toBe('Favorite Libraries');
|
||||
});
|
||||
|
||||
it('Recent Files breadcrumb main node - [C260971]', async () => {
|
||||
it('[C260971] Recent Files breadcrumb main node', async () => {
|
||||
await page.clickRecentFiles();
|
||||
expect(await breadcrumb.getItemsCount()).toEqual(1, 'Breadcrumb has incorrect number of items');
|
||||
expect(await breadcrumb.getCurrentItemName()).toBe('Recent Files');
|
||||
});
|
||||
|
||||
it('Shared Files breadcrumb main node - [C260972]', async () => {
|
||||
it('[C260972] Shared Files breadcrumb main node', async () => {
|
||||
await page.clickSharedFiles();
|
||||
expect(await breadcrumb.getItemsCount()).toEqual(1, 'Breadcrumb has incorrect number of items');
|
||||
expect(await breadcrumb.getCurrentItemName()).toBe('Shared Files');
|
||||
});
|
||||
|
||||
it('Favorites breadcrumb main node - [C260973]', async () => {
|
||||
it('[C260973] Favorites breadcrumb main node', async () => {
|
||||
await page.clickFavorites();
|
||||
expect(await breadcrumb.getItemsCount()).toEqual(1, 'Breadcrumb has incorrect number of items');
|
||||
expect(await breadcrumb.getCurrentItemName()).toBe('Favorites');
|
||||
});
|
||||
|
||||
it('Trash breadcrumb main node - [C260974]', async () => {
|
||||
it('[C260974] Trash breadcrumb main node', async () => {
|
||||
await page.clickTrash();
|
||||
expect(await breadcrumb.getItemsCount()).toEqual(1, 'Breadcrumb has incorrect number of items');
|
||||
expect(await breadcrumb.getCurrentItemName()).toBe('Trash');
|
||||
});
|
||||
|
||||
it('Personal Files breadcrumb for a folder hierarchy - [C260965]', async () => {
|
||||
it('[C260965] Personal Files breadcrumb for a folder hierarchy', async () => {
|
||||
await page.clickPersonalFilesAndWait();
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
await page.dataTable.doubleClickOnRowByName(subFolder1);
|
||||
@@ -134,7 +134,7 @@ describe('Breadcrumb', () => {
|
||||
expect(await breadcrumb.getAllItems()).toEqual(expectedBreadcrumb);
|
||||
});
|
||||
|
||||
it('File Libraries breadcrumb for a folder hierarchy - [C260967]', async () => {
|
||||
it('[C260967] File Libraries breadcrumb for a folder hierarchy', async () => {
|
||||
await page.clickFileLibrariesAndWait();
|
||||
await page.dataTable.doubleClickOnRowByName(siteName);
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
@@ -144,7 +144,7 @@ describe('Breadcrumb', () => {
|
||||
expect(await breadcrumb.getAllItems()).toEqual(expectedItems);
|
||||
});
|
||||
|
||||
it('User can navigate to any location by clicking on a step from the breadcrumb - [C213235]', async () => {
|
||||
it('[C213235] User can navigate to any location by clicking on a step from the breadcrumb', async () => {
|
||||
await page.clickPersonalFilesAndWait();
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
await page.dataTable.doubleClickOnRowByName(subFolder1);
|
||||
@@ -154,7 +154,7 @@ describe('Breadcrumb', () => {
|
||||
expect(await breadcrumb.getAllItems()).toEqual(expectedBreadcrumb);
|
||||
});
|
||||
|
||||
it('Tooltip appears on hover on a step in breadcrumb - [C213237]', async () => {
|
||||
it('[C213237] Tooltip appears on hover on a step in breadcrumb', async () => {
|
||||
await page.clickPersonalFilesAndWait();
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
await page.dataTable.doubleClickOnRowByName(subFolder1);
|
||||
@@ -162,7 +162,7 @@ describe('Breadcrumb', () => {
|
||||
expect(await breadcrumb.getNthItemTooltip(3)).toEqual(subFolder1);
|
||||
});
|
||||
|
||||
it('Breadcrumb updates correctly when folder is renamed - [C213238]', async () => {
|
||||
it('[C213238] Breadcrumb updates correctly when folder is renamed', async () => {
|
||||
await page.clickPersonalFilesAndWait();
|
||||
await page.dataTable.doubleClickOnRowByName(parent2);
|
||||
await page.dataTable.doubleClickOnRowByName(folder1);
|
||||
@@ -173,7 +173,7 @@ describe('Breadcrumb', () => {
|
||||
expect(await breadcrumb.getCurrentItemName()).toEqual(folder1Renamed);
|
||||
});
|
||||
|
||||
it('Browser back navigates to previous location regardless of breadcrumb steps - [C213240]', async () => {
|
||||
it('[C213240] Browser back navigates to previous location regardless of breadcrumb steps', async () => {
|
||||
await page.clickPersonalFilesAndWait();
|
||||
await page.dataTable.doubleClickOnRowByName(parent);
|
||||
await page.dataTable.doubleClickOnRowByName(subFolder1);
|
||||
@@ -202,7 +202,7 @@ describe('Breadcrumb', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it(`Breadcrumb on navigation to a user's home - [C260970]`, async () => {
|
||||
it(`[C260970] Breadcrumb on navigation to a user's home`, async () => {
|
||||
await page.dataTable.doubleClickOnRowByName('User Homes');
|
||||
await page.dataTable.doubleClickOnRowByName(user2);
|
||||
expect(await breadcrumb.getAllItems()).toEqual([ 'Personal Files', 'User Homes', user2 ]);
|
||||
|
@@ -46,70 +46,70 @@ describe('Sidebar', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('has "Personal Files" as default - [C217149]', async () => {
|
||||
it('[C217149] has "Personal Files" as default', async () => {
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);
|
||||
expect(await sidenav.isActive(SIDEBAR_LABELS.PERSONAL_FILES)).toBe(true, 'Default active link');
|
||||
});
|
||||
|
||||
it('File Libraries has correct sub-categories - [C217150]', async () => {
|
||||
it('[C217150] File Libraries has correct sub-categories', async () => {
|
||||
await page.clickFileLibraries();
|
||||
expect(await sidenav.isFileLibrariesMenuExpanded()).toBe(true, 'File Libraries not expanded');
|
||||
expect(await sidenav.getLink(SIDEBAR_LABELS.MY_LIBRARIES).isPresent()).toBe(true, 'My Libraries link not present');
|
||||
expect(await sidenav.getLink(SIDEBAR_LABELS.FAVORITE_LIBRARIES).isPresent()).toBe(true, 'Favorite Libraries link not present');
|
||||
});
|
||||
|
||||
it('My Libraries is automatically selected on expanding File Libraries - [C289900]', async () => {
|
||||
it('[C289900] My Libraries is automatically selected on expanding File Libraries', async () => {
|
||||
await sidenav.expandFileLibraries();
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.MY_LIBRARIES);
|
||||
expect(await sidenav.isActive(SIDEBAR_LABELS.FILE_LIBRARIES)).toBe(true, 'File Libraries is not active');
|
||||
expect(await sidenav.isActive(SIDEBAR_LABELS.MY_LIBRARIES)).toBe(true, 'My Libraries link not active');
|
||||
});
|
||||
|
||||
it('navigate to Favorite Libraries - [C289902]', async () => {
|
||||
it('[C289902] navigate to Favorite Libraries', async () => {
|
||||
await page.goToFavoriteLibraries();
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.FAVORITE_LIBRARIES);
|
||||
expect(await sidenav.isActive(SIDEBAR_LABELS.FILE_LIBRARIES)).toBe(true, 'File Libraries link is not active');
|
||||
expect(await sidenav.isActive(SIDEBAR_LABELS.FAVORITE_LIBRARIES)).toBe(true, 'Favorite Libraries link not active');
|
||||
});
|
||||
|
||||
it('navigate to My Libraries - [C289901]', async () => {
|
||||
it('[C289901] navigate to My Libraries', async () => {
|
||||
await page.goToMyLibraries();
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.MY_LIBRARIES);
|
||||
expect(await sidenav.isActive(SIDEBAR_LABELS.FILE_LIBRARIES)).toBe(true, 'File Libraries link is not active');
|
||||
expect(await sidenav.isActive(SIDEBAR_LABELS.MY_LIBRARIES)).toBe(true, 'My Libraries link not active');
|
||||
});
|
||||
|
||||
it('navigates to "Shared Files" - [C213110]', async () => {
|
||||
it('[C213110] navigates to "Shared Files"', async () => {
|
||||
await page.clickSharedFiles();
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.SHARED_FILES);
|
||||
expect(await sidenav.isActive(SIDEBAR_LABELS.SHARED_FILES)).toBe(true, 'Shared Files link not active');
|
||||
});
|
||||
|
||||
it('navigates to "Recent Files" - [C213166]', async () => {
|
||||
it('[C213166] navigates to "Recent Files"', async () => {
|
||||
await page.clickRecentFiles();
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.RECENT_FILES);
|
||||
expect(await sidenav.isActive(SIDEBAR_LABELS.RECENT_FILES)).toBe(true, 'Recent Files link not active');
|
||||
});
|
||||
|
||||
it('navigates to "Favorites" - [C213225]', async () => {
|
||||
it('[C213225] navigates to "Favorites"', async () => {
|
||||
await page.clickFavorites();
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.FAVORITES);
|
||||
expect(await sidenav.isActive(SIDEBAR_LABELS.FAVORITES)).toBe(true, 'Favorites link not active');
|
||||
});
|
||||
|
||||
it('navigates to "Trash" - [C213216]', async () => {
|
||||
it('[C213216] navigates to "Trash"', async () => {
|
||||
await page.clickTrash();
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.TRASHCAN);
|
||||
expect(await sidenav.isActive(SIDEBAR_LABELS.TRASH)).toBe(true, 'Trash link not active');
|
||||
});
|
||||
|
||||
it('navigates to "Personal Files" - [C280409]', async () => {
|
||||
it('[C280409] navigates to "Personal Files"', async () => {
|
||||
await page.clickPersonalFiles();
|
||||
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);
|
||||
expect(await sidenav.isActive(SIDEBAR_LABELS.PERSONAL_FILES)).toBe(true, 'Personal Files link not active');
|
||||
});
|
||||
|
||||
it('Personal Files tooltip - [C217151]', async () => {
|
||||
it('[C217151] Personal Files tooltip', async () => {
|
||||
await page.clickPersonalFiles();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.PERSONAL_FILES)).toContain('View your Personal Files');
|
||||
|
||||
@@ -117,7 +117,7 @@ describe('Sidebar', () => {
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.PERSONAL_FILES)).toContain('View your Personal Files');
|
||||
});
|
||||
|
||||
it('Shared Files tooltip - [C213111]', async () => {
|
||||
it('[C213111] Shared Files tooltip', async () => {
|
||||
await page.clickSharedFiles();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.SHARED_FILES)).toContain('View files that have been shared');
|
||||
|
||||
@@ -125,7 +125,7 @@ describe('Sidebar', () => {
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.SHARED_FILES)).toContain('View files that have been shared');
|
||||
});
|
||||
|
||||
it('Recent Files tooltip - [C213167]', async () => {
|
||||
it('[C213167] Recent Files tooltip', async () => {
|
||||
await page.clickRecentFiles();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.RECENT_FILES)).toContain('View files you recently edited');
|
||||
|
||||
@@ -133,7 +133,7 @@ describe('Sidebar', () => {
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.RECENT_FILES)).toContain('View files you recently edited');
|
||||
});
|
||||
|
||||
it('Favorites tooltip - [C217153]', async () => {
|
||||
it('[C217153] Favorites tooltip', async () => {
|
||||
await page.clickFavorites();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FAVORITES)).toContain('View your favorite files and folders');
|
||||
|
||||
@@ -141,7 +141,7 @@ describe('Sidebar', () => {
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FAVORITES)).toContain('View your favorite files and folders');
|
||||
});
|
||||
|
||||
it('Trash tooltip - [C217154]', async () => {
|
||||
it('[C217154] Trash tooltip', async () => {
|
||||
await page.clickTrash();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.TRASH)).toContain('View deleted files in the trash');
|
||||
|
||||
@@ -149,7 +149,7 @@ describe('Sidebar', () => {
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.TRASH)).toContain('View deleted files in the trash');
|
||||
});
|
||||
|
||||
it('File Libraries tooltip - [C217152]', async () => {
|
||||
it('[C217152] File Libraries tooltip', async () => {
|
||||
await page.clickFileLibraries();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FILE_LIBRARIES)).toContain('File Libraries');
|
||||
|
||||
@@ -157,7 +157,7 @@ describe('Sidebar', () => {
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FILE_LIBRARIES)).toContain('File Libraries');
|
||||
});
|
||||
|
||||
it('My Libraries tooltip - [C289916]', async () => {
|
||||
it('[C289916] My Libraries tooltip', async () => {
|
||||
await page.goToMyLibraries();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.MY_LIBRARIES)).toContain('Access my libraries');
|
||||
|
||||
@@ -166,7 +166,7 @@ describe('Sidebar', () => {
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.MY_LIBRARIES)).toContain('Access my libraries');
|
||||
});
|
||||
|
||||
it('Favorite Libraries tooltip - [C289917]', async () => {
|
||||
it('[C289917] Favorite Libraries tooltip', async () => {
|
||||
await page.goToFavoriteLibraries();
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FAVORITE_LIBRARIES)).toContain('Access my favorite libraries');
|
||||
|
||||
@@ -175,11 +175,11 @@ describe('Sidebar', () => {
|
||||
expect(await sidenav.getLinkTooltip(SIDEBAR_LABELS.FAVORITE_LIBRARIES)).toContain('Access my favorite libraries');
|
||||
});
|
||||
|
||||
it('default state is expanded - [C269095]', async () => {
|
||||
it('[C269095] default state is expanded', async () => {
|
||||
expect(await header.isSidenavExpanded()).toBe(true, 'Sidebar not expanded');
|
||||
});
|
||||
|
||||
it('sidebar toggle - [C269096]', async () => {
|
||||
it('[C269096] sidebar toggle', async () => {
|
||||
await header.collapseSideNav();
|
||||
expect(await header.isSidenavExpanded()).toBe(false, 'Sidebar not collapsed');
|
||||
|
||||
@@ -187,7 +187,7 @@ describe('Sidebar', () => {
|
||||
expect(await header.isSidenavExpanded()).toBe(true, 'Sidebar not expanded');
|
||||
});
|
||||
|
||||
it('sidebar state is preserved on page refresh - [C269100]', async () => {
|
||||
it('[C269100] sidebar state is preserved on page refresh', async () => {
|
||||
expect(await header.isSidenavExpanded()).toBe(true, 'Sidebar not expanded');
|
||||
await page.refresh();
|
||||
expect(await header.isSidenavExpanded()).toBe(true, 'Sidebar not expanded');
|
||||
@@ -198,7 +198,7 @@ describe('Sidebar', () => {
|
||||
expect(await header.isSidenavExpanded()).toBe(false, 'Sidebar not collapsed');
|
||||
});
|
||||
|
||||
it('sidebar state is preserved after logout / login - [C269102]', async () => {
|
||||
it('[C269102] sidebar state is preserved after logout / login', async () => {
|
||||
await header.collapseSideNav();
|
||||
await page.signOut();
|
||||
await loginPage.loginWithAdmin();
|
||||
@@ -206,7 +206,7 @@ describe('Sidebar', () => {
|
||||
expect(await header.isSidenavExpanded()).toBe(false, 'Sidebar not collapsed');
|
||||
});
|
||||
|
||||
it('sidebar is collapsed automatically when Search Results opens - [C277223]', async () => {
|
||||
it('[C277223] sidebar is collapsed automatically when Search Results opens', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
/* cspell:disable-next-line */
|
||||
await searchInput.searchFor('qwertyuiop');
|
||||
@@ -215,7 +215,7 @@ describe('Sidebar', () => {
|
||||
expect(await header.isSidenavExpanded()).toBe(false, 'Sidebar not collapsed');
|
||||
});
|
||||
|
||||
it('sidenav returns to the default state when navigating away from the Search Results page - [C277224]', async () => {
|
||||
it('[C277224] sidenav returns to the default state when navigating away from the Search Results page', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
/* cspell:disable-next-line */
|
||||
await searchInput.searchFor('qwertyuiop');
|
||||
@@ -225,7 +225,7 @@ describe('Sidebar', () => {
|
||||
expect(await header.isSidenavExpanded()).toBe(true, 'Sidebar not expanded');
|
||||
});
|
||||
|
||||
it('sidenav can be expanded when search results page is displayed - [C277230]', async () => {
|
||||
it('[C277230] sidenav can be expanded when search results page is displayed', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
/* cspell:disable-next-line */
|
||||
await searchInput.searchFor('qwertyuiop');
|
||||
|
@@ -84,7 +84,7 @@ describe('Single click on item name', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Hyperlink does not appear for items in the Trash - [C284899]', async () => {
|
||||
it('[C284899] Hyperlink does not appear for items in the Trash', async () => {
|
||||
await page.clickTrashAndWait();
|
||||
|
||||
expect(await dataTable.hasLinkOnName(deletedFile1)).toBe(false, 'Link on name is present');
|
||||
@@ -97,11 +97,11 @@ describe('Single click on item name', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Hyperlink appears when mouse over a file/folder - [C280032]', async () => {
|
||||
it('[C280032] Hyperlink appears when mouse over a file/folder', async () => {
|
||||
expect(await dataTable.hasLinkOnName(file1)).toBe(true, 'Link on name is missing');
|
||||
});
|
||||
|
||||
it('File preview opens when clicking the hyperlink - [C280033]', async () => {
|
||||
it('[C280033] File preview opens when clicking the hyperlink', async () => {
|
||||
await dataTable.clickNameLink(file1);
|
||||
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
@@ -109,7 +109,7 @@ describe('Single click on item name', () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('Navigate inside the folder when clicking the hyperlink - [C280034]', async () => {
|
||||
it('[C280034] Navigate inside the folder when clicking the hyperlink', async () => {
|
||||
await dataTable.clickNameLink(folder1);
|
||||
|
||||
expect(await breadcrumb.getCurrentItemName()).toBe(folder1);
|
||||
@@ -122,11 +122,11 @@ describe('Single click on item name', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Hyperlink appears when mouse over a library - [C284901]', async () => {
|
||||
it('[C284901] Hyperlink appears when mouse over a library', async () => {
|
||||
expect(await dataTable.hasLinkOnName(siteName)).toBe(true, 'Link on site name is missing');
|
||||
});
|
||||
|
||||
it('Navigate inside the library when clicking the hyperlink - [C284902]', async () => {
|
||||
it('[C284902] Navigate inside the library when clicking the hyperlink', async () => {
|
||||
await dataTable.clickNameLink(siteName);
|
||||
|
||||
expect(await breadcrumb.getCurrentItemName()).toBe(siteName);
|
||||
@@ -140,11 +140,11 @@ describe('Single click on item name', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Hyperlink appears when mouse over a file - [C284905]', async () => {
|
||||
it('[C284905] Hyperlink appears when mouse over a file', async () => {
|
||||
expect(await dataTable.hasLinkOnName(file1)).toBe(true, 'Link on name is missing');
|
||||
});
|
||||
|
||||
it('File preview opens when clicking the hyperlink - [C284906]', async () => {
|
||||
it('[C284906] File preview opens when clicking the hyperlink', async () => {
|
||||
await dataTable.clickNameLink(file1);
|
||||
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
@@ -159,11 +159,11 @@ describe('Single click on item name', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Hyperlink appears when mouse over a file - [C284907]', async () => {
|
||||
it('[C284907] Hyperlink appears when mouse over a file', async () => {
|
||||
expect(await dataTable.hasLinkOnName(file1)).toBe(true, 'Link on name is missing');
|
||||
});
|
||||
|
||||
it('File preview opens when clicking the hyperlink - [C284908]', async () => {
|
||||
it('[C284908] File preview opens when clicking the hyperlink', async () => {
|
||||
await dataTable.clickNameLink(file1);
|
||||
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
@@ -178,11 +178,11 @@ describe('Single click on item name', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Hyperlink appears when mouse over a file/folder - [C284909]', async () => {
|
||||
it('[C284909] Hyperlink appears when mouse over a file/folder', async () => {
|
||||
expect(await dataTable.hasLinkOnName(file1)).toBe(true, 'Link on name is missing');
|
||||
});
|
||||
|
||||
it('File preview opens when clicking the hyperlink - [C284910]', async () => {
|
||||
it('[C284910] File preview opens when clicking the hyperlink', async () => {
|
||||
await dataTable.clickNameLink(file1);
|
||||
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
@@ -190,7 +190,7 @@ describe('Single click on item name', () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('Navigate inside the folder when clicking the hyperlink - [C284911]', async () => {
|
||||
it('[C284911] Navigate inside the folder when clicking the hyperlink', async () => {
|
||||
await dataTable.clickNameLink(folder1);
|
||||
|
||||
expect(await breadcrumb.getCurrentItemName()).toBe(folder1);
|
||||
@@ -210,14 +210,14 @@ describe('Single click on item name', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Hyperlink appears when mouse over a file - [C306988]', async () => {
|
||||
it('[C306988] Hyperlink appears when mouse over a file', async () => {
|
||||
await searchInput.searchFor(file1);
|
||||
await dataTable.waitForBody();
|
||||
|
||||
expect(await dataTable.hasLinkOnSearchResultName(file1)).toBe(true, 'Link on name is missing');
|
||||
});
|
||||
|
||||
it('File preview opens when clicking the hyperlink - [C306989]', async () => {
|
||||
it('[C306989] File preview opens when clicking the hyperlink', async () => {
|
||||
await searchInput.searchFor(file1);
|
||||
await dataTable.waitForBody();
|
||||
await dataTable.clickSearchResultNameLink(file1);
|
||||
@@ -227,7 +227,7 @@ describe('Single click on item name', () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('Navigate inside the folder when clicking the hyperlink - [C306990]', async () => {
|
||||
it('[C306990] Navigate inside the folder when clicking the hyperlink', async () => {
|
||||
await searchInput.searchFor(folder1);
|
||||
await dataTable.waitForBody();
|
||||
await dataTable.clickSearchResultNameLink(folder1);
|
||||
|
@@ -64,7 +64,7 @@ describe('Pagination on multiple pages', () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('Pagination control default values - [C280086]', async () => {
|
||||
it('[C280086] Pagination control default values', async () => {
|
||||
expect(await pagination.getRange()).toContain('1-25 of 101');
|
||||
expect(await pagination.getMaxItems()).toContain('25');
|
||||
expect(await pagination.getCurrentPage()).toContain('Page 1');
|
||||
@@ -73,7 +73,7 @@ describe('Pagination on multiple pages', () => {
|
||||
expect(await pagination.isNextEnabled()).toBe(true, 'Next button is not enabled');
|
||||
});
|
||||
|
||||
it('Items per page values - [C280087]', async () => {
|
||||
it('[C280087] Items per page values', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
expect(await pagination.menu.getNthItem(1).getText()).toBe('25');
|
||||
expect(await pagination.menu.getNthItem(2).getText()).toBe('50');
|
||||
@@ -81,7 +81,7 @@ describe('Pagination on multiple pages', () => {
|
||||
await pagination.menu.closeMenu();
|
||||
});
|
||||
|
||||
it('current page menu items - [C280088]', async () => {
|
||||
it('[C280088] current page menu items', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
await pagination.menu.clickMenuItem('25');
|
||||
expect(await pagination.getMaxItems()).toContain('25');
|
||||
@@ -109,7 +109,7 @@ describe('Pagination on multiple pages', () => {
|
||||
await pagination.resetToDefaultPageSize();
|
||||
});
|
||||
|
||||
it('change the current page from menu - [C280089]', async () => {
|
||||
it('[C280089] change the current page from menu', async () => {
|
||||
await pagination.openCurrentPageMenu();
|
||||
await pagination.menu.clickNthItem(3);
|
||||
await dataTable.waitForHeader();
|
||||
@@ -122,7 +122,7 @@ describe('Pagination on multiple pages', () => {
|
||||
await pagination.resetToDefaultPageNumber();
|
||||
});
|
||||
|
||||
it('navigate to next and previous pages - [C280092]', async () => {
|
||||
it('[C280092] navigate to next and previous pages', async () => {
|
||||
await pagination.clickNext();
|
||||
await dataTable.waitForHeader();
|
||||
expect(await pagination.getRange()).toContain('26-50 of 101');
|
||||
@@ -140,12 +140,12 @@ describe('Pagination on multiple pages', () => {
|
||||
await pagination.resetToDefaultPageNumber();
|
||||
});
|
||||
|
||||
it('Previous button is disabled on first page - [C280090]', async () => {
|
||||
it('[C280090] Previous button is disabled on first page', async () => {
|
||||
expect(await pagination.getCurrentPage()).toContain('Page 1');
|
||||
expect(await pagination.isPreviousEnabled()).toBe(false, 'Previous button is enabled on first page');
|
||||
});
|
||||
|
||||
it('Next button is disabled on last page - [C280091]', async () => {
|
||||
it('[C280091] Next button is disabled on last page', async () => {
|
||||
await pagination.openCurrentPageMenu();
|
||||
await pagination.menu.clickNthItem(5);
|
||||
expect(await dataTable.getRowsCount()).toBe(1, 'Incorrect number of items on the last page');
|
||||
@@ -163,7 +163,7 @@ describe('Pagination on multiple pages', () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('Pagination control default values - [C291875]', async () => {
|
||||
it('[C291875] Pagination control default values', async () => {
|
||||
expect(await pagination.getRange()).toContain('1-25 of 101');
|
||||
expect(await pagination.getMaxItems()).toContain('25');
|
||||
expect(await pagination.getCurrentPage()).toContain('Page 1');
|
||||
@@ -172,7 +172,7 @@ describe('Pagination on multiple pages', () => {
|
||||
expect(await pagination.isNextEnabled()).toBe(true, 'Next button is not enabled');
|
||||
});
|
||||
|
||||
it('Items per page values - [C291876]', async () => {
|
||||
it('[C291876] Items per page values', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
expect(await pagination.menu.getNthItem(1).getText()).toBe('25');
|
||||
expect(await pagination.menu.getNthItem(2).getText()).toBe('50');
|
||||
@@ -180,7 +180,7 @@ describe('Pagination on multiple pages', () => {
|
||||
await pagination.menu.closeMenu();
|
||||
});
|
||||
|
||||
it('current page menu items - [C291877]', async () => {
|
||||
it('[C291877] current page menu items', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
await pagination.menu.clickMenuItem('25');
|
||||
expect(await pagination.getMaxItems()).toContain('25');
|
||||
@@ -208,7 +208,7 @@ describe('Pagination on multiple pages', () => {
|
||||
await pagination.resetToDefaultPageSize();
|
||||
});
|
||||
|
||||
it('change the current page from menu - [C291878]', async () => {
|
||||
it('[C291878] change the current page from menu', async () => {
|
||||
await pagination.openCurrentPageMenu();
|
||||
await pagination.menu.clickNthItem(3);
|
||||
await dataTable.waitForHeader();
|
||||
@@ -221,7 +221,7 @@ describe('Pagination on multiple pages', () => {
|
||||
await pagination.resetToDefaultPageNumber();
|
||||
});
|
||||
|
||||
it('navigate to next and previous pages - [C291881]', async () => {
|
||||
it('[C291881] navigate to next and previous pages', async () => {
|
||||
await pagination.clickNext();
|
||||
await dataTable.waitForHeader();
|
||||
expect(await pagination.getRange()).toContain('26-50 of 101');
|
||||
@@ -239,12 +239,12 @@ describe('Pagination on multiple pages', () => {
|
||||
await pagination.resetToDefaultPageNumber();
|
||||
});
|
||||
|
||||
it('Previous button is disabled on first page - [C291879]', async () => {
|
||||
it('[C291879] Previous button is disabled on first page', async () => {
|
||||
expect(await pagination.getCurrentPage()).toContain('Page 1');
|
||||
expect(await pagination.isPreviousEnabled()).toBe(false, 'Previous button is enabled on first page');
|
||||
});
|
||||
|
||||
it('Next button is disabled on last page - [C291880]', async () => {
|
||||
it('[C291880] Next button is disabled on last page', async () => {
|
||||
await pagination.openCurrentPageMenu();
|
||||
await pagination.menu.clickNthItem(5);
|
||||
expect(await dataTable.getRowsCount()).toBe(1, 'Incorrect number of items on the last page');
|
||||
|
@@ -63,7 +63,7 @@ describe('Pagination on multiple pages on Trash', () => {
|
||||
await userApi.trashcan.emptyTrash();
|
||||
});
|
||||
|
||||
it('Pagination control default values - [C280122]', async () => {
|
||||
it('[C280122] Pagination control default values', async () => {
|
||||
expect(await pagination.getRange()).toContain('1-25 of 101');
|
||||
expect(await pagination.getMaxItems()).toContain('25');
|
||||
expect(await pagination.getCurrentPage()).toContain('Page 1');
|
||||
@@ -72,7 +72,7 @@ describe('Pagination on multiple pages on Trash', () => {
|
||||
expect(await pagination.isNextEnabled()).toBe(true, 'Next button is not enabled');
|
||||
});
|
||||
|
||||
it('Items per page values - [C280123]', async () => {
|
||||
it('[C280123] Items per page values', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
expect(await pagination.menu.getNthItem(1).getText()).toBe('25');
|
||||
expect(await pagination.menu.getNthItem(2).getText()).toBe('50');
|
||||
@@ -80,7 +80,7 @@ describe('Pagination on multiple pages on Trash', () => {
|
||||
await pagination.menu.closeMenu();
|
||||
});
|
||||
|
||||
it('current page menu items - [C280124]', async () => {
|
||||
it('[C280124] current page menu items', async () => {
|
||||
await pagination.openMaxItemsMenu();
|
||||
await pagination.menu.clickMenuItem('25');
|
||||
expect(await pagination.getMaxItems()).toContain('25');
|
||||
@@ -108,7 +108,7 @@ describe('Pagination on multiple pages on Trash', () => {
|
||||
await pagination.resetToDefaultPageSize();
|
||||
});
|
||||
|
||||
it('change the current page from menu - [C280125]', async () => {
|
||||
it('[C280125] change the current page from menu', async () => {
|
||||
await pagination.openCurrentPageMenu();
|
||||
await pagination.menu.clickNthItem(3);
|
||||
await dataTable.waitForHeader();
|
||||
@@ -121,7 +121,7 @@ describe('Pagination on multiple pages on Trash', () => {
|
||||
await pagination.resetToDefaultPageNumber();
|
||||
});
|
||||
|
||||
it('navigate to next and previous pages - [C280128]', async () => {
|
||||
it('[C280128] navigate to next and previous pages', async () => {
|
||||
await pagination.clickNext();
|
||||
await dataTable.waitForHeader();
|
||||
expect(await pagination.getRange()).toContain('26-50 of 101');
|
||||
@@ -139,12 +139,12 @@ describe('Pagination on multiple pages on Trash', () => {
|
||||
await pagination.resetToDefaultPageNumber();
|
||||
});
|
||||
|
||||
it('Previous button is disabled on first page - [C280126]', async () => {
|
||||
it('[C280126] Previous button is disabled on first page', async () => {
|
||||
expect(await pagination.getCurrentPage()).toContain('Page 1');
|
||||
expect(await pagination.isPreviousEnabled()).toBe(false, 'Previous button is enabled on first page');
|
||||
});
|
||||
|
||||
it('Next button is disabled on last page - [C280127]', async () => {
|
||||
it('[C280127] Next button is disabled on last page', async () => {
|
||||
await pagination.openCurrentPageMenu();
|
||||
await pagination.menu.clickNthItem(5);
|
||||
expect(await dataTable.getRowsCount()).toBe(1, 'Incorrect number of items on the last page');
|
||||
|
@@ -79,42 +79,42 @@ describe('Pagination on single page', () => {
|
||||
]);
|
||||
});
|
||||
|
||||
it('page selector not displayed on Favorites - [C280112]', async () => {
|
||||
it('[C280112] page selector not displayed on Favorites', async () => {
|
||||
await page.clickFavoritesAndWait();
|
||||
expect(await pagination.isPagesButtonPresent()).toBe(false, 'page selector displayed');
|
||||
});
|
||||
|
||||
it('page selector not displayed on My Libraries - [C280085]', async () => {
|
||||
it('[C280085] page selector not displayed on My Libraries', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
expect(await pagination.isPagesButtonPresent()).toBe(false, 'page selector displayed');
|
||||
});
|
||||
|
||||
it('page selector not displayed on Favorite Libraries - [C291874]', async () => {
|
||||
it('[C291874] page selector not displayed on Favorite Libraries', async () => {
|
||||
await page.goToFavoriteLibrariesAndWait();
|
||||
expect(await pagination.isPagesButtonPresent()).toBe(false, 'page selector displayed');
|
||||
});
|
||||
|
||||
it('page selector not displayed on Personal Files - [C280076]', async () => {
|
||||
it('[C280076] page selector not displayed on Personal Files', async () => {
|
||||
await page.clickPersonalFilesAndWait();
|
||||
expect(await pagination.isPagesButtonPresent()).toBe(false, 'page selector displayed');
|
||||
});
|
||||
|
||||
it('page selector not displayed on Recent Files - [C280103]', async () => {
|
||||
it('[C280103] page selector not displayed on Recent Files', async () => {
|
||||
await page.clickRecentFilesAndWait();
|
||||
expect(await pagination.isPagesButtonPresent()).toBe(false, 'page selector displayed');
|
||||
});
|
||||
|
||||
it('page selector not displayed on Shared Files - [C280094]', async () => {
|
||||
it('[C280094] page selector not displayed on Shared Files', async () => {
|
||||
await page.clickSharedFilesAndWait();
|
||||
expect(await pagination.isPagesButtonPresent()).toBe(false, 'page selector displayed');
|
||||
});
|
||||
|
||||
it('page selector not displayed on Trash - [C280121]', async () => {
|
||||
it('[C280121] page selector not displayed on Trash', async () => {
|
||||
await page.clickTrashAndWait();
|
||||
expect(await pagination.isPagesButtonPresent()).toBe(false, 'page selector displayed');
|
||||
});
|
||||
|
||||
it('page selector not displayed on Search results - [C290124]', async () => {
|
||||
it('[C290124] page selector not displayed on Search results', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.searchFor(file);
|
||||
await searchResultsPage.waitForResults();
|
||||
|
@@ -113,7 +113,7 @@ describe('Search filters', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Filters are displayed - [C279186]', async () => {
|
||||
it('[C279186] Filters are displayed', async () => {
|
||||
expect(await sizeFilter.isPanelDisplayed()).toBe(true, 'Size filter panel not displayed');
|
||||
expect(await createdDateFilter.isPanelDisplayed()).toBe(true, 'Created date filter panel not displayed');
|
||||
expect(await fileTypeFilter.isPanelDisplayed()).toBe(true, 'File type filter panel not displayed');
|
||||
@@ -129,7 +129,7 @@ describe('Search filters', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Expand / Collapse the Size filter panel - [C279197]', async () => {
|
||||
it('[C279197] Expand / Collapse the Size filter panel', async () => {
|
||||
expect(await sizeFilter.isPanelExpanded()).toBe(false, 'Size filter panel is expanded');
|
||||
|
||||
await sizeFilter.expandPanel();
|
||||
@@ -143,7 +143,7 @@ describe('Search filters', () => {
|
||||
expect(await sizeFilter.isPanelExpanded()).toBe(false, 'Size filter panel is expanded');
|
||||
});
|
||||
|
||||
it('Filter by Small - [C279199]', async () => {
|
||||
it('[C279199] Filter by Small', async () => {
|
||||
await sizeFilter.expandPanel();
|
||||
await sizeFilter.checkSizeSmall();
|
||||
|
||||
@@ -151,14 +151,14 @@ describe('Search filters', () => {
|
||||
expect(await dataTable.isItemPresent(filePdfUser2.name)).toBe(true, `${filePdfUser2.name} not in the list`);
|
||||
});
|
||||
|
||||
it('Filter by Huge - [C279202]', async () => {
|
||||
it('[C279202] Filter by Huge', async () => {
|
||||
await sizeFilter.expandPanel();
|
||||
await sizeFilter.checkSizeHuge();
|
||||
|
||||
expect(await dataTable.isEmpty()).toBe(true, 'list is not empty');
|
||||
});
|
||||
|
||||
it('Filter by multiple size categories - [C279203]', async () => {
|
||||
it('[C279203] Filter by multiple size categories', async () => {
|
||||
await sizeFilter.expandPanel();
|
||||
await sizeFilter.checkSizeSmall();
|
||||
await sizeFilter.checkSizeMedium();
|
||||
@@ -168,7 +168,7 @@ describe('Search filters', () => {
|
||||
expect(await dataTable.isItemPresent(filePdfUser2.name)).toBe(true, `${filePdfUser2.name} not in the list`);
|
||||
});
|
||||
|
||||
it('Clear the Size filter options - [C279198]', async () => {
|
||||
it('[C279198] Clear the Size filter options', async () => {
|
||||
await sizeFilter.expandPanel();
|
||||
await sizeFilter.checkSizeSmall();
|
||||
await sizeFilter.checkSizeMedium();
|
||||
@@ -189,7 +189,7 @@ describe('Search filters', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Expand / Collapse the Created date filter panel - [C279211]', async () => {
|
||||
it('[C279211] Expand / Collapse the Created date filter panel', async () => {
|
||||
expect(await createdDateFilter.isPanelExpanded()).toBe(false, 'Created date filter panel is expanded');
|
||||
|
||||
await createdDateFilter.expandPanel();
|
||||
@@ -202,7 +202,7 @@ describe('Search filters', () => {
|
||||
expect(await createdDateFilter.isPanelExpanded()).toBe(false, 'Created date filter panel is expanded');
|
||||
});
|
||||
|
||||
it('Results are filtered by Created date - [C279217]', async () => {
|
||||
it('[C279217] Results are filtered by Created date', async () => {
|
||||
await createdDateFilter.expandPanel();
|
||||
await createdDateFilter.enterFromDate(yesterday);
|
||||
await createdDateFilter.enterToDate(yesterday);
|
||||
@@ -225,7 +225,7 @@ describe('Search filters', () => {
|
||||
expect(await dataTable.isItemPresent(fileJpgUser1.name)).toBe(true, 'JPG file not displayed');
|
||||
});
|
||||
|
||||
it('Clear the Created date filter options - [C279216]', async () => {
|
||||
it('[C279216] Clear the Created date filter options', async () => {
|
||||
await createdDateFilter.expandPanel();
|
||||
await createdDateFilter.enterFromDate(yesterday);
|
||||
await createdDateFilter.enterToDate(yesterday);
|
||||
@@ -242,7 +242,7 @@ describe('Search filters', () => {
|
||||
expect(await createdDateFilter.getToValue()).toEqual('', 'To field not empty');
|
||||
});
|
||||
|
||||
it('From and To values are required - [C279212]', async () => {
|
||||
it('[C279212] From and To values are required', async () => {
|
||||
await createdDateFilter.expandPanel();
|
||||
await createdDateFilter.enterFromDate('');
|
||||
await createdDateFilter.enterToDate('');
|
||||
@@ -253,7 +253,7 @@ describe('Search filters', () => {
|
||||
expect(await createdDateFilter.getToError()).toEqual('Required value');
|
||||
});
|
||||
|
||||
it('Error message is displayed when entering an incorrect date format - [C279213]', async () => {
|
||||
it('[C279213] Error message is displayed when entering an incorrect date format', async () => {
|
||||
await createdDateFilter.expandPanel();
|
||||
await createdDateFilter.enterFromDate('03.31.2019');
|
||||
await createdDateFilter.enterToDate('invalid text');
|
||||
@@ -264,7 +264,7 @@ describe('Search filters', () => {
|
||||
expect(await createdDateFilter.getToError()).toEqual(`Invalid date. The date must be in the format 'DD-MMM-YY'`);
|
||||
});
|
||||
|
||||
it('Error message is displayed when entering a date from the future - [C279214]', async () => {
|
||||
it('[C279214] Error message is displayed when entering a date from the future', async () => {
|
||||
await createdDateFilter.expandPanel();
|
||||
await createdDateFilter.enterFromDate(future);
|
||||
await createdDateFilter.enterToDate(future);
|
||||
@@ -275,7 +275,7 @@ describe('Search filters', () => {
|
||||
expect(await createdDateFilter.getToError()).toEqual('The date is beyond the maximum date.');
|
||||
});
|
||||
|
||||
it('Error message is displayed when From value is bigger than To value - [C279215]', async () => {
|
||||
it('[C279215] Error message is displayed when From value is bigger than To value', async () => {
|
||||
await createdDateFilter.expandPanel();
|
||||
await createdDateFilter.enterFromDate(today);
|
||||
await createdDateFilter.enterToDate(yesterday);
|
||||
@@ -291,7 +291,7 @@ describe('Search filters', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Expand / Collapse the File type filter panel - [C279191]', async () => {
|
||||
it('[C279191] Expand / Collapse the File type filter panel', async () => {
|
||||
expect(await fileTypeFilter.isPanelExpanded()).toBe(true, 'File type filter panel not expanded');
|
||||
expect(await fileTypeFilter.getFiltersValues()).toEqual(expectedFileTypes, 'Incorrect File type filters facets');
|
||||
expect(await fileTypeFilter.isFilterCategoryInputDisplayed()).toBe(true, 'File type filter categories not displayed');
|
||||
@@ -300,7 +300,7 @@ describe('Search filters', () => {
|
||||
expect(await fileTypeFilter.isPanelExpanded()).toBe(false, 'File type filter panel is expanded');
|
||||
});
|
||||
|
||||
it('Results are filtered by File type - [C279192]', async () => {
|
||||
it('[C279192] Results are filtered by File type', async () => {
|
||||
await fileTypeFilter.expandPanel();
|
||||
await fileTypeFilter.checkCategory('Adobe PDF Document');
|
||||
|
||||
@@ -316,7 +316,7 @@ describe('Search filters', () => {
|
||||
expect(await page.getResultsChipsValues()).toEqual(['Adobe PDF Document', 'JPEG Image']);
|
||||
});
|
||||
|
||||
it('Clear the File type filter options - [C279193]', async () => {
|
||||
it('[C279193] Clear the File type filter options', async () => {
|
||||
await fileTypeFilter.expandPanel();
|
||||
await fileTypeFilter.checkCategory('Adobe PDF Document');
|
||||
|
||||
@@ -331,7 +331,7 @@ describe('Search filters', () => {
|
||||
expect(await fileTypeFilter.getFiltersCheckedValues()).toEqual([], 'File types selection not cleared');
|
||||
});
|
||||
|
||||
it('Search for a specific file type - [C279195]', async () => {
|
||||
it('[C279195] Search for a specific file type', async () => {
|
||||
await fileTypeFilter.expandPanel();
|
||||
expect(await fileTypeFilter.getFiltersValues()).toEqual(expectedFileTypes, 'Incorrect File type filters facets');
|
||||
await fileTypeFilter.filterCategoriesBy('PDF');
|
||||
@@ -345,7 +345,7 @@ describe('Search filters', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Expand / Collapse the Creator filter panel - [C279205]', async () => {
|
||||
it('[C279205] Expand / Collapse the Creator filter panel', async () => {
|
||||
expect(await creatorFilter.isPanelExpanded()).toBe(true, 'Creator filter panel not expanded');
|
||||
|
||||
expect(await creatorFilter.getFiltersValues()).toEqual(expectedCreators, 'Incorrect Creator filters facets');
|
||||
@@ -355,7 +355,7 @@ describe('Search filters', () => {
|
||||
expect(await creatorFilter.isPanelExpanded()).toBe(false, 'Creator filter panel is expanded');
|
||||
});
|
||||
|
||||
it('Results are filtered by Creator - [C279206]', async () => {
|
||||
it('[C279206] Results are filtered by Creator', async () => {
|
||||
await creatorFilter.expandPanel();
|
||||
await creatorFilter.checkCategory(user1);
|
||||
|
||||
@@ -371,7 +371,7 @@ describe('Search filters', () => {
|
||||
expect(await page.getResultsChipsValues()).toEqual([`${user1} ${user1}`, `${user2} ${user2}`]);
|
||||
});
|
||||
|
||||
it('Clear the Creator filter options - [C279207]', async () => {
|
||||
it('[C279207] Clear the Creator filter options', async () => {
|
||||
await creatorFilter.expandPanel();
|
||||
await creatorFilter.checkCategory(user1);
|
||||
|
||||
@@ -386,7 +386,7 @@ describe('Search filters', () => {
|
||||
expect(await creatorFilter.getFiltersCheckedValues()).toEqual([], 'Creator selection not cleared');
|
||||
});
|
||||
|
||||
it('Search for a specific creator - [C279208]', async () => {
|
||||
it('[C279208] Search for a specific creator', async () => {
|
||||
await creatorFilter.expandPanel();
|
||||
expect(await creatorFilter.getFiltersValues()).toEqual(expectedCreators, 'Incorrect Creator filters facets');
|
||||
await creatorFilter.filterCategoriesBy(user1);
|
||||
@@ -400,7 +400,7 @@ describe('Search filters', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Expand / Collapse the Modifier filter panel - [C279224]', async () => {
|
||||
it('[C279224] Expand / Collapse the Modifier filter panel', async () => {
|
||||
expect(await modifierFilter.isPanelExpanded()).toBe(true, 'Modifier filter panel not expanded');
|
||||
|
||||
expect(await modifierFilter.getFiltersValues()).toEqual(expectedModifiers, 'Incorrect Modifier filters facets');
|
||||
@@ -410,7 +410,7 @@ describe('Search filters', () => {
|
||||
expect(await modifierFilter.isPanelExpanded()).toBe(false, 'Modifier filter panel is expanded');
|
||||
});
|
||||
|
||||
it('Results are filtered by Modifier - [C279225]', async () => {
|
||||
it('[C279225] Results are filtered by Modifier', async () => {
|
||||
await modifierFilter.expandPanel();
|
||||
await modifierFilter.checkCategory(user1);
|
||||
|
||||
@@ -426,7 +426,7 @@ describe('Search filters', () => {
|
||||
expect(await page.getResultsChipsValues()).toEqual([`${user1} ${user1}`, `${user2} ${user2}`]);
|
||||
});
|
||||
|
||||
it('Clear the Modifier filter options - [C279226]', async () => {
|
||||
it('[C279226] Clear the Modifier filter options', async () => {
|
||||
await modifierFilter.expandPanel();
|
||||
await modifierFilter.checkCategory(user1);
|
||||
|
||||
@@ -441,7 +441,7 @@ describe('Search filters', () => {
|
||||
expect(await modifierFilter.getFiltersCheckedValues()).toEqual([], 'Modifier selection not cleared');
|
||||
});
|
||||
|
||||
it('Search for a specific modifier - [C279227]', async () => {
|
||||
it('[C279227] Search for a specific modifier', async () => {
|
||||
await modifierFilter.expandPanel();
|
||||
expect(await modifierFilter.getFiltersValues()).toEqual(expectedModifiers, 'Incorrect Modifier filters facets');
|
||||
await modifierFilter.filterCategoriesBy(user1);
|
||||
@@ -455,7 +455,7 @@ describe('Search filters', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Expand / Collapse the Location filter panel - [C279230]', async () => {
|
||||
it('[C279230] Expand / Collapse the Location filter panel', async () => {
|
||||
expect(await locationFilter.isPanelExpanded()).toBe(true, 'Location filter panel not expanded');
|
||||
|
||||
expect(await locationFilter.getFiltersValues()).toEqual(expectedLocations, 'Incorrect Location filters facets');
|
||||
@@ -465,7 +465,7 @@ describe('Search filters', () => {
|
||||
expect(await locationFilter.isPanelExpanded()).toBe(false, 'Location filter panel is expanded');
|
||||
});
|
||||
|
||||
it('Results are filtered by Location - [C279231]', async () => {
|
||||
it('[C279231] Results are filtered by Location', async () => {
|
||||
await locationFilter.expandPanel();
|
||||
await locationFilter.checkCategory(site);
|
||||
|
||||
@@ -481,7 +481,7 @@ describe('Search filters', () => {
|
||||
expect(await page.getResultsChipsValues()).toEqual([site, '_REPOSITORY_']);
|
||||
});
|
||||
|
||||
it('Clear the Location filter options - [C279232]', async () => {
|
||||
it('[C279232] Clear the Location filter options', async () => {
|
||||
await locationFilter.expandPanel();
|
||||
await locationFilter.checkCategory(site);
|
||||
|
||||
@@ -496,7 +496,7 @@ describe('Search filters', () => {
|
||||
expect(await locationFilter.getFiltersCheckedValues()).toEqual([], 'Location selection not cleared');
|
||||
});
|
||||
|
||||
it('Search for a specific location - [C279233]', async () => {
|
||||
it('[C279233] Search for a specific location', async () => {
|
||||
await locationFilter.expandPanel();
|
||||
expect(await locationFilter.getFiltersValues()).toEqual(expectedLocations, 'Incorrect Location filters facets');
|
||||
await locationFilter.filterCategoriesBy(site);
|
||||
@@ -512,7 +512,7 @@ describe('Search filters', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Expand / Collapse the Modified date filter panel - [C279219]', async () => {
|
||||
it('[C279219] Expand / Collapse the Modified date filter panel', async () => {
|
||||
expect(await modifiedDateFilter.isPanelExpanded()).toBe(true, 'Modified Date filter panel not expanded');
|
||||
|
||||
expect(await modifiedDateFilter.getFiltersValues()).toEqual(expectedDateFilters, 'Incorrect Modified Date filters facets');
|
||||
@@ -522,7 +522,7 @@ describe('Search filters', () => {
|
||||
expect(await modifiedDateFilter.isPanelExpanded()).toBe(false, 'Modified Date filter panel is expanded');
|
||||
});
|
||||
|
||||
it('Results are filtered by Modified date - [C279221]', async () => {
|
||||
it('[C279221] Results are filtered by Modified date', async () => {
|
||||
await modifiedDateFilter.expandPanel();
|
||||
await modifiedDateFilter.checkCategory('Today');
|
||||
|
||||
@@ -538,7 +538,7 @@ describe('Search filters', () => {
|
||||
expect(await page.getResultsChipsValues()).toEqual(['Today', 'This week']);
|
||||
});
|
||||
|
||||
it('Clear the Modified date filter options - [C279220]', async () => {
|
||||
it('[C279220] Clear the Modified date filter options', async () => {
|
||||
await modifiedDateFilter.expandPanel();
|
||||
await modifiedDateFilter.checkCategory('Today');
|
||||
await modifiedDateFilter.checkCategory('This week');
|
||||
@@ -552,7 +552,7 @@ describe('Search filters', () => {
|
||||
expect(await modifiedDateFilter.getFiltersCheckedValues()).toEqual([], 'Modified date selection not cleared');
|
||||
});
|
||||
|
||||
it('Search for a specific modified date option - [C325006]', async () => {
|
||||
it('[C325006] Search for a specific modified date option', async () => {
|
||||
await modifiedDateFilter.expandPanel();
|
||||
expect(await modifiedDateFilter.getFiltersValues()).toEqual(expectedDateFilters, 'Incorrect Modified date filters facets');
|
||||
await modifiedDateFilter.filterCategoriesBy('This');
|
||||
@@ -568,7 +568,7 @@ describe('Search filters', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Multiple filters can be applied - [C280051]', async () => {
|
||||
it('[C280051] Multiple filters can be applied', async () => {
|
||||
await sizeFilter.expandPanel();
|
||||
await sizeFilter.checkSizeSmall();
|
||||
|
||||
@@ -590,7 +590,7 @@ describe('Search filters', () => {
|
||||
expect(await page.getResultsChipsValues()).toEqual([]);
|
||||
});
|
||||
|
||||
it('Total results is updated correctly - [C280052]', async () => {
|
||||
it('[C280052] Total results is updated correctly', async () => {
|
||||
await fileTypeFilter.expandPanel();
|
||||
await fileTypeFilter.checkCategory('JPEG Image');
|
||||
await creatorFilter.checkCategory(user1);
|
||||
@@ -603,7 +603,7 @@ describe('Search filters', () => {
|
||||
expect(await page.getResultsFoundText()).toEqual('2 results found');
|
||||
});
|
||||
|
||||
it('Pagination is correct when search results are filtered - [C279188]', async () => {
|
||||
it('[C279188] Pagination is correct when search results are filtered', async () => {
|
||||
await fileTypeFilter.expandPanel();
|
||||
await fileTypeFilter.checkCategory('JPEG Image');
|
||||
await creatorFilter.checkCategory(user1);
|
||||
@@ -616,7 +616,7 @@ describe('Search filters', () => {
|
||||
expect(await page.pagination.getRange()).toEqual('Showing 1-2 of 2');
|
||||
});
|
||||
|
||||
it('The filter facets display is updated when making a new query - [C308042]', async () => {
|
||||
it('[C308042] The filter facets display is updated when making a new query', async () => {
|
||||
expect(await fileTypeFilter.getFiltersValues()).toEqual(expectedFileTypes);
|
||||
expect(await creatorFilter.getFiltersValues()).toEqual(expectedCreators);
|
||||
expect(await modifierFilter.getFiltersValues()).toEqual(expectedModifiers);
|
||||
|
@@ -42,11 +42,11 @@ describe('Search input', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Search input is displayed in the app header - [C289847]', async () => {
|
||||
it('[C289847] Search input is displayed in the app header', async () => {
|
||||
expect(await searchInput.isSearchContainerDisplayed()).toBe(true, 'search controls not displayed');
|
||||
});
|
||||
|
||||
it('Search options are displayed when clicking in the search input - [C289848]', async () => {
|
||||
it('[C289848] Search options are displayed when clicking in the search input', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
expect(await searchInput.isOptionsAreaDisplayed()).toBe(true, 'Search options not displayed');
|
||||
expect(await searchInput.isFilesOptionEnabled()).toBe(true, 'Files option not enabled');
|
||||
@@ -57,7 +57,7 @@ describe('Search input', () => {
|
||||
expect(await searchInput.isLibrariesOptionChecked()).toBe(false, 'Libraries option is checked');
|
||||
});
|
||||
|
||||
it('Search options are correctly enabled / disabled - [C289849]', async () => {
|
||||
it('[C289849] Search options are correctly enabled / disabled', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
|
||||
await searchInput.clickFilesOption();
|
||||
|
@@ -88,7 +88,7 @@ describe('Search results - files and folders', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Results page title - [C307002]', async () => {
|
||||
it('[C307002] Results page title', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor('test-');
|
||||
@@ -97,7 +97,7 @@ describe('Search results - files and folders', () => {
|
||||
expect(await page.breadcrumb.getCurrentItemName()).toEqual('Search Results');
|
||||
});
|
||||
|
||||
it('File information - [C279183]', async () => {
|
||||
it('[C279183] File information', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor('test-');
|
||||
@@ -117,7 +117,7 @@ describe('Search results - files and folders', () => {
|
||||
expect(await dataTable.getSearchResultLocation(file)).toMatch(/Location:\s+Personal Files/);
|
||||
});
|
||||
|
||||
it('Folder information - [C306867]', async () => {
|
||||
it('[C306867] Folder information', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor('test-');
|
||||
@@ -136,7 +136,7 @@ describe('Search results - files and folders', () => {
|
||||
expect(await dataTable.getSearchResultLocation(folder)).toMatch(/Location:\s+Personal Files/);
|
||||
});
|
||||
|
||||
it('Search file with special characters - [C290029]', async () => {
|
||||
it('[C290029] Search file with special characters', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(fileRussian);
|
||||
@@ -145,7 +145,7 @@ describe('Search results - files and folders', () => {
|
||||
expect(await dataTable.isItemPresent(fileRussian)).toBe(true, `${fileRussian} is not displayed`);
|
||||
});
|
||||
|
||||
it('Location column redirect - file in user Home - [C279177]', async () => {
|
||||
it('[C279177] Location column redirect - file in user Home', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(file);
|
||||
|
@@ -73,7 +73,7 @@ describe('Search results general', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Only files are returned when Files option is the only one checked - [C290005]', async () => {
|
||||
it('[C290005] Only files are returned when Files option is the only one checked', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkOnlyFiles();
|
||||
await searchInput.searchFor('test');
|
||||
@@ -84,7 +84,7 @@ describe('Search results general', () => {
|
||||
expect(await dataTable.isItemPresent(site)).toBe(false, `${site} is displayed`);
|
||||
});
|
||||
|
||||
it('Only folders are returned when Folders option is the only one checked - [C290006]', async () => {
|
||||
it('[C290006] Only folders are returned when Folders option is the only one checked', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkOnlyFolders();
|
||||
await searchInput.searchFor('test');
|
||||
@@ -95,7 +95,7 @@ describe('Search results general', () => {
|
||||
expect(await dataTable.isItemPresent(site)).toBe(false, `${site} is displayed`);
|
||||
});
|
||||
|
||||
it('Files and folders are returned when both Files and Folders options are checked - [C290007]', async () => {
|
||||
it('[C290007] Files and folders are returned when both Files and Folders options are checked', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor('test');
|
||||
@@ -106,7 +106,7 @@ describe('Search results general', () => {
|
||||
expect(await dataTable.isItemPresent(site)).toBe(false, `${site} is displayed`);
|
||||
});
|
||||
|
||||
it('Only libraries are returned when Libraries option is checked - [C290008]', async () => {
|
||||
it('[C290008] Only libraries are returned when Libraries option is checked', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor('test');
|
||||
@@ -117,7 +117,7 @@ describe('Search results general', () => {
|
||||
expect(await dataTable.isItemPresent(site)).toBe(true, `${site} not displayed`);
|
||||
});
|
||||
|
||||
it('Results are updated automatically when changing the search term - [C279162]', async () => {
|
||||
it('[C279162] Results are updated automatically when changing the search term', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.searchFor(file);
|
||||
await page.waitForResults();
|
||||
@@ -132,7 +132,7 @@ describe('Search results general', () => {
|
||||
expect(await dataTable.isItemPresent(folder)).toBe(true, `${folder} is not displayed`);
|
||||
});
|
||||
|
||||
it('Results are returned when accessing an URL containing a search query - [C279178]', async () => {
|
||||
it('[C279178] Results are returned when accessing an URL containing a search query', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor(site);
|
||||
|
@@ -121,7 +121,7 @@ describe('Search results - libraries', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Search library - full name match - [C290012]', async () => {
|
||||
it('[C290012] Search library - full name match', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor(site1.name);
|
||||
@@ -133,7 +133,7 @@ describe('Search results - libraries', () => {
|
||||
expect(await dataTable.isItemPresent(site4.name)).toBe(false, `${site4.name} displayed`);
|
||||
});
|
||||
|
||||
it('Search library - partial name match - [C290013]', async () => {
|
||||
it('[C290013] Search library - partial name match', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor('lib');
|
||||
@@ -145,7 +145,7 @@ describe('Search results - libraries', () => {
|
||||
expect(await dataTable.isItemPresent(site4.name)).toBe(false, `${site4.name} displayed`);
|
||||
});
|
||||
|
||||
it('Search library - description match - [C290014]', async () => {
|
||||
it('[C290014] Search library - description match', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor(site4.description);
|
||||
@@ -157,7 +157,7 @@ describe('Search results - libraries', () => {
|
||||
expect(await dataTable.isItemPresent(site4.name)).toBe(true, `${site4.name} not displayed`);
|
||||
});
|
||||
|
||||
it('Results page title - [C290015]', async () => {
|
||||
it('[C290015] Results page title', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor('lib');
|
||||
@@ -166,7 +166,7 @@ describe('Search results - libraries', () => {
|
||||
expect(await page.breadcrumb.getCurrentItemName()).toEqual('Libraries found...');
|
||||
});
|
||||
|
||||
it('Results page columns - [C290016]', async () => {
|
||||
it('[C290016] Results page columns', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor(site1.name);
|
||||
@@ -178,7 +178,7 @@ describe('Search results - libraries', () => {
|
||||
expect(actualColumns).toEqual(expectedColumns);
|
||||
});
|
||||
|
||||
it('Library visibility is correctly displayed - [C290017]', async () => {
|
||||
it('[C290017] Library visibility is correctly displayed', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor('user-site');
|
||||
@@ -197,7 +197,7 @@ describe('Search results - libraries', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('User role is correctly displayed - [C290018]', async () => {
|
||||
it('[C290018] User role is correctly displayed', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor('admin-site');
|
||||
@@ -217,7 +217,7 @@ describe('Search results - libraries', () => {
|
||||
}
|
||||
});
|
||||
|
||||
it('Private sites are not displayed when user is not a member - [C290019]', async () => {
|
||||
it('[C290019] Private sites are not displayed when user is not a member', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor('admin-site');
|
||||
@@ -226,7 +226,7 @@ describe('Search results - libraries', () => {
|
||||
expect(await dataTable.isItemPresent(adminPrivate)).toBe(false, `${adminPrivate} is displayed`);
|
||||
});
|
||||
|
||||
it('Search libraries with special characters - [C290028]', async () => {
|
||||
it('[C290028] Search libraries with special characters', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkLibraries();
|
||||
await searchInput.searchFor(siteRussian.name);
|
||||
|
@@ -90,7 +90,7 @@ describe('Search sorting', () => {
|
||||
await apis.user1.nodes.deleteNodeById(parentId);
|
||||
});
|
||||
|
||||
it('Sorting options are displayed - [C277722]', async () => {
|
||||
it('[C277722] Sorting options are displayed', async () => {
|
||||
expect(await page.sortingPicker.isSortOrderButtonDisplayed()).toBe(true, 'Sort order button not displayed');
|
||||
expect(await page.sortingPicker.isSortByOptionDisplayed()).toBe(true, 'Sort options not displayed');
|
||||
expect(await page.sortingPicker.getSortOrder()).toBe('DESC', 'Incorrect default sort order');
|
||||
@@ -102,7 +102,7 @@ describe('Search sorting', () => {
|
||||
expect(await page.sortingPicker.getSortByOptionsList()).toEqual(expectedOptions, 'Incorrect sort options list');
|
||||
});
|
||||
|
||||
it('Sort by Name - [C277728]', async () => {
|
||||
it('[C277728] Sort by Name', async () => {
|
||||
await page.sortingPicker.sortByName();
|
||||
await page.sortingPicker.setSortOrderASC();
|
||||
|
||||
@@ -116,7 +116,7 @@ describe('Search sorting', () => {
|
||||
expect(await dataTable.getNthSearchResultsRow(2).getText()).toContain(fileJpg.name);
|
||||
});
|
||||
|
||||
it('Sort by Type - [C277740]', async () => {
|
||||
it('[C277740] Sort by Type', async () => {
|
||||
await page.sortingPicker.sortByType();
|
||||
await page.sortingPicker.setSortOrderASC();
|
||||
|
||||
@@ -130,7 +130,7 @@ describe('Search sorting', () => {
|
||||
expect(await dataTable.getNthSearchResultsRow(2).getText()).toContain(filePdf.name);
|
||||
});
|
||||
|
||||
it('Sort by Size - [C277738]', async () => {
|
||||
it('[C277738] Sort by Size', async () => {
|
||||
await page.sortingPicker.sortBySize();
|
||||
await page.sortingPicker.setSortOrderASC();
|
||||
|
||||
@@ -144,7 +144,7 @@ describe('Search sorting', () => {
|
||||
expect(await dataTable.getNthSearchResultsRow(2).getText()).toContain(filePdf.name);
|
||||
});
|
||||
|
||||
it('Sort by Created date - [C277734]', async () => {
|
||||
it('[C277734] Sort by Created date', async () => {
|
||||
await page.sortingPicker.sortByCreatedDate();
|
||||
await page.sortingPicker.setSortOrderASC();
|
||||
|
||||
@@ -158,7 +158,7 @@ describe('Search sorting', () => {
|
||||
expect(await dataTable.getNthSearchResultsRow(2).getText()).toContain(fileJpg.name);
|
||||
});
|
||||
|
||||
it('Sort by Modified date - [C277736]', async () => {
|
||||
it('[C277736] Sort by Modified date', async () => {
|
||||
await page.sortingPicker.sortByModifiedDate();
|
||||
await page.sortingPicker.setSortOrderASC();
|
||||
|
||||
@@ -172,7 +172,7 @@ describe('Search sorting', () => {
|
||||
expect(await dataTable.getNthSearchResultsRow(2).getText()).toContain(fileJpg.name);
|
||||
});
|
||||
|
||||
it('Sort by Relevance - [C277727]', async () => {
|
||||
it('[C277727] Sort by Relevance', async () => {
|
||||
await page.sortingPicker.sortByRelevance();
|
||||
await page.sortingPicker.setSortOrderASC();
|
||||
|
||||
@@ -186,7 +186,7 @@ describe('Search sorting', () => {
|
||||
expect(await dataTable.getNthSearchResultsRow(2).getText()).toContain(fileJpg.name);
|
||||
});
|
||||
|
||||
it('Sort by Modifier - [C277732]', async () => {
|
||||
it('[C277732] Sort by Modifier', async () => {
|
||||
await page.sortingPicker.sortByModifier();
|
||||
await page.sortingPicker.setSortOrderASC();
|
||||
|
||||
|
@@ -119,7 +119,7 @@ describe('Viewer actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Download action - [C268129]', async () => {
|
||||
it('[C268129] Download action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxPersonalFiles);
|
||||
await viewer.waitForViewerToOpen();
|
||||
|
||||
@@ -128,7 +128,7 @@ describe('Viewer actions', () => {
|
||||
expect(await Utils.fileExistsOnOS(docxPersonalFiles)).toBe(true, 'File not found in download location');
|
||||
});
|
||||
|
||||
it('Copy action - [C268130]', async () => {
|
||||
it('[C268130] Copy action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxPersonalFiles);
|
||||
await viewer.waitForViewerToOpen();
|
||||
|
||||
@@ -147,7 +147,7 @@ describe('Viewer actions', () => {
|
||||
await apis.user.nodes.deleteNodeChildren(destinationId);
|
||||
});
|
||||
|
||||
it('Move action - [C268131]', async () => {
|
||||
it('[C268131] Move action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(xlsxPersonalFiles);
|
||||
await viewer.waitForViewerToOpen();
|
||||
|
||||
@@ -164,7 +164,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(xlsxPersonalFiles)).toBe(true, 'Item is not present in destination');
|
||||
});
|
||||
|
||||
it('Favorite action - [C268132]', async () => {
|
||||
it('[C268132] Favorite action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxPersonalFiles);
|
||||
await viewer.waitForViewerToOpen();
|
||||
|
||||
@@ -175,7 +175,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(docxPersonalFiles)).toBe(true, 'Item is not present in Favorites list');
|
||||
});
|
||||
|
||||
it('Delete action - [C268133]', async () => {
|
||||
it('[C268133] Delete action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(pdfPersonalFiles);
|
||||
await viewer.waitForViewerToOpen();
|
||||
|
||||
@@ -187,7 +187,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(pdfPersonalFiles)).toBe(true, 'Item is not present in Trash');
|
||||
});
|
||||
|
||||
it('Edit Offline action - [C297584]', async () => {
|
||||
it('[C297584] Edit Offline action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileForEditOffline);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsEditOffline();
|
||||
@@ -197,7 +197,7 @@ describe('Viewer actions', () => {
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not open');
|
||||
});
|
||||
|
||||
it('Cancel Editing action - [C297585]', async () => {
|
||||
it('[C297585] Cancel Editing action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileForCancelEditing);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsCancelEditing();
|
||||
@@ -206,7 +206,7 @@ describe('Viewer actions', () => {
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not open');
|
||||
});
|
||||
|
||||
it('Upload new version action - [C297586]', async () => {
|
||||
it('[C297586] Upload new version action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(filePersonalFiles);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
@@ -224,7 +224,7 @@ describe('Viewer actions', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(filePersonalFilesId)).toEqual('2.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('Upload new version action when node is locked - [MNT-21058]', async () => {
|
||||
it('[MNT-21058] Upload new version action when node is locked', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileForUploadNewVersion2);
|
||||
await viewer.waitForViewerToOpen();
|
||||
|
||||
@@ -243,7 +243,7 @@ describe('Viewer actions', () => {
|
||||
expect(await toolbar.menu.isEditOfflinePresent()).toBe(true, `'Edit Offline' should be shown`);
|
||||
});
|
||||
|
||||
it('Full screen action - [C279282]', async () => {
|
||||
it('[C279282] Full screen action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxPersonalFiles);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await Utils.getBrowserLog();
|
||||
@@ -255,7 +255,7 @@ describe('Viewer actions', () => {
|
||||
expect(browserLogAfter.length).toEqual(0);
|
||||
});
|
||||
|
||||
it('Share action - [C286313]', async () => {
|
||||
it('[C286313] Share action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxPersonalFiles);
|
||||
await viewer.waitForViewerToOpen();
|
||||
|
||||
@@ -264,7 +264,7 @@ describe('Viewer actions', () => {
|
||||
await shareDialog.clickClose();
|
||||
});
|
||||
|
||||
it('Manage Versions action - [C286316]', async () => {
|
||||
it('[C286316] Manage Versions action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxPersonalFiles);
|
||||
await viewer.waitForViewerToOpen();
|
||||
|
||||
@@ -274,7 +274,7 @@ describe('Viewer actions', () => {
|
||||
});
|
||||
|
||||
// TODO: disabled until ACA-2176 is done
|
||||
xit('Pressing ESC in the viewer closes only the action dialog - [C286314]', async () => {
|
||||
xit('[C286314] Pressing ESC in the viewer closes only the action dialog', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxPersonalFiles);
|
||||
await viewer.waitForViewerToOpen();
|
||||
|
||||
@@ -341,7 +341,7 @@ describe('Viewer actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Download action - [C286369]', async () => {
|
||||
it('[C286369] Download action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxLibraries);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -349,7 +349,7 @@ describe('Viewer actions', () => {
|
||||
expect(await Utils.fileExistsOnOS(docxLibraries)).toBe(true, 'File not found in download location');
|
||||
});
|
||||
|
||||
it('Copy action - [C286370]', async (done) => {
|
||||
it('[C286370] Copy action', async (done) => {
|
||||
await dataTable.doubleClickOnRowByName(docxLibraries);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -369,7 +369,7 @@ describe('Viewer actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Move action - [C286371]', async () => {
|
||||
it('[C286371] Move action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(xlsxLibraries);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -386,7 +386,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(xlsxLibraries)).toBe(true, 'Item is not present in destination');
|
||||
});
|
||||
|
||||
it('Favorite action - [C286372]', async () => {
|
||||
it('[C286372] Favorite action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxLibraries);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -397,7 +397,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(docxLibraries)).toBe(true, `${docxLibraries} is not present in Favorites list`);
|
||||
});
|
||||
|
||||
it('Delete action - [C286373]', async () => {
|
||||
it('[C286373] Delete action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(pdfLibraries);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -409,7 +409,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(pdfLibraries)).toBe(true, 'Item is not present in Trash');
|
||||
});
|
||||
|
||||
it('Edit Offline action - [C297589]', async () => {
|
||||
it('[C297589] Edit Offline action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileForEditOffline);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsEditOffline();
|
||||
@@ -419,7 +419,7 @@ describe('Viewer actions', () => {
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not open');
|
||||
});
|
||||
|
||||
it('Cancel Editing action - [C297590]', async () => {
|
||||
it('[C297590] Cancel Editing action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileForCancelEditing);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsCancelEditing();
|
||||
@@ -428,7 +428,7 @@ describe('Viewer actions', () => {
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not open');
|
||||
});
|
||||
|
||||
it('Upload new version action - [C297591]', async () => {
|
||||
it('[C297591] Upload new version action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileLibraries);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
@@ -446,7 +446,7 @@ describe('Viewer actions', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(fileLibrariesId)).toEqual('2.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('Share action - [C286374]', async () => {
|
||||
it('[C286374] Share action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxLibraries);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -455,7 +455,7 @@ describe('Viewer actions', () => {
|
||||
await shareDialog.clickClose();
|
||||
});
|
||||
|
||||
it('Manage Versions action - [C286375]', async () => {
|
||||
it('[C286375] Manage Versions action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxLibraries);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -522,7 +522,7 @@ describe('Viewer actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Download action - [C286383]', async () => {
|
||||
it('[C286383] Download action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxRecentFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -530,7 +530,7 @@ describe('Viewer actions', () => {
|
||||
expect(await Utils.fileExistsOnOS(docxRecentFiles)).toBe(true, 'File not found in download location');
|
||||
});
|
||||
|
||||
it('Copy action - [C286384]', async (done) => {
|
||||
it('[C286384] Copy action', async (done) => {
|
||||
await dataTable.doubleClickOnRowByName(docxRecentFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -550,7 +550,7 @@ describe('Viewer actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Move action - [C286385]', async () => {
|
||||
it('[C286385] Move action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(xlsxRecentFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -568,7 +568,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(xlsxRecentFiles)).toBe(true, 'Item is not present in destination');
|
||||
});
|
||||
|
||||
it('Favorite action - [C286386]', async () => {
|
||||
it('[C286386] Favorite action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxRecentFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -579,7 +579,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(docxRecentFiles)).toBe(true, 'Item is not present in Favorites list');
|
||||
});
|
||||
|
||||
it('Delete action - [C286387]', async () => {
|
||||
it('[C286387] Delete action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(pdfRecentFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -591,7 +591,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(pdfRecentFiles)).toBe(true, 'Item is not present in Trash');
|
||||
});
|
||||
|
||||
it('Edit Offline action - [C297594]', async () => {
|
||||
it('[C297594] Edit Offline action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileForEditOffline);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsEditOffline();
|
||||
@@ -601,7 +601,7 @@ describe('Viewer actions', () => {
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not open');
|
||||
});
|
||||
|
||||
it('Cancel Editing action - [C297595]', async () => {
|
||||
it('[C297595] Cancel Editing action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileForCancelEditing);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsCancelEditing();
|
||||
@@ -610,7 +610,7 @@ describe('Viewer actions', () => {
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not open');
|
||||
});
|
||||
|
||||
it('Upload new version action - [C297596]', async () => {
|
||||
it('[C297596] Upload new version action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileRecent);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
@@ -628,7 +628,7 @@ describe('Viewer actions', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(fileRecentId)).toEqual('2.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('Share action - [C286388]', async () => {
|
||||
it('[C286388] Share action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxRecentFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -637,7 +637,7 @@ describe('Viewer actions', () => {
|
||||
await shareDialog.clickClose();
|
||||
});
|
||||
|
||||
it('Manage Versions action - [C286389]', async () => {
|
||||
it('[C286389] Manage Versions action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxRecentFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -702,7 +702,7 @@ describe('Viewer actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Download action - [C286376]', async () => {
|
||||
it('[C286376] Download action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxSharedFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -710,7 +710,7 @@ describe('Viewer actions', () => {
|
||||
expect(await Utils.fileExistsOnOS(docxSharedFiles)).toBe(true, 'File not found in download location');
|
||||
});
|
||||
|
||||
it('Copy action - [C286377]', async () => {
|
||||
it('[C286377] Copy action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxSharedFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -729,7 +729,7 @@ describe('Viewer actions', () => {
|
||||
await apis.user.nodes.deleteNodeChildren(destinationId);
|
||||
});
|
||||
|
||||
it('Move action - [C286378]', async () => {
|
||||
it('[C286378] Move action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(xlsxSharedFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -747,7 +747,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(xlsxSharedFiles)).toBe(true, 'Item is not present in destination');
|
||||
});
|
||||
|
||||
it('Favorite action - [C286379]', async () => {
|
||||
it('[C286379] Favorite action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxSharedFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -758,7 +758,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(docxSharedFiles)).toBe(true, 'Item is not present in Favorites list');
|
||||
});
|
||||
|
||||
it('Delete action - [C286380]', async () => {
|
||||
it('[C286380] Delete action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(pdfSharedFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -770,7 +770,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(pdfSharedFiles)).toBe(true, 'Item is not present in Trash');
|
||||
});
|
||||
|
||||
it('Edit Offline action - [C297601]', async () => {
|
||||
it('[C297601] Edit Offline action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileForEditOffline);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsEditOffline();
|
||||
@@ -780,7 +780,7 @@ describe('Viewer actions', () => {
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not open');
|
||||
});
|
||||
|
||||
it('Cancel Editing action - [C297602]', async () => {
|
||||
it('[C297602] Cancel Editing action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileForCancelEditing);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsCancelEditing();
|
||||
@@ -789,7 +789,7 @@ describe('Viewer actions', () => {
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not open');
|
||||
});
|
||||
|
||||
it('Upload new version action - [C297603]', async () => {
|
||||
it('[C297603] Upload new version action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileShared);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
@@ -807,7 +807,7 @@ describe('Viewer actions', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(fileSharedId)).toEqual('2.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('Share action - [C286381]', async () => {
|
||||
it('[C286381] Share action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxSharedFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -816,7 +816,7 @@ describe('Viewer actions', () => {
|
||||
await shareDialog.clickClose();
|
||||
});
|
||||
|
||||
it('Manage Versions action - [C286382]', async () => {
|
||||
it('[C286382] Manage Versions action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxSharedFiles);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -883,7 +883,7 @@ describe('Viewer actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Download action - [C286390]', async () => {
|
||||
it('[C286390] Download action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxFavorites);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -891,7 +891,7 @@ describe('Viewer actions', () => {
|
||||
expect(await Utils.fileExistsOnOS(docxFavorites)).toBe(true, 'File not found in download location');
|
||||
});
|
||||
|
||||
it('Copy action - [C286391]', async (done) => {
|
||||
it('[C286391] Copy action', async (done) => {
|
||||
await dataTable.doubleClickOnRowByName(docxFavorites);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -911,7 +911,7 @@ describe('Viewer actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Move action - [C286392]', async () => {
|
||||
it('[C286392] Move action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(xlsxFavorites);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -929,7 +929,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(xlsxFavorites)).toBe(true, 'Item is not present in destination');
|
||||
});
|
||||
|
||||
it('Favorite action - [C286393]', async () => {
|
||||
it('[C286393] Favorite action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(xlsxFavorites);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -940,7 +940,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(xlsxFavorites)).toBe(false, 'Item is still present in Favorites list');
|
||||
});
|
||||
|
||||
it('Delete action - [C286394]', async () => {
|
||||
it('[C286394] Delete action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(pdfFavorites);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -952,7 +952,7 @@ describe('Viewer actions', () => {
|
||||
expect(await dataTable.isItemPresent(pdfFavorites)).toBe(true, 'Item is not present in Trash');
|
||||
});
|
||||
|
||||
it('Edit Offline action - [C297604]', async () => {
|
||||
it('[C297604] Edit Offline action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileForEditOffline);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsEditOffline();
|
||||
@@ -962,7 +962,7 @@ describe('Viewer actions', () => {
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not open');
|
||||
});
|
||||
|
||||
it('Cancel Editing action - [C297605]', async () => {
|
||||
it('[C297605] Cancel Editing action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileForCancelEditing);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsCancelEditing();
|
||||
@@ -971,7 +971,7 @@ describe('Viewer actions', () => {
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not open');
|
||||
});
|
||||
|
||||
it('Upload new version action - [C297606]', async () => {
|
||||
it('[C297606] Upload new version action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(fileFav);
|
||||
await viewer.waitForViewerToOpen();
|
||||
await toolbar.clickMoreActionsUploadNewVersion();
|
||||
@@ -989,7 +989,7 @@ describe('Viewer actions', () => {
|
||||
expect(await apis.user.nodes.getFileVersionLabel(fileFavId)).toEqual('2.0', 'File has incorrect version label');
|
||||
});
|
||||
|
||||
it('Share action - [C286395]', async () => {
|
||||
it('[C286395] Share action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxFavorites);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
@@ -998,7 +998,7 @@ describe('Viewer actions', () => {
|
||||
await shareDialog.clickClose();
|
||||
});
|
||||
|
||||
it('Manage Versions action - [C286396]', async () => {
|
||||
it('[C286396] Manage Versions action', async () => {
|
||||
await dataTable.doubleClickOnRowByName(docxFavorites);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
|
||||
|
@@ -96,18 +96,18 @@ describe('Viewer general', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Viewer opens on double clicking on a file from Personal Files - [C279269]', async () => {
|
||||
it('[C279269] Viewer opens on double clicking on a file from Personal Files', async () => {
|
||||
await dataTable.doubleClickOnRowByName(xlsxFile);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
});
|
||||
|
||||
it('Viewer opens when clicking the View action for a file - [C279270]', async () => {
|
||||
it('[C279270] Viewer opens when clicking the View action for a file', async () => {
|
||||
await dataTable.selectItem(xlsxFile);
|
||||
await page.toolbar.clickView();
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
});
|
||||
|
||||
it('The viewer general elements are displayed - [C279283]', async () => {
|
||||
it('[C279283] The viewer general elements are displayed', async () => {
|
||||
await dataTable.doubleClickOnRowByName(xlsxFile);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
expect(await viewer.isViewerToolbarDisplayed()).toBe(true, 'Toolbar not displayed');
|
||||
@@ -115,32 +115,32 @@ describe('Viewer general', () => {
|
||||
expect(await viewer.isFileTitleDisplayed()).toBe(true, 'File title is not displayed');
|
||||
});
|
||||
|
||||
it('Close the viewer - [C279271]', async () => {
|
||||
it('[C279271] Close the viewer', async () => {
|
||||
await dataTable.doubleClickOnRowByName(xlsxFile);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
await viewer.clickClose();
|
||||
expect(await viewer.isViewerOpened()).toBe(false, 'Viewer did not close');
|
||||
});
|
||||
|
||||
it('Close button tooltip - [C284632]', async () => {
|
||||
it('[C284632] Close button tooltip', async () => {
|
||||
await dataTable.doubleClickOnRowByName(xlsxFile);
|
||||
expect(await viewer.getCloseButtonTooltip()).toEqual('Close');
|
||||
});
|
||||
|
||||
it('Viewer opens when accessing the preview URL for a file - [C279285]', async () => {
|
||||
it('[C279285] Viewer opens when accessing the preview URL for a file', async () => {
|
||||
const previewURL = `personal-files/${parentId}/(viewer:view/${xlsxFileId})`
|
||||
await page.load(previewURL);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
expect(await viewer.getFileTitle()).toEqual(xlsxFile);
|
||||
});
|
||||
|
||||
it('Viewer does not open when accessing the preview URL for a file without permissions - [C279287]', async () => {
|
||||
it('[C279287] Viewer does not open when accessing the preview URL for a file without permissions', async () => {
|
||||
const previewURL = `libraries/${docLibId}/(viewer:view/${fileAdminId})`
|
||||
await page.load(previewURL);
|
||||
expect(await viewer.isViewerOpened()).toBe(false, 'Viewer should not be opened!');
|
||||
});
|
||||
|
||||
it('Viewer opens for a file from File Libraries - [C284633]', async () => {
|
||||
it('[C284633] Viewer opens for a file from File Libraries', async () => {
|
||||
await page.goToMyLibrariesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(siteUser);
|
||||
await dataTable.waitForHeader();
|
||||
@@ -151,7 +151,7 @@ describe('Viewer general', () => {
|
||||
expect(await viewer.isFileTitleDisplayed()).toBe(true, 'File title is not displayed');
|
||||
});
|
||||
|
||||
it('Viewer opens for a file from Recent Files - [C284636]', async () => {
|
||||
it('[C284636] Viewer opens for a file from Recent Files', async () => {
|
||||
await page.clickRecentFilesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(xlsxFile);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
@@ -160,7 +160,7 @@ describe('Viewer general', () => {
|
||||
expect(await viewer.isFileTitleDisplayed()).toBe(true, 'File title is not displayed');
|
||||
});
|
||||
|
||||
it('Viewer opens for a file from Shared Files - [C284635]', async () => {
|
||||
it('[C284635] Viewer opens for a file from Shared Files', async () => {
|
||||
await page.clickSharedFilesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(xlsxFile);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
@@ -169,7 +169,7 @@ describe('Viewer general', () => {
|
||||
expect(await viewer.isFileTitleDisplayed()).toBe(true, 'File title is not displayed');
|
||||
});
|
||||
|
||||
it('Viewer opens for a file from Favorites - [C284634]', async () => {
|
||||
it('[C284634] Viewer opens for a file from Favorites', async () => {
|
||||
await page.clickFavoritesAndWait();
|
||||
await dataTable.doubleClickOnRowByName(xlsxFile);
|
||||
expect(await viewer.isViewerOpened()).toBe(true, 'Viewer is not opened');
|
||||
@@ -178,7 +178,7 @@ describe('Viewer general', () => {
|
||||
expect(await viewer.isFileTitleDisplayed()).toBe(true, 'File title is not displayed');
|
||||
});
|
||||
|
||||
it('Viewer opens for a file from Search Results - [C279175]', async () => {
|
||||
it('[C279175] Viewer opens for a file from Search Results', async () => {
|
||||
await searchInput.clickSearchButton();
|
||||
await searchInput.checkFilesAndFolders();
|
||||
await searchInput.searchFor(xlsxFile);
|
||||
|
@@ -75,7 +75,7 @@ describe('Viewer - password protected file', () => {
|
||||
await apis.user.nodes.deleteNodeById(parentId);
|
||||
});
|
||||
|
||||
it('Password dialog appears when opening a protected file - [C268958]', async () => {
|
||||
it('[C268958] Password dialog appears when opening a protected file', async () => {
|
||||
expect(await passwordDialog.isDialogOpen()).toBe(true, 'Password dialog not open');
|
||||
expect(await passwordDialog.isPasswordInputDisplayed()).toBe(true, 'Password input not displayed');
|
||||
expect(await passwordDialog.isSubmitEnabled()).toBe(false, 'Submit button not disabled');
|
||||
@@ -83,7 +83,7 @@ describe('Viewer - password protected file', () => {
|
||||
expect(await viewer.isPdfViewerContentDisplayed()).toBe(false, 'file content is displayed');
|
||||
});
|
||||
|
||||
it('File content is displayed when entering the correct password - [C268959]', async () => {
|
||||
it('[C268959] File content is displayed when entering the correct password', async () => {
|
||||
await passwordDialog.enterPassword(protectedFile.password);
|
||||
expect(await passwordDialog.isSubmitEnabled()).toBe(true, 'Submit button not enabled');
|
||||
|
||||
@@ -93,7 +93,7 @@ describe('Viewer - password protected file', () => {
|
||||
expect(await viewer.isPdfViewerContentDisplayed()).toBe(true, 'file content not displayed');
|
||||
});
|
||||
|
||||
it('Error appears when entering an incorrect password - [C268960]', async () => {
|
||||
it('[C268960] Error appears when entering an incorrect password', async () => {
|
||||
await passwordDialog.enterPassword('incorrect');
|
||||
expect(await passwordDialog.isSubmitEnabled()).toBe(true, 'Submit button not enabled');
|
||||
await passwordDialog.clickSubmit();
|
||||
@@ -102,7 +102,7 @@ describe('Viewer - password protected file', () => {
|
||||
expect(await viewer.isPdfViewerContentDisplayed()).toBe(false, 'file content is displayed');
|
||||
});
|
||||
|
||||
it('Refresh the page while Password dialog is open - [C268961]', async () => {
|
||||
it('[C268961] Refresh the page while Password dialog is open', async () => {
|
||||
await passwordDialog.enterPassword(protectedFile.password);
|
||||
await page.refresh();
|
||||
await viewer.waitForViewerToOpen();
|
||||
|
Reference in New Issue
Block a user