[ADF-4682]The Date is not saved correctly on Process-services form (#4940)

* test added to check the date saved in the process form in APS1

* C261039 e2e test added.
This commit is contained in:
Geeta Mandakini Ayyalasomayajula
2019-07-16 16:57:59 +01:00
committed by Eugenio Romano
parent 1abb9bfc89
commit 677de028a2
7 changed files with 93 additions and 4 deletions

View File

@@ -41,6 +41,10 @@ export class DateWidget {
return this.formFields.setValueInInputById(fieldId, value);
}
getDateInput(fieldId) {
return this.formFields.getFieldValue(fieldId);
}
clearDateInput(fieldId) {
const dateInput = element(by.id(fieldId));
BrowserVisibility.waitUntilElementIsVisible(dateInput);

View File

@@ -16,3 +16,4 @@
*/
export * from './form-fields.page';
export * from './start-process-dialog.page';

View File

@@ -0,0 +1,43 @@
/*!
* @license
* Copyright 2019 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 { BrowserVisibility } from '../../core/utils/browser-visibility';
import { by, element } from 'protractor';
import { BrowserActions } from '../../core/utils/browser-actions';
export class StartProcessDialog {
startProcessDialog = element(by.id('adf-start-process-dialog'));
title = this.startProcessDialog.element(by.css('h4.mat-dialog-title'));
closeButton = this.startProcessDialog.element(by.cssContainingText(`div.adf-start-process-dialog-actions button span`, 'Close'));
checkStartProcessDialogIsDisplayed() {
return BrowserVisibility.waitUntilElementIsVisible(this.startProcessDialog);
}
getTitle() {
return BrowserActions.getText(this.title);
}
clickCloseButton() {
return BrowserActions.click(this.closeButton);
}
checkStartProcessDialogIsNotDisplayed() {
return BrowserVisibility.waitUntilElementIsNotVisible(this.startProcessDialog);
}
}