[ACA-4100] use ADF user info component (#1762)

* use adf user info

* delete old unit test

* remove e2e

* fix lint
This commit is contained in:
Denys Vuika
2020-10-28 12:25:21 +00:00
committed by GitHub
parent 328cd8ccdc
commit 7c894b250f
15 changed files with 4 additions and 553 deletions

View File

@@ -24,7 +24,7 @@
*/
import { browser } from 'protractor';
import { AdminActions, APP_ROUTES, LoginPage, BrowsingPage, Utils, navigate } from '@alfresco/aca-testing-shared';
import { AdminActions, APP_ROUTES, LoginPage, Utils, navigate } from '@alfresco/aca-testing-shared';
describe('Login', () => {
const loginPage = new LoginPage();
@@ -101,14 +101,6 @@ describe('Login', () => {
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);
});
it(`[C213108] displays user's name in header`, async () => {
const { userInfo } = new BrowsingPage(APP_ROUTES.PERSONAL_FILES).header;
const { username, firstName, lastName } = johnDoe;
await loginPage.loginWith(username);
expect(await userInfo.fullName.getText()).toEqual(`${firstName} ${lastName}`);
});
it(`[C213096] logs in with user having username containing "@"`, async () => {
await loginPage.loginWith(testUser);
expect(await browser.getCurrentUrl()).toContain(APP_ROUTES.PERSONAL_FILES);