mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-05-12 17:04:46 +00:00
[ACA-4196] [ACA-4219] [ACA-4283] Delete some tests and reinclude some others (#2038)
* [ACA-1496] Delete C306956 because it never worked * [ACA-4219] Remove C325049 - not worth to automate * [ACA-4283] Reinclude tests failing on cluster
This commit is contained in:
parent
fc459c9955
commit
1c81c0c821
@ -1,8 +1,2 @@
|
||||
{
|
||||
"C306956": "https://alfresco.atlassian.net/browse/ACA-4196",
|
||||
"C325049": "https://alfresco.atlassian.net/browse/ACA-4219",
|
||||
"C325161": "https://alfresco.atlassian.net/browse/ACS-1297",
|
||||
"C325023": "https://alfresco.atlassian.net/browse/ACS-1297",
|
||||
"C325026": "https://alfresco.atlassian.net/browse/ACS-1297",
|
||||
"C286326": "https://alfresco.atlassian.net/browse/ACS-1297"
|
||||
}
|
||||
|
@ -141,18 +141,6 @@ describe('Create file from template', () => {
|
||||
await page.closeOpenDialogs();
|
||||
});
|
||||
|
||||
it('[C325049] Select template - dialog UI - when no templates exist in the repo', async () => {
|
||||
await sidenav.openCreateFileFromTemplateDialog();
|
||||
await selectTemplateDialog.waitForDialogToOpen();
|
||||
|
||||
expect(await selectTemplateDialog.getDialogTitle()).toEqual('Select a document template');
|
||||
expect(await selectTemplateDialog.dataTable.isEmpty()).toBe(true, 'Datatable is not empty');
|
||||
expect(await selectTemplateDialog.dataTable.getEmptyListText()).toEqual('No results found');
|
||||
expect(await selectTemplateDialog.breadcrumb.currentFolder.getText()).toEqual('Node Templates');
|
||||
expect(await selectTemplateDialog.isNextButtonEnabled()).toBe(false, 'Next button is not disabled');
|
||||
expect(await selectTemplateDialog.isCancelButtonEnabled()).toBe(true, 'Cancel button is not enabled');
|
||||
});
|
||||
|
||||
describe('with existing templates', () => {
|
||||
beforeAll(async () => {
|
||||
await adminApiActions.createNodeTemplatesHierarchy(templates);
|
||||
|
@ -233,22 +233,20 @@ describe('Edit offline', () => {
|
||||
|
||||
describe('on Favorite Files', () => {
|
||||
let parentFavId: string;
|
||||
let file1Id: string;
|
||||
let fileLockedId: string;
|
||||
let fileLocked2Id: string;
|
||||
|
||||
beforeAll(async () => {
|
||||
parentFavId = (await apis.user.nodes.createFolder(parentFav)).entry.id;
|
||||
|
||||
file1Id = (await apis.user.upload.uploadFileWithRename(FILES.docxFile, parentFavId, file1)).entry.id;
|
||||
fileLockedId = (await apis.user.upload.uploadFileWithRename(FILES.docxFile, parentFavId, fileLocked)).entry.id;
|
||||
fileLocked2Id = (await apis.user.upload.uploadFileWithRename(FILES.docxFile, parentFavId, fileLocked2)).entry.id;
|
||||
|
||||
await apis.user.nodes.lockFile(fileLockedId);
|
||||
await apis.user.nodes.lockFile(fileLocked2Id);
|
||||
|
||||
await apis.user.favorites.addFavoritesByIds('file', [file1Id, fileLockedId, fileLocked2Id]);
|
||||
await apis.user.favorites.waitForApi({ expect: 3 });
|
||||
await apis.user.favorites.addFavoritesByIds('file', [fileLockedId, fileLocked2Id]);
|
||||
await apis.user.favorites.waitForApi({ expect: 2 });
|
||||
|
||||
await loginPage.loginWith(username);
|
||||
});
|
||||
@ -265,14 +263,6 @@ describe('Edit offline', () => {
|
||||
await Utils.pressEscape();
|
||||
});
|
||||
|
||||
it('[C306956] File is locked and downloaded when clicking Edit Offline', async () => {
|
||||
await dataTable.selectItem(file1);
|
||||
await toolbar.clickMoreActionsEditOffline();
|
||||
|
||||
expect(await Utils.fileExistsOnOS(file1)).toBe(true, 'File not found in download location');
|
||||
expect(await apis.user.nodes.isFileLockedWrite(file1Id)).toBe(true, `${file1} is not locked`);
|
||||
});
|
||||
|
||||
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`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user