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
@@ -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);
|
||||
|
Reference in New Issue
Block a user