mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[no-issue] general fix e2e and unit test (#3903)
* add missing import remove creation folder in redirect test in main folder fix update script update node js-api to last alpha before to install improve share dialog test * update gnu * fix notification and search e2e * change name compatible with file name * improve failing test to avoid cdk overlay problems * [ADF-3561] fix Outcome not translatable * increase sleep in user permission checklist missing uppercase comment possible different value in test due time * improve document list actions * improve document list action test * tag refresh bbefore next test comment possible value due the time
This commit is contained in:
@@ -113,7 +113,7 @@ describe('Comment Component', () => {
|
||||
expect(commentsPage.getTotalNumberOfComments()).toEqual('Comments (1)');
|
||||
expect(commentsPage.getMessage(0)).toEqual(comments.test);
|
||||
expect(commentsPage.getUserName(0)).toEqual(userFullName);
|
||||
expect(commentsPage.getTime(0)).toContain('ago');
|
||||
expect(commentsPage.getTime(0)).toMatch(/(ago|few)/);
|
||||
|
||||
});
|
||||
|
||||
@@ -129,7 +129,7 @@ describe('Comment Component', () => {
|
||||
expect(commentsPage.getTotalNumberOfComments()).toEqual('Comments (1)');
|
||||
expect(commentsPage.getMessage(0)).toEqual(comments.first);
|
||||
expect(commentsPage.getUserName(0)).toEqual(userFullName);
|
||||
expect(commentsPage.getTime(0)).toContain('ago');
|
||||
expect(commentsPage.getTime(0)).toMatch(/(ago|few)/);
|
||||
});
|
||||
|
||||
it('[C280021] Should be able to add a multiline comment on a file', () => {
|
||||
@@ -144,7 +144,7 @@ describe('Comment Component', () => {
|
||||
expect(commentsPage.getTotalNumberOfComments()).toEqual('Comments (1)');
|
||||
expect(commentsPage.getMessage(0)).toEqual(comments.multiline);
|
||||
expect(commentsPage.getUserName(0)).toEqual(userFullName);
|
||||
expect(commentsPage.getTime(0)).toContain('ago');
|
||||
expect(commentsPage.getTime(0)).toMatch(/(ago|few)/);
|
||||
|
||||
commentsPage.addComment(comments.second);
|
||||
commentsPage.checkUserIconIsDisplayed(0);
|
||||
@@ -152,7 +152,7 @@ describe('Comment Component', () => {
|
||||
expect(commentsPage.getTotalNumberOfComments()).toEqual('Comments (2)');
|
||||
expect(commentsPage.getMessage(0)).toEqual(comments.second);
|
||||
expect(commentsPage.getUserName(0)).toEqual(userFullName);
|
||||
expect(commentsPage.getTime(0)).toContain('ago');
|
||||
expect(commentsPage.getTime(0)).toMatch(/(ago|few)/);
|
||||
});
|
||||
|
||||
it('[C280022] Should not be able to add an HTML or other code input into the comment input filed', () => {
|
||||
@@ -167,6 +167,6 @@ describe('Comment Component', () => {
|
||||
expect(commentsPage.getTotalNumberOfComments()).toEqual('Comments (1)');
|
||||
expect(commentsPage.getMessage(0)).toEqual('First name: Last name:');
|
||||
expect(commentsPage.getUserName(0)).toEqual(userFullName);
|
||||
expect(commentsPage.getTime(0)).toContain('ago');
|
||||
expect(commentsPage.getTime(0)).toMatch(/(ago|few)/);
|
||||
});
|
||||
});
|
||||
|
@@ -27,7 +27,6 @@ import AcsUserModel = require('../../models/ACS/acsUserModel');
|
||||
import TestConfig = require('../../test.config');
|
||||
|
||||
import AlfrescoApi = require('alfresco-js-api-node');
|
||||
import CONSTANTS = require('../../util/constants');
|
||||
|
||||
import { browser, protractor } from 'protractor';
|
||||
|
||||
@@ -41,8 +40,6 @@ describe('Create folder directive', function () {
|
||||
let contentListPage = new ContentListPage();
|
||||
|
||||
let acsUser = new AcsUserModel();
|
||||
let consumerUser = new AcsUserModel();
|
||||
let site;
|
||||
|
||||
beforeAll(async (done) => {
|
||||
this.alfrescoJsApi = new AlfrescoApi({
|
||||
|
@@ -53,19 +53,6 @@ describe('Document List Component - Actions', () => {
|
||||
});
|
||||
});
|
||||
|
||||
afterEach(async (done) => {
|
||||
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
|
||||
if (uploadedFolder) {
|
||||
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, uploadedFolder.entry.id);
|
||||
uploadedFolder = null;
|
||||
}
|
||||
if (testFileNode) {
|
||||
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, testFileNode.entry.id);
|
||||
testFileNode = null;
|
||||
}
|
||||
done();
|
||||
});
|
||||
|
||||
describe('File Actions', () => {
|
||||
|
||||
let pdfUploadedNode;
|
||||
@@ -87,18 +74,27 @@ describe('Document List Component - Actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
afterEach(async (done) => {
|
||||
try {
|
||||
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
|
||||
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, pdfUploadedNode.entry.id);
|
||||
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, testFileNode.entry.id);
|
||||
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, uploadedFolder.entry.id);
|
||||
} catch (error) {
|
||||
}
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C213257] Should be able to copy a file', () => {
|
||||
browser.driver.sleep(12000);
|
||||
browser.driver.sleep(15000);
|
||||
|
||||
contentListPage.rightClickOnRowNamed(pdfUploadedNode.entry.name);
|
||||
contentListPage.pressContextMenuActionNamed('Copy');
|
||||
contentServicesPage.typeIntoNodeSelectorSearchField(folderName);
|
||||
contentServicesPage.clickContentNodeSelectorResult(folderName);
|
||||
contentServicesPage.clickCopyButton();
|
||||
contentServicesPage.checkAcsContainer();
|
||||
contentServicesPage.checkContentIsDisplayed(pdfFileModel.name);
|
||||
browser.get(TestConfig.adf.url + '/files/' + uploadedFolder.entry.id);
|
||||
contentServicesPage.checkAcsContainer();
|
||||
contentServicesPage.doubleClickRow(uploadedFolder.entry.name);
|
||||
contentServicesPage.checkContentIsDisplayed(pdfFileModel.name);
|
||||
});
|
||||
|
||||
@@ -166,6 +162,16 @@ describe('Document List Component - Actions', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
afterEach(async (done) => {
|
||||
try {
|
||||
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
|
||||
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, uploadedFolder.entry.id);
|
||||
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, secondUploadedFolder.entry.id);
|
||||
} catch (error) {
|
||||
}
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C260123] Should be able to delete a folder using context menu', () => {
|
||||
contentListPage.deleteContent(folderName);
|
||||
contentListPage.checkContentIsNotDisplayed(folderName);
|
||||
@@ -183,16 +189,14 @@ describe('Document List Component - Actions', () => {
|
||||
});
|
||||
|
||||
it('[C260138] Should be able to copy a folder', () => {
|
||||
browser.driver.sleep(12000);
|
||||
browser.driver.sleep(15000);
|
||||
|
||||
contentListPage.copyContent(folderName);
|
||||
contentServicesPage.typeIntoNodeSelectorSearchField(secondfolderName);
|
||||
contentServicesPage.clickContentNodeSelectorResult(secondfolderName);
|
||||
contentServicesPage.clickCopyButton();
|
||||
contentServicesPage.checkAcsContainer();
|
||||
contentServicesPage.checkContentIsDisplayed(folderName);
|
||||
browser.get(TestConfig.adf.url + '/files/' + secondUploadedFolder.entry.id);
|
||||
contentServicesPage.checkAcsContainer();
|
||||
contentServicesPage.doubleClickRow(secondUploadedFolder.entry.name);
|
||||
contentServicesPage.checkContentIsDisplayed(folderName);
|
||||
});
|
||||
|
||||
|
@@ -46,17 +46,14 @@ describe('Notifications Component', () => {
|
||||
|
||||
notificationPage.goToNotificationsPage();
|
||||
|
||||
notificationPage.enterDurationField(6000);
|
||||
notificationPage.enterDurationField(3000);
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
afterEach(async (done) => {
|
||||
notificationPage.enterDurationField(1);
|
||||
notificationPage.clickNotificationButton();
|
||||
browser.sleep(100);
|
||||
notificationPage.enterDurationField(6000);
|
||||
done();
|
||||
afterEach( () => {
|
||||
browser.executeScript(`document.querySelector('button[data-automation-id="notification-custom-dismiss-button"]').click();`);
|
||||
notificationPage.enterDurationField(3000);
|
||||
});
|
||||
|
||||
it('[C279977] Should show notification when the message is not empty and button is clicked', () => {
|
||||
|
@@ -89,7 +89,7 @@ describe('Search Filters', () => {
|
||||
});
|
||||
|
||||
it('[C277146] Should Show more/less buttons be hidden when inactive', () => {
|
||||
browser.get(TestConfig.adf.url + '/search;q=files*');
|
||||
browser.get(TestConfig.adf.url + '/search;q=*');
|
||||
|
||||
searchFiltersPage.checkShowLessButtonIsNotDisplayed();
|
||||
searchFiltersPage.checkSizeShowMoreButtonIsDisplayed();
|
||||
|
@@ -55,7 +55,7 @@ describe('Search component - Search Page', () => {
|
||||
let searchResultPage = new SearchResultsPage();
|
||||
|
||||
let acsUser = new AcsUserModel();
|
||||
let emptyFolderModel = new FolderModel({ 'name': Util.generateRandomString() });
|
||||
let emptyFolderModel = new FolderModel({ 'name': 'search' + Util.generateRandomString() });
|
||||
let firstFileModel;
|
||||
let newFolderModel = new FolderModel({ 'name': 'newFolder' });
|
||||
let fileNames = [], adminFileNames = [], nrOfFiles = 15, adminNrOfFiles = 5;
|
||||
@@ -100,25 +100,18 @@ describe('Search component - Search Page', () => {
|
||||
|
||||
loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||
|
||||
contentServicesPage.goToDocumentList();
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C260264] Should display message when no results are found', () => {
|
||||
let notExistentFileName = Util.generateRandomString();
|
||||
contentServicesPage.goToDocumentList();
|
||||
searchDialog.checkSearchBarIsNotVisible().checkSearchIconIsVisible().clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(notExistentFileName);
|
||||
searchResultPage.checkNoResultMessageIsDisplayed();
|
||||
});
|
||||
|
||||
it('[C260265] Should display file previewer when opening a file from search results', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
|
||||
searchDialog
|
||||
.checkSearchBarIsNotVisible()
|
||||
.checkSearchIconIsVisible()
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(firstFileModel.name);
|
||||
|
||||
@@ -131,11 +124,7 @@ describe('Search component - Search Page', () => {
|
||||
});
|
||||
|
||||
it('[C272810] Should display only files corresponding to search', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
|
||||
searchDialog
|
||||
.checkSearchBarIsNotVisible()
|
||||
.checkSearchIconIsVisible()
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.firstFile);
|
||||
|
||||
@@ -144,10 +133,7 @@ describe('Search component - Search Page', () => {
|
||||
});
|
||||
|
||||
it('[C260267] Should display content when opening a folder from search results', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
|
||||
searchDialog.checkSearchBarIsNotVisible()
|
||||
.checkSearchIconIsVisible()
|
||||
searchDialog
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(emptyFolderModel.name);
|
||||
|
||||
@@ -160,11 +146,7 @@ describe('Search component - Search Page', () => {
|
||||
});
|
||||
|
||||
it('[C260261] Should be able to delete a file from search results', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
|
||||
searchDialog
|
||||
.checkSearchBarIsNotVisible()
|
||||
.checkSearchIconIsVisible()
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.firstFile);
|
||||
|
||||
@@ -175,15 +157,13 @@ describe('Search component - Search Page', () => {
|
||||
searchResultPage.checkNoResultMessageIsDisplayed();
|
||||
searchResultPage.checkContentIsNotDisplayed(search.active.firstFile);
|
||||
|
||||
contentServicesPage.goToDocumentList();
|
||||
searchDialog.checkSearchBarIsNotVisible().checkSearchIconIsVisible().clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.firstFile);
|
||||
searchResultPage.checkNoResultMessageIsDisplayed();
|
||||
});
|
||||
|
||||
it('[C272809] Should be able to delete a folder from search results', () => {
|
||||
searchDialog.checkSearchBarIsNotVisible()
|
||||
.checkSearchIconIsVisible()
|
||||
searchDialog
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(emptyFolderModel.name);
|
||||
|
||||
@@ -198,100 +178,87 @@ describe('Search component - Search Page', () => {
|
||||
searchResultPage.checkNoResultMessageIsDisplayed();
|
||||
});
|
||||
|
||||
it('[C272803] Should be able to sort results by name (Ascending)', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
describe('Sorting', () => {
|
||||
|
||||
searchDialog
|
||||
.checkSearchBarIsNotVisible()
|
||||
.checkSearchIconIsVisible()
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.base);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.active.secondFile);
|
||||
searchResultPage.sortAndCheckListIsOrderedByName(true).then((result) => {
|
||||
expect(result).toEqual(true);
|
||||
afterEach(async (done) => {
|
||||
await browser.refresh();
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C272803] Should be able to sort results by name (Ascending)', () => {
|
||||
searchDialog
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.base);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.active.secondFile);
|
||||
searchResultPage.sortAndCheckListIsOrderedByName(true).then((result) => {
|
||||
expect(result).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('[C272804] Should be able to sort results by name (Descending)', () => {
|
||||
searchDialog
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.base);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.active.secondFile);
|
||||
searchResultPage.sortAndCheckListIsOrderedByName(false).then((result) => {
|
||||
expect(result).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('[C272805] Should be able to sort results by author (Ascending)', () => {
|
||||
searchDialog
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.base);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.active.secondFile);
|
||||
|
||||
searchResultPage.sortAndCheckListIsOrderedByAuthor(true).then((result) => {
|
||||
expect(result).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('[C272806] Should be able to sort results by author (Descending)', () => {
|
||||
searchDialog
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.base);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.active.secondFile);
|
||||
searchResultPage.sortAndCheckListIsOrderedByAuthor(false).then((result) => {
|
||||
expect(result).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('[C272807] Should be able to sort results by date (Ascending)', () => {
|
||||
searchDialog
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.base);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.active.secondFile);
|
||||
searchResultPage.sortAndCheckListIsOrderedByCreated(true).then((result) => {
|
||||
expect(result).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('[C260260] Should be able to sort results by date (Descending)', () => {
|
||||
searchDialog
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.base);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.active.secondFile);
|
||||
searchResultPage.sortAndCheckListIsOrderedByCreated(false).then((result) => {
|
||||
expect(result).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
it('[C272804] Should be able to sort results by name (Descending)', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
|
||||
it('[C260262] Should not be able to delete a file from search results without rights', () => {
|
||||
searchDialog
|
||||
.checkSearchBarIsNotVisible()
|
||||
.checkSearchIconIsVisible()
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.base);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.active.secondFile);
|
||||
searchResultPage.sortAndCheckListIsOrderedByName(false).then((result) => {
|
||||
expect(result).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('[C272805] Should be able to sort results by author (Ascending)', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
|
||||
searchDialog
|
||||
.checkSearchBarIsNotVisible()
|
||||
.checkSearchIconIsVisible()
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.base);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.active.secondFile);
|
||||
searchResultPage.sortAndCheckListIsOrderedByAuthor(true).then((result) => {
|
||||
expect(result).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('[C272806] Should be able to sort results by author (Descending)', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
|
||||
searchDialog
|
||||
.checkSearchBarIsNotVisible()
|
||||
.checkSearchIconIsVisible()
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.base);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.active.secondFile);
|
||||
searchResultPage.sortAndCheckListIsOrderedByAuthor(false).then((result) => {
|
||||
expect(result).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('[C272807] Should be able to sort results by date (Ascending)', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
|
||||
searchDialog
|
||||
.checkSearchBarIsNotVisible()
|
||||
.checkSearchIconIsVisible()
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.base);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.active.secondFile);
|
||||
searchResultPage.sortAndCheckListIsOrderedByCreated(true).then((result) => {
|
||||
expect(result).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('[C260260] Should be able to sort results by date (Descending)', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
|
||||
searchDialog
|
||||
.checkSearchBarIsNotVisible()
|
||||
.checkSearchIconIsVisible()
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.active.base);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.active.secondFile);
|
||||
searchResultPage.sortAndCheckListIsOrderedByCreated(false).then((result) => {
|
||||
expect(result).toEqual(true);
|
||||
});
|
||||
});
|
||||
|
||||
it('[C260262] Shouldn\'t be able to delete a file from search results without rights', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
searchDialog.checkSearchBarIsNotVisible().checkSearchIconIsVisible().clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.no_permission.noPermFile);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.no_permission.noPermFile);
|
||||
searchResultPage.checkDeleteIsDisabled(search.no_permission.noPermFile);
|
||||
searchResultPage.checkContentIsDisplayed(search.no_permission.noPermFile);
|
||||
@@ -301,19 +268,16 @@ describe('Search component - Search Page', () => {
|
||||
searchResultPage.checkContentIsDisplayed(search.no_permission.noPermFile);
|
||||
});
|
||||
|
||||
it('[C272808] Shouldn\'t be able to delete a folder from search results without rights', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
searchDialog.checkSearchBarIsNotVisible();
|
||||
searchDialog.checkSearchIconIsVisible();
|
||||
searchDialog.clickOnSearchIcon();
|
||||
searchDialog.enterTextAndPressEnter(search.no_permission.noPermFolder);
|
||||
it('[C272808] Should not be able to delete a folder from search results without rights', () => {
|
||||
searchDialog
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.no_permission.noPermFolder);
|
||||
|
||||
searchResultPage.checkContentIsDisplayed(search.no_permission.noPermFolder);
|
||||
searchResultPage.checkDeleteIsDisabled(search.no_permission.noPermFolder);
|
||||
searchResultPage.checkContentIsDisplayed(search.no_permission.noPermFolder);
|
||||
|
||||
searchDialog.checkSearchBarIsNotVisible()
|
||||
.checkSearchIconIsVisible()
|
||||
searchDialog
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter(search.no_permission.noPermFolder);
|
||||
|
||||
@@ -321,10 +285,11 @@ describe('Search component - Search Page', () => {
|
||||
searchResultPage.checkContentIsDisplayed(search.no_permission.noPermFolder);
|
||||
});
|
||||
|
||||
it('[C286675] Should display results when searching for \*', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
searchDialog.checkSearchBarIsNotVisible().checkSearchIconIsVisible().clickOnSearchIcon()
|
||||
it('[C286675] Should display results when searching for all elements', () => {
|
||||
searchDialog
|
||||
.clickOnSearchIcon()
|
||||
.enterTextAndPressEnter('*');
|
||||
|
||||
searchResultPage.checkNoResultMessageIsNotDisplayed();
|
||||
});
|
||||
});
|
||||
|
@@ -95,7 +95,7 @@ describe('Tag component', () => {
|
||||
|
||||
afterAll(async (done) => {
|
||||
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, pdfUploadedFile.entry.id);
|
||||
|
||||
browser.refresh();
|
||||
done();
|
||||
});
|
||||
|
||||
|
@@ -132,7 +132,7 @@ describe('Upload - User permission', () => {
|
||||
|
||||
navigationBarPage.openContentServicesFolder(this.consumerSite.entry.guid);
|
||||
|
||||
browser.sleep(1000);
|
||||
browser.sleep(3000);
|
||||
|
||||
dragAndDrop.dropFile(dragAndDropArea, emptyFile.location);
|
||||
dragAndDrop.dropFolder(dragAndDropArea, folder.location);
|
||||
@@ -146,7 +146,7 @@ describe('Upload - User permission', () => {
|
||||
contentServicesPage.checkContentIsNotDisplayed(folder.name);
|
||||
});
|
||||
|
||||
it('[C279915] Should not be allowed to upload a file in folder with consumer permissions', () => {
|
||||
fit('[C279915] Should not be allowed to upload a file in folder with consumer permissions', () => {
|
||||
contentServicesPage.uploadFile(emptyFile.location).checkContentIsDisplayed(emptyFile.name);
|
||||
|
||||
uploadDialog.fileIsUploaded(emptyFile.name);
|
||||
@@ -155,7 +155,7 @@ describe('Upload - User permission', () => {
|
||||
|
||||
navigationBarPage.openContentServicesFolder(this.consumerSite.entry.guid);
|
||||
|
||||
browser.sleep(1000);
|
||||
browser.sleep(3000);
|
||||
|
||||
contentServicesPage.uploadFile(emptyFile.location);
|
||||
|
||||
@@ -175,7 +175,7 @@ describe('Upload - User permission', () => {
|
||||
|
||||
navigationBarPage.openContentServicesFolder(this.consumerSite.entry.guid);
|
||||
|
||||
browser.sleep(1000);
|
||||
browser.sleep(3000);
|
||||
|
||||
uploadToggles.enableFolderUpload();
|
||||
|
||||
|
Reference in New Issue
Block a user