mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ADF-3543] Start Process Component for APS 2 (#4105)
* [ADF-3543] Start Process Component for APS 2 * [ADF-3543] Fix e2e tests * [ADF-3543] Process filter data automation id with process key * [ADF-3543] Fix Process Services e2e tests * [ADF-3543] Fix Search e2e tests * [ADF-3543] Fix Search e2e tests
This commit is contained in:
committed by
Maurizio Vitale
parent
dd25467a98
commit
2acd1b4e26
@@ -24,9 +24,9 @@ import { element, by } from 'protractor';
|
||||
|
||||
export class ProcessCloudDemoPage {
|
||||
|
||||
allProcesses = element(by.css('span[data-automation-id="ADF_CLOUD_PROCESS_FILTERS.ALL_PROCESSES_filter"]'));
|
||||
runningProcesses = element(by.css('span[data-automation-id="ADF_CLOUD_PROCESS_FILTERS.RUNNING_PROCESSES_filter"]'));
|
||||
completedProcesses = element(by.css('span[data-automation-id="ADF_CLOUD_PROCESS_FILTERS.COMPLETED_PROCESSES_filter"]'));
|
||||
allProcesses = element(by.css('span[data-automation-id="all-processes_filter"]'));
|
||||
runningProcesses = element(by.css('span[data-automation-id="running-processes_filter"]'));
|
||||
completedProcesses = element(by.css('span[data-automation-id="completed-processes_filter"]'));
|
||||
activeFilter = element(by.css("mat-list-item[class*='active'] span"));
|
||||
processFilters = element(by.css("mat-expansion-panel[data-automation-id='Process Filters']"));
|
||||
|
||||
|
@@ -62,10 +62,6 @@ export class DatePickerPage {
|
||||
return `${('0' + date.getDate()).slice(-2)}-${this.months[date.getMonth()]}-${date.getFullYear().toString().substr(-2)}`;
|
||||
}
|
||||
|
||||
convertDateToNewFormat(date) { // Format : mm-dd-yy
|
||||
return `${date.getMonth() + 1}-${('0' + date.getDate()).slice(-2)}-${date.getFullYear().toString().substr(-2)}`;
|
||||
}
|
||||
|
||||
selectTodayDate() {
|
||||
this.checkDatePickerIsDisplayed();
|
||||
let todayDate = element(by.css('.mat-calendar-body-today'));
|
||||
|
@@ -29,6 +29,7 @@ import TestConfig = require('../../test.config');
|
||||
|
||||
import AlfrescoApi = require('alfresco-js-api-node');
|
||||
import { browser } from 'protractor';
|
||||
import moment from 'moment-es6';
|
||||
|
||||
describe('Search Date Range Filter', () => {
|
||||
|
||||
@@ -199,6 +200,7 @@ describe('Search Date Range Filter', () => {
|
||||
describe('configuration change', () => {
|
||||
|
||||
let jsonFile;
|
||||
let dateFormat = 'MM-DD-YY';
|
||||
|
||||
beforeAll(() => {
|
||||
let searchConfiguration = new SearchConfiguration();
|
||||
@@ -206,7 +208,7 @@ describe('Search Date Range Filter', () => {
|
||||
});
|
||||
|
||||
it('[C277117] Should be able to change date format', () => {
|
||||
jsonFile.categories[4].component.settings.dateFormat = 'MM-DD-YY';
|
||||
jsonFile.categories[4].component.settings.dateFormat = dateFormat;
|
||||
|
||||
navigationBar.clickConfigEditorButton();
|
||||
configEditor.clickSearchConfiguration();
|
||||
@@ -221,7 +223,7 @@ describe('Search Date Range Filter', () => {
|
||||
dateRangeFilter.checkFromFieldIsDisplayed()
|
||||
.openFromDatePicker();
|
||||
|
||||
let todayDate = datePicker.convertDateToNewFormat(new Date());
|
||||
let todayDate = moment().format(dateFormat);
|
||||
datePicker.selectTodayDate();
|
||||
|
||||
browser.controlFlow().execute(async () => {
|
||||
|
Reference in New Issue
Block a user