[ADF-4166] move app-list-cloud.page to adf-testing (#4404)

* in progress

* moved UserInfoDialogPage, AppListCloudPage, LoginSSOPage and TabsPage. ADF-4166

* moved UserInfoDialogPage, AppListCloudPage, LoginSSOPage and TabsPage. ADF-4166

* linting fixes

* crc's

* crc's

* added adf-testing to package.json file

* fix for failing unit tests

* fixes

* test failure fixes

* test failure fixes

* reverted ot old location pages/adf/navigationBarPage

* added the testing variable to affected-libs file and changed the version to 3.1.0-beta5 and added the missing adf-content-services dependency.

* Fix the material export

* Remove the reference to the tse2econfig not allowed

* fix failing test

* Update user-info.page.ts
This commit is contained in:
gmandakini
2019-03-12 10:00:09 +00:00
committed by Eugenio Romano
parent 4feb8c3f95
commit 285e56e9fb
35 changed files with 243 additions and 353 deletions

View File

@@ -22,7 +22,7 @@ import { ContentServicesPage } from '../../pages/adf/contentServicesPage';
import { ProcessServicesPage } from '../../pages/adf/process-services/processServicesPage';
import { NavigationBarPage } from '../../pages/adf/navigationBarPage';
import { UserInfoDialog } from '../../pages/adf/dialog/userInfoDialog';
import { UserInfoPage } from '@alfresco/adf-testing';
import TestConfig = require('../../test.config');
import { AcsUserModel } from '../../models/ACS/acsUserModel';
@@ -37,7 +37,7 @@ describe('Login component', () => {
let settingsPage = new SettingsPage();
let processServicesPage = new ProcessServicesPage();
let navigationBarPage = new NavigationBarPage();
let userInfoDialog = new UserInfoDialog();
let userInfoPage = new UserInfoPage();
let contentServicesPage = new ContentServicesPage();
let loginPage = new LoginPage();
let adminUserModel = new AcsUserModel({
@@ -74,14 +74,14 @@ describe('Login component', () => {
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);
expect(userInfoDialog.getContentEmail()).toEqual(userA.email);
userInfoPage.clickUserProfile();
expect(userInfoPage.getContentHeaderTitle()).toEqual(userA.firstName + ' ' + userA.lastName);
expect(userInfoPage.getContentEmail()).toEqual(userA.email);
loginPage.loginToContentServicesUsingUserModel(userB);
navigationBarPage.clickUserProfile();
expect(userInfoDialog.getContentHeaderTitle()).toEqual(userB.firstName + ' ' + userB.lastName);
expect(userInfoDialog.getContentEmail()).toEqual(userB.email);
userInfoPage.clickUserProfile();
expect(userInfoPage.getContentHeaderTitle()).toEqual(userB.firstName + ' ' + userB.lastName);
expect(userInfoPage.getContentEmail()).toEqual(userB.email);
});
it('[C260036] Should require username', () => {