mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[NO-ISSUE] Fix e2e test (#4621)
* fix sso, change timeout, parallel * cange travis * move name apps in resources file * resources fix * resources fix * add sleep before search group * add possibility to extend duration of snack-bar message from configuration * fix unit test * fix unit test * remove timeout * change timeout * decrease message time * add lint main branch travis * reduce timeout * add new check application presence * change permission script fix search selector * fix travis conf * check app environment and upload the app if abbsent * fix cloud test * remove duplicate * restore ps test * restore resources file * fix e2e test * process with variables missing * test new conf travis * fix lint * fix spellcheck * remove duplicate module * fix ps module * fix travis conf * change check activiti env * add concept of processes in resources
This commit is contained in:
@@ -99,9 +99,9 @@ describe('Permissions Component', function () {
|
||||
|
||||
folderName = `MEESEEKS_${StringUtil.generateRandomString(5)}`;
|
||||
|
||||
const publicSiteBody = {visibility: 'PUBLIC', title: publicSiteName};
|
||||
const publicSiteBody = { visibility: 'PUBLIC', title: publicSiteName };
|
||||
|
||||
const privateSiteBody = {visibility: 'PRIVATE', title: privateSiteName};
|
||||
const privateSiteBody = { visibility: 'PRIVATE', title: privateSiteName };
|
||||
|
||||
publicSite = await alfrescoJsApi.core.sitesApi.createSite(publicSiteBody);
|
||||
privateSite = await alfrescoJsApi.core.sitesApi.createSite(privateSiteBody);
|
||||
@@ -136,7 +136,6 @@ describe('Permissions Component', function () {
|
||||
privateSiteFile = await uploadActions.uploadFile(alfrescoJsApi, fileModel.location, 'privateSite' + fileModel.name, privateSite.entry.guid);
|
||||
|
||||
await alfrescoJsApi.core.nodesApi.updateNode(privateSiteFile.entry.id,
|
||||
|
||||
{
|
||||
permissions: {
|
||||
locallySet: [{
|
||||
@@ -148,9 +147,7 @@ describe('Permissions Component', function () {
|
||||
});
|
||||
|
||||
await uploadActions.uploadFile(alfrescoJsApi, fileModel.location, 'Site' + fileModel.name, siteFolder.entry.id);
|
||||
|
||||
done();
|
||||
|
||||
});
|
||||
|
||||
afterAll(async (done) => {
|
||||
@@ -182,6 +179,9 @@ describe('Permissions Component', function () {
|
||||
permissionsPage.clickAddPermissionButton();
|
||||
permissionsPage.checkAddPermissionDialogIsDisplayed();
|
||||
permissionsPage.checkSearchUserInputIsDisplayed();
|
||||
|
||||
browser.sleep(7000);
|
||||
|
||||
permissionsPage.searchUserOrGroup(consumerUser.getId());
|
||||
permissionsPage.clickUserOrGroup(consumerUser.getFirstName());
|
||||
permissionsPage.checkUserOrGroupIsAdded(consumerUser.getId());
|
||||
|
Reference in New Issue
Block a user