mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2026-09-09 18:02:54 +00:00
[ACA-1653] add testrail ids to e2e tests (#557)
* add testrail ids - WIP * add TestRail ids to tooltips tests * added more TestRail ids * separate tests from Create folder to correct sub-suites * add more TestRail ids to automated tests * added more TestRail ids * added more ids and some missing tests * combined delete and undo delete tests and added TestRail ids * decrease protractor timeouts to try and speed up the execution when tests fail * disable some tests that are incomplete in order to match numbers from TestRail
This commit is contained in:
committed by
Denys Vuika
parent
f91608fe78
commit
b8cc5422f4
@@ -86,14 +86,14 @@ describe('Login', () => {
|
||||
loginPage.load().then(done);
|
||||
});
|
||||
|
||||
it('login page default values', () => {
|
||||
it('login page layout - [C213089]', () => {
|
||||
expect(loginPage.login.usernameInput.isEnabled()).toBe(true, 'username input is not enabled');
|
||||
expect(loginPage.login.passwordInput.isEnabled()).toBe(true, 'password input is not enabled');
|
||||
expect(loginPage.login.submitButton.isEnabled()).toBe(false, 'SIGN IN button is enabled');
|
||||
expect(loginPage.login.getPasswordVisibility()).toBe(false, 'Password is not hidden by default');
|
||||
});
|
||||
|
||||
it('change password visibility', () => {
|
||||
it('change password visibility - [C213091]', () => {
|
||||
loginPage.login.enterPassword('some password');
|
||||
expect(loginPage.login.isPasswordShown()).toBe(false, 'password is visible');
|
||||
loginPage.login.passwordVisibility.click()
|
||||
@@ -105,7 +105,7 @@ describe('Login', () => {
|
||||
});
|
||||
|
||||
describe('with valid credentials', () => {
|
||||
it('navigate to "Personal Files"', () => {
|
||||
it('navigate to "Personal Files" - [C213092]', () => {
|
||||
const { username } = johnDoe;
|
||||
|
||||
loginPage.loginWith(username)
|
||||
@@ -114,7 +114,7 @@ describe('Login', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it(`displays user's name in header`, () => {
|
||||
it(`displays user's name in header - [C213108]`, () => {
|
||||
const { userInfo } = new BrowsingPage(APP_ROUTES.PERSONAL_FILES).header;
|
||||
const { username, firstName, lastName } = johnDoe;
|
||||
|
||||
@@ -124,7 +124,7 @@ describe('Login', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it(`logs in with user having username containing "@"`, () => {
|
||||
it(`logs in with user having username containing "@" - [C213096]`, () => {
|
||||
loginPage
|
||||
.loginWith(testUser)
|
||||
.then(() => {
|
||||
@@ -132,7 +132,7 @@ describe('Login', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('logs in with user with non-latin characters', () => {
|
||||
it('logs in with user with non-latin characters - [C213097]', () => {
|
||||
const { username, password } = russianUser;
|
||||
|
||||
loginPage
|
||||
@@ -142,7 +142,7 @@ describe('Login', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('redirects to Home Page when navigating to the Login page while already logged in', () => {
|
||||
it('redirects to Home Page when navigating to the Login page while already logged in - [C213107]', () => {
|
||||
const { username } = johnDoe;
|
||||
|
||||
loginPage
|
||||
@@ -154,7 +154,7 @@ describe('Login', () => {
|
||||
);
|
||||
});
|
||||
|
||||
it('redirects to Personal Files when pressing browser Back while already logged in ', () => {
|
||||
it('redirects to Personal Files when pressing browser Back while already logged in - [C213109]', () => {
|
||||
const { username } = johnDoe;
|
||||
|
||||
loginPage
|
||||
@@ -165,7 +165,7 @@ describe('Login', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('user is able to login after changing his password', () => {
|
||||
it('user is able to login after changing his password - [C213104]', () => {
|
||||
loginPage.loginWith(testUser2.username, testUser2.password)
|
||||
.then(() => logoutPage.load())
|
||||
.then(() => peopleApi.changePassword(testUser2.username, newPassword))
|
||||
@@ -184,21 +184,17 @@ describe('Login', () => {
|
||||
loginPage.load().then(done);
|
||||
});
|
||||
|
||||
it('disabled submit button when no credentials are entered', () => {
|
||||
expect(submitButton.isEnabled()).toBe(false);
|
||||
});
|
||||
|
||||
it('disabled submit button when password is empty', () => {
|
||||
it('disabled submit button when password is empty - [C280072]', () => {
|
||||
loginComponent.enterUsername('any-username');
|
||||
expect(submitButton.isEnabled()).toBe(false);
|
||||
});
|
||||
|
||||
it('disabled submit button when username is empty', () => {
|
||||
it('disabled submit button when username is empty - [C280070]', () => {
|
||||
loginPage.login.enterPassword('any-password');
|
||||
expect(submitButton.isEnabled()).toBe(false);
|
||||
});
|
||||
|
||||
it('shows error when entering nonexistent user', () => {
|
||||
it('shows error when entering nonexistent user - [C213093]', () => {
|
||||
loginPage
|
||||
.tryLoginWith('nonexistent-user', 'any-password')
|
||||
.then(() => {
|
||||
@@ -208,7 +204,7 @@ describe('Login', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('shows error when entering invalid password', () => {
|
||||
it('shows error when entering invalid password - [C280071]', () => {
|
||||
const { username } = johnDoe;
|
||||
|
||||
loginPage
|
||||
@@ -220,14 +216,14 @@ describe('Login', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('unauthenticated user is redirected to Login page', () => {
|
||||
it('unauthenticated user is redirected to Login page - [C213106]', () => {
|
||||
browser.get(APP_ROUTES.PERSONAL_FILES)
|
||||
.then(() => {
|
||||
expect(browser.getCurrentUrl()).toContain(APP_ROUTES.LOGIN);
|
||||
});
|
||||
});
|
||||
|
||||
it('disabled user is not logged in', () => {
|
||||
it('disabled user is not logged in - [C213100]', () => {
|
||||
loginPage.tryLoginWith(disabledUser)
|
||||
.then(() => {
|
||||
expect(browser.getCurrentUrl()).toContain(APP_ROUTES.LOGIN);
|
||||
|
||||
@@ -52,19 +52,19 @@ describe('Logout', () => {
|
||||
logoutPage.load().then(done);
|
||||
});
|
||||
|
||||
it('Sign out option is available [C213143]', () => {
|
||||
it('Sign out option is available - [C213143]', () => {
|
||||
page.header.userInfo.openMenu()
|
||||
.then(() => expect(page.header.userInfo.menu.isMenuItemPresent('Sign out')).toBe(true, 'Sign out option not displayed'));
|
||||
});
|
||||
|
||||
it('redirects to Login page on sign out [C213144]', () => {
|
||||
it('redirects to Login page on sign out - [C213144]', () => {
|
||||
page.signOut()
|
||||
.then(() => {
|
||||
expect(browser.getCurrentUrl()).toContain(APP_ROUTES.LOGIN);
|
||||
});
|
||||
});
|
||||
|
||||
it('redirects to Login page when pressing browser Back after logout [C213145]', () => {
|
||||
it('redirects to Login page when pressing browser Back after logout - [C213145]', () => {
|
||||
page.signOut()
|
||||
.then(() => browser.navigate().back())
|
||||
.then(() => {
|
||||
@@ -72,7 +72,7 @@ describe('Logout', () => {
|
||||
});
|
||||
});
|
||||
|
||||
it('redirects to Login page when trying to access a part of the app after logout [C213146]', () => {
|
||||
it('redirects to Login page when trying to access a part of the app after logout - [C213146]', () => {
|
||||
page.signOut()
|
||||
.then(() => page.load('/favorites'))
|
||||
.then(() => {
|
||||
|
||||
Reference in New Issue
Block a user