mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
remove not needed spaces (#5495)
* remove not usefull spaces * increase timeout * increase timeout * fix
This commit is contained in:
@@ -36,5 +36,4 @@ describe('Auth Guard SSO', () => {
|
||||
const error = await errorPage.getErrorCode();
|
||||
await expect(error).toBe('403');
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -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';
|
||||
|
@@ -43,8 +43,7 @@ describe('Datatable component - selection', () => {
|
||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||
|
||||
await navigationBarPage.navigateToDatatable();
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
|
@@ -50,7 +50,6 @@ describe('Datatable component', () => {
|
||||
await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser);
|
||||
|
||||
await loginPage.loginToContentServicesUsingUserModel(acsUser);
|
||||
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
|
@@ -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.');
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -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();
|
||||
|
@@ -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');
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -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();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -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);
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -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)', () => {
|
||||
|
||||
|
@@ -38,5 +38,4 @@ describe('Logout component - SSO', () => {
|
||||
const actualUrl = await browser.getCurrentUrl();
|
||||
await expect(actualUrl).toEqual(browser.params.testConfig.adf.url + '/login');
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -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();
|
||||
|
@@ -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();
|
||||
|
@@ -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();
|
||||
});
|
||||
|
||||
});
|
||||
|
@@ -62,8 +62,7 @@ describe('User Info component', () => {
|
||||
});
|
||||
|
||||
await this.alfrescoJsApi.core.peopleApi.addPerson(contentUserModel);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
afterAll(async () => {
|
||||
await navigationBarPage.clickLogoutButton();
|
||||
|
@@ -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', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -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', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
@@ -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', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
@@ -61,8 +61,7 @@ describe('Viewer', () => {
|
||||
});
|
||||
|
||||
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe('Image Folder Uploaded', () => {
|
||||
|
||||
@@ -106,7 +105,5 @@ describe('Viewer', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
@@ -57,8 +57,7 @@ describe('Viewer', () => {
|
||||
});
|
||||
|
||||
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe('PowerPoint Folder Uploaded', () => {
|
||||
|
||||
@@ -91,7 +90,5 @@ describe('Viewer', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
@@ -56,8 +56,7 @@ describe('Viewer', () => {
|
||||
});
|
||||
|
||||
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
describe('Text Folder Uploaded', () => {
|
||||
|
||||
@@ -89,6 +88,5 @@ describe('Viewer', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
});
|
||||
|
@@ -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', () => {
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
});
|
||||
});
|
||||
|
@@ -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);
|
||||
|
@@ -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();
|
||||
|
@@ -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();
|
||||
|
@@ -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);
|
||||
|
@@ -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();
|
||||
|
@@ -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);
|
||||
|
Reference in New Issue
Block a user