mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2026-09-09 18:03:21 +00:00
Added a new LocalStorageUtil and using the setConfigMethod to set the local storage variables (#4575)
* added a new LocalStorageUtil and using the setConfigMethod to set the localstorage variables, instead of using hte settings ui page. * linting fix * fixing import paths * update new path LocalStorageUtil * fix problems after rebase * fix async loadin and clear * local storage fix * fix lint * fix cs tests * fix tag navigation and rename file appNavigation to processTabNavigation * fix lint * fix process test * fix lint Signed-off-by: Eugenio Romano <eugenio.romano@alfresco.com> * fix start process cloud * inc timeout
This commit is contained in:
committed by
Eugenio Romano
parent
97ad54a4f8
commit
e85b57876e
@@ -52,6 +52,12 @@ export class NavigationBarPage {
|
||||
settingsButton = element(by.css('a[data-automation-id="Settings"]'));
|
||||
peopleGroupCloudButton = element(by.css('button[data-automation-id="People/Group Cloud"]'));
|
||||
aboutButton = element(by.css('a[data-automation-id="About"]'));
|
||||
tagButton = element.all(by.css('a[data-automation-id="Tag"]'));
|
||||
|
||||
clickTagButton() {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.tagButton);
|
||||
this.tagButton.click();
|
||||
}
|
||||
|
||||
navigateToDatatable() {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.dataTableButton);
|
||||
|
||||
+4
-9
@@ -18,10 +18,9 @@
|
||||
import { BrowserVisibility } from '@alfresco/adf-testing';
|
||||
import { element, by, browser } from 'protractor';
|
||||
|
||||
export class AppNavigationBarPage {
|
||||
export class ProcessServiceTabBarPage {
|
||||
|
||||
tasksButton = element.all(by.cssContainingText('div[class*="mat-tab-label"] .mat-tab-labels div', 'Tasks')).first();
|
||||
tagButton = element.all(by.css('[data-automation-id="Tag"]'));
|
||||
processButton = element.all(by.cssContainingText('div[class*="mat-tab-label"] .mat-tab-labels div', 'Process')).first();
|
||||
reportsButton = element.all(by.cssContainingText('div[class*="mat-tab-label"] .mat-tab-labels div', 'Reports')).first();
|
||||
settingsButton = element.all(by.cssContainingText('div[class*="mat-tab-label"] .mat-tab-labels div', 'Settings')).first();
|
||||
@@ -30,21 +29,17 @@ export class AppNavigationBarPage {
|
||||
clickTasksButton() {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.tasksButton);
|
||||
this.tasksButton.click();
|
||||
return browser.sleep(400);
|
||||
return browser.sleep(600);
|
||||
}
|
||||
|
||||
clickProcessButton() {
|
||||
this.processButton.click();
|
||||
return browser.sleep(400);
|
||||
}
|
||||
|
||||
clickTagButton() {
|
||||
return this.tagButton.click();
|
||||
return browser.sleep(600);
|
||||
}
|
||||
|
||||
clickSettingsButton() {
|
||||
this.settingsButton.click();
|
||||
return browser.sleep(400);
|
||||
return browser.sleep(600);
|
||||
}
|
||||
|
||||
clickReportsButton() {
|
||||
@@ -15,7 +15,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { AppNavigationBarPage } from './appNavigationBarPage';
|
||||
import { ProcessServiceTabBarPage } from './processServiceTabBarPage';
|
||||
|
||||
import { element, by } from 'protractor';
|
||||
import { BrowserVisibility } from '@alfresco/adf-testing';
|
||||
@@ -35,13 +35,13 @@ export class ProcessServicesPage {
|
||||
const app = element(by.css('mat-card[title="' + applicationName + '"]'));
|
||||
BrowserVisibility.waitUntilElementIsVisible(app);
|
||||
app.click();
|
||||
return new AppNavigationBarPage();
|
||||
return new ProcessServiceTabBarPage();
|
||||
}
|
||||
|
||||
goToTaskApp() {
|
||||
BrowserVisibility.waitUntilElementIsVisible(this.taskApp);
|
||||
this.taskApp.click();
|
||||
return new AppNavigationBarPage();
|
||||
return new ProcessServiceTabBarPage();
|
||||
}
|
||||
|
||||
getAppIconType(applicationName) {
|
||||
|
||||
Reference in New Issue
Block a user