mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-10-08 14:51:32 +00:00
[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:
committed by
Eugenio Romano
parent
4feb8c3f95
commit
285e56e9fb
@@ -18,7 +18,7 @@
|
||||
import { Util } from '../../util/util';
|
||||
import { browser, by, element } from 'protractor';
|
||||
import { ProcessServicesPage } from './process-services/processServicesPage';
|
||||
import { AppListCloudComponent } from './process-cloud/appListCloudComponent';
|
||||
import { AppListCloudPage } from '@alfresco/adf-testing';
|
||||
import TestConfig = require('../../test.config');
|
||||
import { PeopleGroupCloudComponentPage } from './demo-shell/process-services/peopleGroupCloudComponentPage';
|
||||
|
||||
@@ -33,7 +33,8 @@ export class NavigationBarPage {
|
||||
loginButton = element(by.css('a[data-automation-id="Login"]'));
|
||||
trashcanButton = element(by.css('a[data-automation-id="Trashcan"]'));
|
||||
overlayViewerButton = element(by.css('a[data-automation-id="Overlay Viewer"]'));
|
||||
userProfileButton = element(by.css('button[data-automation-id="adf-user-profile"]'));
|
||||
themeButton = element(by.css('button[data-automation-id="theme menu"]'));
|
||||
themeMenuContent = element(by.css('div[class*="mat-menu-panel"]'));
|
||||
logoutButton = element(by.css('a[adf-logout]'));
|
||||
cardViewButton = element(by.cssContainingText('.adf-sidenav-menu-label', 'CardView'));
|
||||
languageMenuButton = element(by.css('button[data-automation-id="language-menu-button"]'));
|
||||
@@ -77,7 +78,7 @@ export class NavigationBarPage {
|
||||
navigateToProcessServicesCloudPage() {
|
||||
Util.waitUntilElementIsVisible(this.processServicesCloudButton);
|
||||
this.processServicesCloudButton.click();
|
||||
return new AppListCloudComponent();
|
||||
return new AppListCloudPage();
|
||||
}
|
||||
|
||||
navigateToPeopleGroupCloudPage() {
|
||||
@@ -89,7 +90,7 @@ export class NavigationBarPage {
|
||||
navigateToSettingsPage() {
|
||||
Util.waitUntilElementIsVisible(this.settingsButton);
|
||||
this.settingsButton.click();
|
||||
return new AppListCloudComponent();
|
||||
return new AppListCloudPage();
|
||||
}
|
||||
|
||||
clickLoginButton() {
|
||||
@@ -108,9 +109,17 @@ export class NavigationBarPage {
|
||||
return this;
|
||||
}
|
||||
|
||||
clickUserProfile() {
|
||||
Util.waitUntilElementIsVisible(this.userProfileButton);
|
||||
this.userProfileButton.click();
|
||||
clickThemeButton() {
|
||||
Util.waitUntilElementIsVisible(this.themeButton);
|
||||
this.themeButton.click();
|
||||
Util.waitUntilElementIsVisible(this.themeMenuContent);
|
||||
}
|
||||
|
||||
clickOnSpecificThemeButton(themeName) {
|
||||
let themeElement = element(by.css(`button[data-automation-id="${themeName}"]`));
|
||||
Util.waitUntilElementIsVisible(themeElement);
|
||||
Util.waitUntilElementIsClickable(themeElement);
|
||||
themeElement.click();
|
||||
}
|
||||
|
||||
clickLogoutButton() {
|
||||
@@ -188,6 +197,11 @@ export class NavigationBarPage {
|
||||
Util.waitUntilElementIsVisible(logoTooltip);
|
||||
}
|
||||
|
||||
openViewer(nodeId) {
|
||||
browser.get(TestConfig.adf.url + `/files(overlay:files/${nodeId}/view`);
|
||||
return this;
|
||||
}
|
||||
|
||||
goToSite(site) {
|
||||
browser.get(TestConfig.adf.url + `/files/${site.entry.guid}/display/list`);
|
||||
}
|
||||
|
Reference in New Issue
Block a user