mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3658][ADF-3660][ADF-3661] Revisiting automated tests and test cases (#3869)
* [ADF-3658] Revisiting Content Services automated tests and test cases * [ADF-3661] Revisiting automated tests and test cases for Core and Insights folders * [ADF-3660] Revisiting automated tests and test cases for Process Services * Fixing lint errors
This commit is contained in:
committed by
Eugenio Romano
parent
04d42e2535
commit
094e1dab91
@@ -94,7 +94,7 @@ describe('Metadata component', () => {
|
||||
contentServicesPage.navigateToDocumentList();
|
||||
});
|
||||
|
||||
it('[C245652] Properties', () => {
|
||||
it('[C245652] Should be possible to display a file\'s properties', () => {
|
||||
viewerPage.viewFile(pngFileModel.name);
|
||||
|
||||
viewerPage.clickInfoButton();
|
||||
@@ -120,7 +120,7 @@ describe('Metadata component', () => {
|
||||
viewerPage.clickCloseButton();
|
||||
});
|
||||
|
||||
it('[C272769] Information button', () => {
|
||||
it('[C272769] Should be possible to display more details when clicking on More Information button', () => {
|
||||
viewerPage.viewFile(pngFileModel.name);
|
||||
viewerPage.clickInfoButton();
|
||||
viewerPage.checkInfoSideBarIsDisplayed();
|
||||
@@ -133,7 +133,7 @@ describe('Metadata component', () => {
|
||||
viewerPage.clickCloseButton();
|
||||
});
|
||||
|
||||
it('[C270952] Info icon', () => {
|
||||
it('[C270952] Should be possible to open/close properties using info icon', () => {
|
||||
viewerPage.viewFile(pngFileModel.name);
|
||||
viewerPage.clickInfoButton();
|
||||
viewerPage.checkInfoSideBarIsDisplayed();
|
||||
|
@@ -70,7 +70,7 @@ describe('Enable infinite scrolling', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('Enable infinite scrolling', () => {
|
||||
it('[C260484] Should be possible to enable infinite scrolling', () => {
|
||||
contentServicesPage.navigateToFolder(folderModel.name);
|
||||
contentServicesPage.enableInfiniteScrolling();
|
||||
contentServicesPage.clickLoadMoreButton();
|
||||
|
@@ -70,7 +70,7 @@ describe('Login component', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C260036] Username Required', () => {
|
||||
it('[C260036] Should require username', () => {
|
||||
loginPage.goToLoginPage();
|
||||
loginPage.checkUsernameInactive();
|
||||
loginPage.checkSignInButtonIsDisabled();
|
||||
@@ -82,7 +82,7 @@ describe('Login component', () => {
|
||||
loginPage.checkSignInButtonIsDisabled();
|
||||
});
|
||||
|
||||
it('[C260043] Enter Password to sign in', () => {
|
||||
it('[C260043] Should require password', () => {
|
||||
loginPage.goToLoginPage();
|
||||
loginPage.checkPasswordInactive();
|
||||
loginPage.checkSignInButtonIsDisabled();
|
||||
@@ -94,7 +94,7 @@ describe('Login component', () => {
|
||||
loginPage.checkSignInButtonIsDisabled();
|
||||
});
|
||||
|
||||
it('[C260044] Username must be at least 2 characters long', () => {
|
||||
it('[C260044] Username should be at least 2 characters long', () => {
|
||||
loginPage.goToLoginPage();
|
||||
loginPage.checkSignInButtonIsDisabled();
|
||||
loginPage.enterUsername('A');
|
||||
@@ -105,7 +105,7 @@ describe('Login component', () => {
|
||||
loginPage.clearUsername();
|
||||
});
|
||||
|
||||
it('[C260045] Login button is enabled', () => {
|
||||
it('[C260045] Should enable login button after entering a valid username and a password', () => {
|
||||
loginPage.goToLoginPage();
|
||||
loginPage.enterUsername(adminUserModel.id);
|
||||
loginPage.checkSignInButtonIsDisabled();
|
||||
@@ -115,7 +115,7 @@ describe('Login component', () => {
|
||||
loginPage.clearPassword();
|
||||
});
|
||||
|
||||
it('[C260046] You have entered an invalid username or password', () => {
|
||||
it('[C260046] Should NOT be possible to login with an invalid username/password', () => {
|
||||
loginPage.goToLoginPage();
|
||||
loginPage.checkSignInButtonIsDisabled();
|
||||
loginPage.enterUsername('test');
|
||||
@@ -127,7 +127,7 @@ describe('Login component', () => {
|
||||
loginPage.clearPassword();
|
||||
});
|
||||
|
||||
it('[C260047] Password field is crypted', () => {
|
||||
it('[C260047] Password should be crypted', () => {
|
||||
loginPage.goToLoginPage();
|
||||
loginPage.checkSignInButtonIsDisabled();
|
||||
loginPage.enterPassword('test');
|
||||
@@ -138,7 +138,7 @@ describe('Login component', () => {
|
||||
loginPage.clearPassword();
|
||||
});
|
||||
|
||||
it('[C260048] Remember Need Help? and Register are displayed and hidden', () => {
|
||||
it('[C260048] Should be possible to enable/disable login footer', () => {
|
||||
loginPage.goToLoginPage();
|
||||
loginPage.enableFooter();
|
||||
loginPage.checkRememberIsDisplayed();
|
||||
@@ -150,7 +150,7 @@ describe('Login component', () => {
|
||||
loginPage.checkRegisterIsNotDisplayed();
|
||||
});
|
||||
|
||||
it('[C260049] Login to Process Services with Content Services disabled', () => {
|
||||
it('[C260049] Should be possible to login to Process Services with Content Services disabled', () => {
|
||||
loginPage.goToLoginPage();
|
||||
loginPage.checkSignInButtonIsDisabled();
|
||||
settingsPage.setProviderBpm();
|
||||
@@ -161,7 +161,7 @@ describe('Login component', () => {
|
||||
loginPage.waitForElements();
|
||||
});
|
||||
|
||||
it('[C260050] Login to Content Services with Process Services disabled', () => {
|
||||
it('[C260050] Should be possible to login to Content Services with Process Services disabled', () => {
|
||||
loginPage.goToLoginPage();
|
||||
loginPage.checkSignInButtonIsDisabled();
|
||||
settingsPage.setProviderEcm();
|
||||
@@ -172,7 +172,7 @@ describe('Login component', () => {
|
||||
loginPage.waitForElements();
|
||||
});
|
||||
|
||||
it('[C260051] Able to login to both Content Services and Process Services', () => {
|
||||
it('[C260051] Should be able to login to both Content Services and Process Services', () => {
|
||||
settingsPage.setProviderEcmBpm();
|
||||
loginPage.checkSignInButtonIsDisabled();
|
||||
settingsPage.setProviderEcmBpm();
|
||||
@@ -230,7 +230,7 @@ describe('Login component', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('[C276746] Login with two different users', () => {
|
||||
it('[C276746] Should display the right information in user-info when a different users logs in', () => {
|
||||
loginPage.loginToContentServicesUsingUserModel(userA);
|
||||
navigationBarPage.clickUserProfile();
|
||||
expect(userInfoDialog.getContentHeaderTitle()).toEqual(userA.firstName + ' ' + userA.lastName);
|
||||
|
@@ -77,7 +77,7 @@ describe('Pagination - returns to previous page when current is empty', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C274710] returns to previous page when current is empty', () => {
|
||||
it('[C274710] Should redirect to previous page when current is emptied', () => {
|
||||
contentServicesPage.navigateToFolder(folderModel.name);
|
||||
contentServicesPage.checkAcsContainer();
|
||||
contentServicesPage.waitForTableBody();
|
||||
|
@@ -47,7 +47,7 @@ describe('Theming component', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
xit('Theming component', () => {
|
||||
xit('Should display "Show password" icon in high contrast when a dark theme is selected', () => {
|
||||
expect(loginPage.getShowPasswordIconColor()).toEqual(CONSTANTS.THEMING.DEFAULT_PASSWORD_ICON_COLOR);
|
||||
expect(loginPage.getSignInButtonColor()).toEqual(CONSTANTS.THEMING.DEFAULT_LOGIN_BUTTON_COLOR);
|
||||
expect(loginPage.getBackgroundColor()).toEqual(CONSTANTS.THEMING.DEFAULT_BACKGROUND_COLOR);
|
||||
|
@@ -30,6 +30,7 @@ import resources = require('../util/resources');
|
||||
|
||||
import AlfrescoApi = require('alfresco-js-api-node');
|
||||
import { UsersActions } from '../actions/users.actions';
|
||||
import { browser } from 'protractor';
|
||||
|
||||
describe('User Info component', () => {
|
||||
|
||||
@@ -73,7 +74,7 @@ describe('User Info component', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C260111] Enable Process Services and Content Services ', () => {
|
||||
it('[C260111] Should display UserInfo when Process Services and Content Services are enabled', () => {
|
||||
loginPage.goToLoginPage();
|
||||
settingsPage.setProviderEcmBpm();
|
||||
loginPage.login(contentUserModel.id, contentUserModel.password);
|
||||
@@ -109,7 +110,7 @@ describe('User Info component', () => {
|
||||
userInfoDialog.closeUserProfile();
|
||||
});
|
||||
|
||||
it('[C260113] Enable Content Services and disable Process Services ', () => {
|
||||
it('[C260113] Should display UserInfo when Content Services is enabled and Process Services is disabled', () => {
|
||||
loginPage.goToLoginPage();
|
||||
settingsPage.setProviderEcm();
|
||||
loginPage.login(contentUserModel.id, contentUserModel.password);
|
||||
@@ -128,7 +129,7 @@ describe('User Info component', () => {
|
||||
userInfoDialog.closeUserProfile();
|
||||
});
|
||||
|
||||
it('[C260115] Enable Process Services and disable Content Services ', () => {
|
||||
it('[C260115] Should display UserInfo when Process Services is enabled and Content Services is disabled', () => {
|
||||
loginPage.goToLoginPage();
|
||||
settingsPage.setProviderBpm();
|
||||
loginPage.login(processUserModel.email, processUserModel.password);
|
||||
@@ -147,7 +148,7 @@ describe('User Info component', () => {
|
||||
userInfoDialog.closeUserProfile();
|
||||
});
|
||||
|
||||
it('[C260117] Enable Process Services and Content Services ', async(done) => {
|
||||
it('[C260117] Should display UserInfo with profile image uploaded in ACS', async(done) => {
|
||||
browser.controlFlow().execute(async() => {
|
||||
await PeopleAPI.updateAvatarViaAPI(contentUserModel, acsAvatarFileModel, '-me-');
|
||||
await PeopleAPI.getAvatarViaAPI(4, contentUserModel, '-me-', function (result) {});
|
||||
@@ -165,7 +166,7 @@ describe('User Info component', () => {
|
||||
done();
|
||||
});
|
||||
|
||||
it('[C260118] The profile picture is changed from APS', async () => {
|
||||
it('[C260118] Should display UserInfo with profile image uploaded in APS', async () => {
|
||||
let users = new UsersActions();
|
||||
await this.alfrescoJsApi.login(contentUserModel.email, contentUserModel.password);
|
||||
await users.changeProfilePictureAps(this.alfrescoJsApi, apsAvatarFileModel.getLocation());
|
||||
@@ -181,7 +182,7 @@ describe('User Info component', () => {
|
||||
userInfoDialog.closeUserProfile();
|
||||
});
|
||||
|
||||
it('[C260120] Delete the profile picture from ACS', () => {
|
||||
it('[C260120] Should not display profile image in UserInfo when deleted in ACS', () => {
|
||||
PeopleAPI.deleteAvatarViaAPI(contentUserModel, '-me-');
|
||||
|
||||
loginPage.goToLoginPage();
|
||||
|
Reference in New Issue
Block a user