remove not needed spaces (#5495)

* remove not usefull spaces

* increase timeout

* increase timeout

* fix
This commit is contained in:
Eugenio Romano
2020-02-23 17:00:16 +00:00
committed by GitHub
parent 9e0e2bdfa6
commit 2d0b571875
302 changed files with 378 additions and 1245 deletions

View File

@@ -36,5 +36,4 @@ describe('Auth Guard SSO', () => {
const error = await errorPage.getErrorCode();
await expect(error).toBe('403');
});
});

View File

@@ -30,8 +30,7 @@ describe('CardView Component', () => {
beforeAll(async () => {
await loginPage.loginToContentServices(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await navigationBarPage.clickCardViewButton();
});
});
afterAll(async () => {
await navigationBarPage.clickLogoutButton();
@@ -233,8 +232,7 @@ describe('CardView Component', () => {
await expect(await cardViewPageComponent.getErrorFloat()).toBe('Use a number format');
});
});
});
describe('Boolean', () => {
@@ -283,8 +281,7 @@ describe('CardView Component', () => {
await expect(cardViewPageComponent.getOutputText(1))
.toBe('[CardView Datetime Item] - null');
});
});
});
it('[C306895] Should display the form field as editable and clickable depending on the \'Editable\' toggle mode.', async () => {
const message = 'clickable updated';

View File

@@ -43,8 +43,7 @@ describe('Datatable component - selection', () => {
await loginPage.loginToContentServicesUsingUserModel(acsUser);
await navigationBarPage.navigateToDatatable();
});
});
afterAll(async () => {
await navigationBarPage.clickLogoutButton();

View File

@@ -50,7 +50,6 @@ describe('Datatable component', () => {
await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser);
await loginPage.loginToContentServicesUsingUserModel(acsUser);
});
afterAll(async () => {

View File

@@ -37,8 +37,7 @@ describe('Error Component', () => {
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser);
await loginPage.loginToContentServicesUsingUserModel(acsUser);
});
});
afterAll(async () => {
await navigationBarPage.clickLogoutButton();
@@ -64,5 +63,4 @@ describe('Error Component', () => {
await expect(await errorPage.getErrorTitle()).toBe('We hit a problem.');
await expect(await errorPage.getErrorDescription()).toBe('Looks like something went wrong.');
});
});

View File

@@ -60,8 +60,7 @@ describe('Header Component', () => {
await this.alfrescoJsApi.login(user.email, user.password);
await loginPage.loginToProcessServicesUsingUserModel(user);
});
});
beforeEach(async() => {
await navigationBarPage.clickHeaderDataButton();
@@ -71,8 +70,7 @@ describe('Header Component', () => {
await navigationBarPage.clickLogoutButton();
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.activiti.adminTenantsApi.deleteTenant(tenantId);
});
});
it('[C280002] Should be able to view Header component', async () => {
await headerPage.checkShowMenuCheckBoxIsDisplayed();

View File

@@ -39,8 +39,7 @@ describe('Universal Icon component', () => {
await this.alfrescoJsApi.login(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser);
await loginPage.loginToContentServicesUsingUserModel(acsUser);
});
});
afterAll(async () => {
await navigationBarPage.clickLogoutButton();
@@ -48,13 +47,11 @@ describe('Universal Icon component', () => {
beforeEach(async () => {
await navigationBarPage.clickIconsButton();
});
});
it('[C291872] Should display the icons on the page', async () => {
await expect(await iconsPage.isLigatureIconDisplayed('folder')).toBe(true, 'Ligature icon is not displayed');
await expect(await iconsPage.isCustomIconDisplayed('adf:move_file')).toBe(true, 'Named icon is not displayed');
await expect(await iconsPage.isCustomIconDisplayed('adf:folder')).toBe(true, 'Thumbnail service icon is not displayed');
});
});

View File

@@ -74,8 +74,7 @@ describe('Enable infinite scrolling', () => {
deleteUploaded = await uploadActions.createFolder('deleteFolder', '-my-');
await uploadActions.createEmptyFiles(deleteFileNames, deleteUploaded.entry.id);
});
});
afterAll(async () => {
await navigationBarPage.clickLogoutButton();
@@ -84,8 +83,7 @@ describe('Enable infinite scrolling', () => {
beforeEach(async () => {
await navigationBarPage.clickContentServicesButton();
await contentServicesPage.checkAcsContainer();
});
});
it('[C260484] Should be possible to enable infinite scrolling', async () => {
await contentServicesPage.doubleClickRow(folderModel.name);
@@ -150,5 +148,4 @@ describe('Enable infinite scrolling', () => {
await infinitePaginationPage.checkLoadMoreButtonIsNotDisplayed();
});
});

View File

@@ -61,8 +61,7 @@ describe('Login component', () => {
await this.alfrescoJsApi.core.peopleApi.addPerson(userA);
await this.alfrescoJsApi.core.peopleApi.addPerson(userB);
});
});
it('[C276746] Should display the right information in user-info when a different users logs in', async () => {
await loginPage.loginToContentServicesUsingUserModel(userA);
@@ -270,5 +269,4 @@ describe('Login component', () => {
await expect(await loginPage.getLoginError()).toEqual(errorMessages.invalid_credentials);
await loginPage.login(adminUserModel.id, adminUserModel.password);
});
});

View File

@@ -54,8 +54,7 @@ describe('Login component - SSO', () => {
await browser.refresh();
await loginSSOPage.loginSSOIdentityService(browser.params.testConfig.adf.adminEmail, browser.params.testConfig.adf.adminPassword);
});
});
});
describe('Login component - SSO Grant type password (implicit flow false)', () => {

View File

@@ -38,5 +38,4 @@ describe('Logout component - SSO', () => {
const actualUrl = await browser.getCurrentUrl();
await expect(actualUrl).toEqual(browser.params.testConfig.adf.url + '/login');
});
});

View File

@@ -58,8 +58,7 @@ describe('Login component - Redirect', () => {
await this.alfrescoJsApi.login(user.id, user.password);
uploadedFolder = await uploadActions.createFolder('protecteFolder' + StringUtil.generateRandomString(), '-my-');
});
});
it('[C213838] Should after login in CS be redirect to Login page when try to access to PS', async () => {
await loginPage.goToLoginPage();

View File

@@ -90,8 +90,7 @@ describe('Pagination - returns to previous page when current is empty', () => {
await loginPage.loginToContentServicesUsingUserModel(acsUser);
await contentServicesPage.goToDocumentList();
});
});
it('[C274710] Should redirect to previous page when current is emptied', async () => {
await contentServicesPage.doubleClickRow(folderModel.name);
@@ -127,8 +126,7 @@ describe('Pagination - returns to previous page when current is empty', () => {
list = await contentServicesPage.getAllRowsNameColumn();
await expect(Util.arrayContainsArray(list, fileNames.slice(0, 5))).toEqual(true);
});
});
it('[C297494] Should display content when navigating to a non-empty folder not in the first page', async () => {
await contentServicesPage.goToDocumentList();

View File

@@ -41,8 +41,7 @@ describe('User Info - SSO', () => {
await loginSSOPage.clickOnSSOButton();
await loginSSOPage.loginSSOIdentityService(identityUser.email, identityUser.password);
});
});
afterAll(async () => {
if (identityService) {
@@ -58,5 +57,4 @@ describe('User Info - SSO', () => {
await userInfoPage.closeUserProfile();
await userInfoPage.dialogIsNotDisplayed();
});
});

View File

@@ -62,8 +62,7 @@ describe('User Info component', () => {
});
await this.alfrescoJsApi.core.peopleApi.addPerson(contentUserModel);
});
});
afterAll(async () => {
await navigationBarPage.clickLogoutButton();

View File

@@ -56,8 +56,7 @@ describe('Viewer', () => {
role: CONSTANTS.CS_USER_ROLES.MANAGER
});
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
});
});
afterAll(async () => {
await navigationBarPage.clickLogoutButton();
@@ -90,6 +89,5 @@ describe('Viewer', () => {
}
}
});
});
});
});

View File

@@ -68,7 +68,6 @@ describe('Viewer', () => {
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
pngFileUploaded = await uploadActions.uploadFile(pngFileInfo.location, pngFileInfo.name, site.entry.guid);
});
afterAll(async () => {
@@ -118,7 +117,5 @@ describe('Viewer', () => {
}
}
});
});
});
});

View File

@@ -56,8 +56,7 @@ describe('Viewer', () => {
});
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
});
});
describe('Excel Folder Uploaded', () => {
let uploadedExcels;
@@ -88,7 +87,5 @@ describe('Viewer', () => {
}
}
});
});
});
});

View File

@@ -61,8 +61,7 @@ describe('Viewer', () => {
});
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
});
});
describe('Image Folder Uploaded', () => {
@@ -106,7 +105,5 @@ describe('Viewer', () => {
}
}
});
});
});
});

View File

@@ -57,8 +57,7 @@ describe('Viewer', () => {
});
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
});
});
describe('PowerPoint Folder Uploaded', () => {
@@ -91,7 +90,5 @@ describe('Viewer', () => {
}
}
});
});
});
});

View File

@@ -56,8 +56,7 @@ describe('Viewer', () => {
});
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
});
});
describe('Text Folder Uploaded', () => {
@@ -89,6 +88,5 @@ describe('Viewer', () => {
}
}
});
});
});
});

View File

@@ -59,8 +59,7 @@ describe('Viewer', () => {
});
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
});
});
afterAll(async () => {
await navigationBarPage.clickLogoutButton();
@@ -96,7 +95,5 @@ describe('Viewer', () => {
}
}
});
});
});
});

View File

@@ -61,14 +61,12 @@ describe('Info Drawer', () => {
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
pngFileUploaded = await uploadActions.uploadFile(pngFileInfo.location, pngFileInfo.name, site.entry.guid);
});
});
afterAll(async () => {
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
await uploadActions.deleteFileOrFolder(pngFileUploaded.entry.id);
});
});
beforeEach(async() => {
await loginPage.loginToContentServicesUsingUserModel(acsUser);

View File

@@ -106,8 +106,7 @@ describe('Content Services Viewer', () => {
await loginPage.loginToContentServicesUsingUserModel(acsUser);
await contentServicesPage.goToDocumentList();
});
});
afterAll(async () => {
await uploadActions.deleteFileOrFolder(pdfFile.getId());
@@ -118,8 +117,7 @@ describe('Content Services Viewer', () => {
await uploadActions.deleteFileOrFolder(pptFile.getId());
await uploadActions.deleteFileOrFolder(unsupportedFile.getId());
await navigationBarPage.clickLogoutButton();
});
});
it('[C260038] Should display first page, toolbar and pagination when opening a .pdf file', async () => {
await contentServicesPage.checkAcsContainer();

View File

@@ -51,14 +51,12 @@ describe('Viewer', () => {
txtFileUploaded = await uploadActions.uploadFile(txtFileInfo.location, txtFileInfo.name, '-my-');
await loginPage.loginToContentServicesUsingUserModel(acsUser);
});
});
afterAll(async () => {
await uploadActions.deleteFileOrFolder(txtFileUploaded.entry.id);
await navigationBarPage.clickLogoutButton();
});
});
beforeEach(async () => {
await contentServicesPage.goToDocumentList();

View File

@@ -66,8 +66,7 @@ describe('Viewer', () => {
jsFileUploaded = await uploadActions.uploadFile(jsFileInfo.location, jsFileInfo.name, '-my-');
await loginPage.loginToContentServicesUsingUserModel(acsUser);
});
});
afterAll(async () => {
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);

View File

@@ -70,14 +70,12 @@ describe('Viewer - properties', () => {
await viewerPage.clickLeftSidebarButton();
await viewerPage.checkLeftSideBarIsDisplayed();
});
});
afterAll(async () => {
await uploadActions.deleteFileOrFolder(pngFile.getId());
await navigationBarPage.clickLogoutButton();
});
});
it('[C260066] Should Show/Hide viewer toolbar when showToolbar is true/false', async () => {
await viewerPage.checkToolbarIsDisplayed();

View File

@@ -77,8 +77,7 @@ describe('Viewer', () => {
wordFileUploaded = await uploadActions.uploadFile(wordFileInfo.location, wordFileInfo.name, '-my-');
pngFileShared = await this.alfrescoJsApi.core.sharedlinksApi.addSharedLink({ 'nodeId': pngFileUploaded.entry.id });
});
});
afterAll(async () => {
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);