mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
fix import navigation and processlist to ts
This commit is contained in:
71
e2e/pages/adf/process_services/processListPage.ts
Normal file
71
e2e/pages/adf/process_services/processListPage.ts
Normal file
@@ -0,0 +1,71 @@
|
||||
/*!
|
||||
* @license
|
||||
* Copyright 2016 Alfresco Software, Ltd.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import Util = require('../../../util/util');
|
||||
import { NavigationBarPage } from '../navigationBarPage';
|
||||
|
||||
export class ProcessListPage {
|
||||
|
||||
processListIcon = element(by.css('mat-icon[class="adf-empty-content__icon mat-icon material-icons"]'));
|
||||
processListTitle = element(by.css('p[class="adf-empty-content__title"]'));
|
||||
processListSubtitle = element(by.css('p[class="adf-empty-content__subtitle"]'));
|
||||
processDetailsMessage = element(by.css('adf-process-instance-details div[class="ng-star-inserted"]'));
|
||||
openProcessDropdownElement = element(by.id('adf-select-process-dropdown'));
|
||||
selectProcessDropdownElement = element.all(by.css('span[class="mat-option-text"]'));
|
||||
startProcessButton = element(by.css('button[data-automation-id="btn-start"]'));
|
||||
|
||||
goToProcessList() {
|
||||
let navigationBarPage = new NavigationBarPage();
|
||||
navigationBarPage.clickProcessServicesButton();
|
||||
Util.waitUntilElementIsVisible(pageLoaded);
|
||||
}
|
||||
|
||||
checkProcessListTitleIsDisplayed() {
|
||||
Util.waitUntilElementIsVisible(this.processListTitle);
|
||||
return this.processListTitle.getText();
|
||||
}
|
||||
|
||||
checkProcessDetailsMessagee() {
|
||||
Util.waitUntilElementIsVisible(this.processListTitle);
|
||||
return this.processDetailsMessage.getText();
|
||||
}
|
||||
|
||||
openProcessDropdown() {
|
||||
Util.waitUntilElementIsVisible(this.openProcessDropdownElement);
|
||||
return this.openProcessDropdownElement.click();
|
||||
}
|
||||
|
||||
selectProcessDropdown(index) {
|
||||
Util.waitUntilElementIsVisible(this.selectProcessDropdownElement);
|
||||
return this.selectProcessDropdownElement.get(index).click();
|
||||
}
|
||||
|
||||
startProcess() {
|
||||
Util.waitUntilElementIsVisible(this.startProcessButton);
|
||||
return this.startProcessButton.click();
|
||||
}
|
||||
|
||||
checkProcessListIcon() {
|
||||
Util.waitUntilElementIsVisible(this.processListIcon);
|
||||
return this.processListIcon.getText();
|
||||
}
|
||||
|
||||
checkProcessListSubtitle() {
|
||||
Util.waitUntilElementIsVisible(this.processListSubtitle);
|
||||
return this.processListSubtitle.getText();
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user