mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user