mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-31 17:38:48 +00:00
[ADF-3761]Add auto tests for task filter cloud (#3994)
* Added first test * Implemented created standalone task call. * no message * Implement start task * Added claim, complete task calls. Added e2e tests for task filters. * Fix lint errors * Fix spelling * Modified the name of a method. * Modified appListCloudComponent page
This commit is contained in:
committed by
Eugenio Romano
parent
74851ac651
commit
776d25820b
@@ -19,6 +19,7 @@ import Util = require('../../util/util');
|
||||
import TestConfig = require('../../test.config');
|
||||
import { element, by } from 'protractor';
|
||||
import { ProcessServicesPage } from './process_services/processServicesPage';
|
||||
import { AppListCloudComponent } from './process_cloud/appListCloudComponent';
|
||||
|
||||
export class NavigationBarPage {
|
||||
|
||||
@@ -26,7 +27,7 @@ export class NavigationBarPage {
|
||||
taskListButton = element(by.css("a[data-automation-id='Task List']"));
|
||||
configEditorButton = element(by.css('a[data-automation-id="Configuration Editor"]'));
|
||||
processServicesButton = element(by.css('a[data-automation-id="Process Services"]'));
|
||||
processCloudButton = element(by.css('a[data-automation-id="Process Cloud"]'));
|
||||
processServicesCloudButton = element(by.css('a[data-automation-id="Process Cloud"]'));
|
||||
loginButton = element(by.css('a[data-automation-id="Login"]'));
|
||||
trashcanButton = element(by.css('a[data-automation-id="Trashcan"]'));
|
||||
userProfileButton = element(by.css('button[data-automation-id="adf-user-profile"]'));
|
||||
@@ -50,12 +51,6 @@ export class NavigationBarPage {
|
||||
this.taskListButton.click();
|
||||
}
|
||||
|
||||
clickProcessCloudButton() {
|
||||
Util.waitUntilElementIsVisible(this.processCloudButton);
|
||||
this.processCloudButton.click();
|
||||
|
||||
}
|
||||
|
||||
clickConfigEditorButton() {
|
||||
Util.waitUntilElementIsVisible(this.configEditorButton);
|
||||
this.configEditorButton.click();
|
||||
@@ -67,6 +62,12 @@ export class NavigationBarPage {
|
||||
return new ProcessServicesPage();
|
||||
}
|
||||
|
||||
navigateToProcessServicesCloudPage() {
|
||||
Util.waitUntilElementIsVisible(this.processServicesCloudButton);
|
||||
this.processServicesCloudButton.click();
|
||||
return new AppListCloudComponent();
|
||||
}
|
||||
|
||||
clickLoginButton() {
|
||||
Util.waitUntilElementIsVisible(this.loginButton);
|
||||
this.loginButton.click();
|
||||
@@ -171,6 +172,6 @@ export class NavigationBarPage {
|
||||
}
|
||||
|
||||
checkContentServicesButtonIsDisplayed() {
|
||||
Util.waitUntilElementIsVisible(contentServicesButton);
|
||||
Util.waitUntilElementIsVisible(this.contentServicesButton);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user