[ADF-3591] spellcheck support for code (#3827)

* setup spellcheck
This commit is contained in:
Denys Vuika 2018-10-23 15:05:38 +01:00 committed by Eugenio Romano
parent 53d96679ea
commit e39a2b149b
262 changed files with 1561 additions and 1005 deletions

View File

@ -26,7 +26,9 @@ jobs:
(./scripts/update-version.sh -gnu -alpha && ././scripts/npm-build-all.sh -sb --skip-lint || exit 1;); (./scripts/update-version.sh -gnu -alpha && ././scripts/npm-build-all.sh -sb --skip-lint || exit 1;);
fi fi
- stage: Lint - stage: Lint
script: (./scripts/lint.sh) script:
- ./scripts/lint.sh
- npm run spellcheck
- stage: Unit test - stage: Unit test
env: STAGE=core env: STAGE=core
script: (./scripts/npm-build-all.sh -si -sb -t "core" --skip-lint || exit 1;); script: (./scripts/npm-build-all.sh -si -sb -t "core" --skip-lint || exit 1;);

View File

@ -69,3 +69,4 @@ All components are supported in the following browsers:
* Due to a [known issue](https://bugzilla.mozilla.org/show_bug.cgi?id=1188880) in Firefox, the Alfresco Upload Component does not currently support folder upload functionality on Firefox. * Due to a [known issue](https://bugzilla.mozilla.org/show_bug.cgi?id=1188880) in Firefox, the Alfresco Upload Component does not currently support folder upload functionality on Firefox.
See the [Browser Support](BROWSER-SUPPORT.md) article for more details. See the [Browser Support](BROWSER-SUPPORT.md) article for more details.

140
cspell.json Normal file
View File

@ -0,0 +1,140 @@
{
"version": "0.1",
"language": "en",
"words": [
"activiti",
"CSRF",
"glyphicon",
"sharedlinks",
"Redistributable",
"fullscreen",
"sidenav",
"injectable",
"truthy",
"cryptodoc",
"mysites",
"afts",
"classlist",
"folderlink",
"filelink",
"datatable",
"repo",
"snackbar",
"promisify",
"xdescribe",
"unfavorite",
"devtools",
"gitter",
"jira",
"markdownlint",
"uploader",
"nginx",
"docx",
"SOLR",
"unshare",
"validators",
"guid",
"polyfill",
"polyfills",
"jsonp",
"hammerjs",
"pdfjs",
"xpath",
"tooltip",
"tooltips",
"unindent",
"exif",
"cardview",
"webm",
"keycodes",
"adhoc",
"swimlanes",
"datepicker",
"waypoints",
"waypoint",
"hotfix",
"typeahead",
"gridster",
"Collapsable",
"rowspan",
"typeahead",
"tabindex",
"Arial",
"swsdp",
"Datetimepicker",
"mimetype",
"multiselect",
"arrowup",
"arrowdown",
"dialpad",
"backend",
"Unclaim",
"transclusion",
"transcluded",
"auditable",
"taggable",
"datarow",
"datacolumn",
"textitem",
"boolitem",
"mapitem",
"selectitem",
"keyvaluepairsitem",
"boolitem",
"baseitem",
"checkboxes",
"tasklist",
"dateitem",
"webscript",
"minlength",
"doclib",
"fullname",
"firstname",
"lastname",
"userinfo",
"qshare",
"imgpreview",
"AUTHTYPE",
"ECMHOST",
"BPMHOST",
"OAUTHCONFIG",
"CONTEXTROOTBPM",
"CONTEXTROOTECM",
"DISABLECSRF",
"printf",
"mincount",
"listgrid",
"filesize",
"Theming",
"quicktime",
"Promise",
"Examinate",
"highlightable",
"Droppable",
"UPDATEPERMISSIONS",
"Whitespaces",
"keyvaluepairs",
"datetimeitem",
"floatitem",
"intitem",
"DDTHH",
"MLTEXT",
"penta",
"BASESHAREURL",
"hardend",
"filedata"
],
"dictionaries": [
"html",
"en-gb",
"en_US",
"softwareTerms"
],
"ignorePaths": [
"lib/{content-services,core,extensions,insights,process-services}/**/*.spec.ts",
"lib/{content-services,core,extensions,insights,process-services}/**/*.mock.ts"
],
"ignoreRegExpList": [
"(\"|'|`)((?:\\\\1|(?:(?!\\1).))*)\\1"
]
}

View File

@ -15,13 +15,13 @@
* limitations under the License. * limitations under the License.
*/ */
import { MyappPage } from './app.po'; import { MyAppPage } from './app.po';
describe('myapp App', () => { describe('MyApp App', () => {
let page: MyappPage; let page: MyAppPage;
beforeEach(() => { beforeEach(() => {
page = new MyappPage(); page = new MyAppPage();
}); });
it('should display toolbar', () => { it('should display toolbar', () => {

View File

@ -17,7 +17,7 @@
import { browser, element, by } from 'protractor'; import { browser, element, by } from 'protractor';
export class MyappPage { export class MyAppPage {
navigateTo() { navigateTo() {
return browser.get('/'); return browser.get('/');
} }

View File

@ -239,6 +239,7 @@ export const appRoutes: Routes = [
}, },
// TODO: check if needed // TODO: check if needed
{ {
/* cspell:disable-next-line */
path: 'activiti/tasksnode/:id', path: 'activiti/tasksnode/:id',
component: FormNodeViewerComponent, component: FormNodeViewerComponent,
canActivate: [AuthGuardBpm] canActivate: [AuthGuardBpm]

View File

@ -48,7 +48,7 @@
<mat-icon matListIcon class="sidenav-menu-icon">{{link.icon}}</mat-icon> <mat-icon matListIcon class="sidenav-menu-icon">{{link.icon}}</mat-icon>
<div class="sidenav-menu-label" *ngIf="!isMenuMinimized()">{{link.title | translate }}</div> <div class="sidenav-menu-label" *ngIf="!isMenuMinimized()">{{link.title | translate }}</div>
</a> </a>
<a mat-list-item adf-logout [enabelRedirect]="enabelRedirect" redirectUri="/logout" <a mat-list-item adf-logout [enableRedirect]="enableRedirect" redirectUri="/logout"
class="adf-sidenav-link"> class="adf-sidenav-link">
<mat-icon matListIcon class="sidenav-menu-icon">exit_to_app</mat-icon> <mat-icon matListIcon class="sidenav-menu-icon">exit_to_app</mat-icon>
<div class="sidenav-menu-label" *ngIf="!isMenuMinimized()">Logout</div> <div class="sidenav-menu-label" *ngIf="!isMenuMinimized()">Logout</div>

View File

@ -55,6 +55,7 @@ export class AppLayoutComponent implements OnInit {
{ href: '/settings-layout', icon: 'settings', title: 'APP_LAYOUT.SETTINGS' }, { href: '/settings-layout', icon: 'settings', title: 'APP_LAYOUT.SETTINGS' },
{ href: '/config-editor', icon: 'code', title: 'APP_LAYOUT.CONFIG-EDITOR' }, { href: '/config-editor', icon: 'code', title: 'APP_LAYOUT.CONFIG-EDITOR' },
{ href: '/extendedSearch', icon: 'search', title: 'APP_LAYOUT.SEARCH' }, { href: '/extendedSearch', icon: 'search', title: 'APP_LAYOUT.SEARCH' },
/* cspell:disable-next-line */
{ href: '/overlay-viewer', icon: 'pageview', title: 'APP_LAYOUT.OVERLAY_VIEWER' }, { href: '/overlay-viewer', icon: 'pageview', title: 'APP_LAYOUT.OVERLAY_VIEWER' },
{ href: '/about', icon: 'info_outline', title: 'APP_LAYOUT.ABOUT' } { href: '/about', icon: 'info_outline', title: 'APP_LAYOUT.ABOUT' }
]; ];
@ -66,7 +67,7 @@ export class AppLayoutComponent implements OnInit {
hideSidenav = false; hideSidenav = false;
showMenu = true; showMenu = true;
enabelRedirect = true; enableRedirect = true;
color = 'primary'; color = 'primary';
title = 'APP_LAYOUT.APP_NAME'; title = 'APP_LAYOUT.APP_NAME';
logo: string; logo: string;
@ -78,7 +79,7 @@ export class AppLayoutComponent implements OnInit {
const preserveState = this.config.get('sideNav.preserveState'); const preserveState = this.config.get('sideNav.preserveState');
if (preserveState && expand) { if (preserveState && expand) {
this.expandedSidenav = (this.userpreference.get('expandedSidenav', expand.toString()) === 'true'); this.expandedSidenav = (this.userPreferences.get('expandedSidenav', expand.toString()) === 'true');
} else if (expand) { } else if (expand) {
this.expandedSidenav = expand; this.expandedSidenav = expand;
} }
@ -94,18 +95,18 @@ export class AppLayoutComponent implements OnInit {
} }
constructor( constructor(
private userpreference: UserPreferencesService, private userPreferences: UserPreferencesService,
private config: AppConfigService, private config: AppConfigService,
private alfrescoApiService: AlfrescoApiService, private alfrescoApiService: AlfrescoApiService,
private headerService: HeaderDataService) { private headerService: HeaderDataService) {
if (this.alfrescoApiService.getInstance().isOauthConfiguration()) { if (this.alfrescoApiService.getInstance().isOauthConfiguration()) {
this.enabelRedirect = false; this.enableRedirect = false;
} }
} }
setState(state) { setState(state) {
if (this.config.get('sideNav.preserveState')) { if (this.config.get('sideNav.preserveState')) {
this.userpreference.set('expandedSidenav', state); this.userPreferences.set('expandedSidenav', state);
} }
} }
} }

View File

@ -17,7 +17,7 @@
<p class="toggle"> <p class="toggle">
<mat-slide-toggle <mat-slide-toggle
id="adf-toogle-editable" id="adf-toggle-editable"
[color]="'primary'" [color]="'primary'"
(change)="toggleEditable()" (change)="toggleEditable()"
[checked]="isEditable"> [checked]="isEditable">

View File

@ -70,7 +70,7 @@
mat-icon-button mat-icon-button
data-automation-id="document-list-grid-view" data-automation-id="document-list-grid-view"
title="{{ 'DOCUMENT_LIST.TOOLBAR.CARDVIEW' | translate }}" title="{{ 'DOCUMENT_LIST.TOOLBAR.CARDVIEW' | translate }}"
(click)="toogleGalleryView()"> (click)="toggleGalleryView()">
<mat-icon *ngIf="displayMode === 'list'" matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.CARDVIEW' | translate }}">view_comfy</mat-icon> <mat-icon *ngIf="displayMode === 'list'" matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.CARDVIEW' | translate }}">view_comfy</mat-icon>
<mat-icon *ngIf="displayMode === 'gallery'" matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.LISTVIEW' | translate }}">list</mat-icon> <mat-icon *ngIf="displayMode === 'gallery'" matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.LISTVIEW' | translate }}">list</mat-icon>
</button> </button>
@ -155,7 +155,7 @@
</button> </button>
<mat-menu #menu="matMenu"> <mat-menu #menu="matMenu">
<button mat-menu-item <button mat-menu-item
(click)="toogleGalleryView()"> (click)="toggleGalleryView()">
<mat-icon *ngIf="displayMode === 'list'" >view_comfy</mat-icon> <mat-icon *ngIf="displayMode === 'list'" >view_comfy</mat-icon>
<mat-icon *ngIf="displayMode === 'gallery'">list</mat-icon> <mat-icon *ngIf="displayMode === 'gallery'">list</mat-icon>
<span>{{ 'DOCUMENT_LIST.TOOLBAR.CARDVIEW' | translate }}</span> <span>{{ 'DOCUMENT_LIST.TOOLBAR.CARDVIEW' | translate }}</span>
@ -374,7 +374,7 @@
icon="play_arrow" icon="play_arrow"
target="document" target="document"
title="DOCUMENT_LIST.ACTIONS.DOCUMENT.PROCESS_ACTION" title="DOCUMENT_LIST.ACTIONS.DOCUMENT.PROCESS_ACTION"
(execute)="startProcesAction($event)"> (execute)="startProcessAction($event)">
</content-action> </content-action>
<content-action <content-action
target="document" target="document"

View File

@ -181,7 +181,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
permissionsStyle: PermissionStyleModel[] = []; permissionsStyle: PermissionStyleModel[] = [];
infiniteScrolling: boolean; infiniteScrolling: boolean;
currentSiteid = '';
warnOnMultipleUploads = false; warnOnMultipleUploads = false;
thumbnails = false; thumbnails = false;
enableCustomPermissionMessage = false; enableCustomPermissionMessage = false;
@ -335,7 +334,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
} }
handlePermissionError(event: any) { handlePermissionError(event: any) {
this.translateService.get('PERMISSON.LACKOF', { this.translateService.get('PERMISSION.LACKOF', {
permission: event.permission, permission: event.permission,
action: event.action, action: event.action,
type: event.type type: event.type
@ -476,7 +475,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
return false; return false;
} }
startProcesAction($event) { startProcessAction($event) {
this.formValues['file'] = $event.value.entry; this.formValues['file'] = $event.value.entry;
const dialogRef = this.dialog.open(SelectAppsDialogComponent, { const dialogRef = this.dialog.open(SelectAppsDialogComponent, {
@ -515,7 +514,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
this.turnedPreviousPage.emit(event); this.turnedPreviousPage.emit(event);
} }
toogleGalleryView(): void { toggleGalleryView(): void {
this.displayMode = this.displayMode === DisplayMode.List ? DisplayMode.Gallery : DisplayMode.List; this.displayMode = this.displayMode === DisplayMode.List ? DisplayMode.Gallery : DisplayMode.List;
const url = this const url = this
.router .router

View File

@ -312,7 +312,7 @@ export class DemoForm {
'maxLength': 0, 'maxLength': 0,
'minValue': null, 'minValue': null,
'maxValue': null, 'maxValue': null,
'regexPatt§12212ern': null, 'regexPattern': null,
'optionType': null, 'optionType': null,
'hasEmptyValue': null, 'hasEmptyValue': null,
'options': [ 'options': [
@ -1519,8 +1519,8 @@ export class DemoForm {
'1': [ '1': [
{ {
'fieldType': 'RestFieldRepresentation', 'fieldType': 'RestFieldRepresentation',
'id': 'typeahedField', 'id': 'typeaheadField',
'name': 'TypeahedField', 'name': 'TypeaheadField',
'type': 'typeahead', 'type': 'typeahead',
'value': null, 'value': null,
'required': false, 'required': false,

View File

@ -35,7 +35,7 @@ export class FakeFormService extends FormService {
} }
public getRestFieldValues(taskId: string, fieldId: string): Observable<any> { public getRestFieldValues(taskId: string, fieldId: string): Observable<any> {
if (fieldId === 'typeahedField') { if (fieldId === 'typeaheadField') {
return of([ return of([
{ 'id': '1', 'name': 'Leanne Graham' }, { 'id': '1', 'name': 'Leanne Graham' },
{ 'id': '2', 'name': 'Ervin Howell' }, { 'id': '2', 'name': 'Ervin Howell' },

View File

@ -51,7 +51,7 @@ export class FormLoadingComponent implements OnInit {
onLoadButtonClicked() { onLoadButtonClicked() {
this.formattedData = { this.formattedData = {
'typeahedField': this.typeaheadFieldValue, 'typeaheadField': this.typeaheadFieldValue,
'selectBox': this.selectFieldValue, 'selectBox': this.selectFieldValue,
'radioButton': this.radioButtonFieldValue 'radioButton': this.radioButtonFieldValue
}; };

View File

@ -21,16 +21,16 @@
</p> </p>
<p class="toggle"> <p class="toggle">
<mat-slide-toggle <mat-slide-toggle
id="adf-toogle-show-rememberme" id="adf-toggle-show-rememberme"
[color]="'primary'" [color]="'primary'"
(change)="toggleRemamberme()" (change)="toggleRememberMe()"
[checked]="showRememberMe"> [checked]="showRememberMe">
{{ 'LOGIN.SHOW_REMEMBERME'| translate }} {{ 'LOGIN.SHOW_REMEMBERME'| translate }}
</mat-slide-toggle> </mat-slide-toggle>
</p> </p>
<p class="toggle"> <p class="toggle">
<mat-slide-toggle <mat-slide-toggle
id="adf-toogle-show-successRoute" id="adf-toggle-show-successRoute"
[color]="'primary'" [color]="'primary'"
(change)="toggleSuccessRoute()" (change)="toggleSuccessRoute()"
[checked]="customSuccessRoute"> [checked]="customSuccessRoute">
@ -50,7 +50,7 @@
<p class="toggle"> <p class="toggle">
<mat-slide-toggle <mat-slide-toggle
id="adf-toogle-logo" id="adf-toggle-logo"
[color]="'primary'" [color]="'primary'"
(change)="toggleLogo()" (change)="toggleLogo()"
[checked]="customLogoImage"> [checked]="customLogoImage">
@ -77,7 +77,7 @@
</a> </a>
<adf-login <adf-login
#alfrescologin #alfrescoLogin
[successRoute]="customSuccessRouteURI" [successRoute]="customSuccessRouteURI"
[logoImageUrl]="customLogoImageURL" [logoImageUrl]="customLogoImageURL"
[fieldsValidation]="customValidation" [fieldsValidation]="customValidation"

View File

@ -27,8 +27,8 @@ import { LogService } from '@alfresco/adf-core';
}) })
export class LoginComponent implements OnInit { export class LoginComponent implements OnInit {
@ViewChild('alfrescologin') @ViewChild('alfrescoLogin')
alfrescologin: any; alfrescoLogin: any;
customValidation: any; customValidation: any;
customSuccessRouteURI = ''; customSuccessRouteURI = '';
@ -50,9 +50,9 @@ export class LoginComponent implements OnInit {
} }
ngOnInit() { ngOnInit() {
this.alfrescologin.addCustomValidationError('username', 'required', 'LOGIN.MESSAGES.USERNAME-REQUIRED'); this.alfrescoLogin.addCustomValidationError('username', 'required', 'LOGIN.MESSAGES.USERNAME-REQUIRED');
this.alfrescologin.addCustomValidationError('username', 'minlength', 'LOGIN.MESSAGES.USERNAME-MIN', { minLength: this.customMinLength }); this.alfrescoLogin.addCustomValidationError('username', 'minlength', 'LOGIN.MESSAGES.USERNAME-MIN', { minLength: this.customMinLength });
this.alfrescologin.addCustomValidationError('password', 'required', 'LOGIN.MESSAGES.PASSWORD-REQUIRED'); this.alfrescoLogin.addCustomValidationError('password', 'required', 'LOGIN.MESSAGES.PASSWORD-REQUIRED');
} }
onLogin($event) { onLogin($event) {
@ -71,7 +71,7 @@ export class LoginComponent implements OnInit {
this.showFooter = !this.showFooter; this.showFooter = !this.showFooter;
} }
toggleRemamberme() { toggleRememberMe() {
this.showRememberMe = !this.showRememberMe; this.showRememberMe = !this.showRememberMe;
} }

View File

@ -25,7 +25,7 @@
[showIcon]="showTaskFilterIcon" [showIcon]="showTaskFilterIcon"
(filterClick)="onTaskFilterClick($event)" (filterClick)="onTaskFilterClick($event)"
(success)="onSuccessTaskFilterList($event)" (success)="onSuccessTaskFilterList($event)"
#activitifilter> #activitiFilter>
</adf-task-filters> </adf-task-filters>
</adf-accordion-group> </adf-accordion-group>
</adf-accordion> </adf-accordion>
@ -69,7 +69,7 @@
</div> </div>
<div class="adf-grid-item adf-tasks-details" *ngIf="!isStartTaskMode()" fxFlex.gt-md="1 1 auto" <div class="adf-grid-item adf-tasks-details" *ngIf="!isStartTaskMode()" fxFlex.gt-md="1 1 auto"
data-automation-id="adf-tasks-details"> data-automation-id="adf-tasks-details">
<adf-task-details #activitidetails <adf-task-details #activitiDetails
[debugMode]="true" [debugMode]="true"
[taskId]="currentTaskId" [taskId]="currentTaskId"
[fieldValidators]="fieldValidators" [fieldValidators]="fieldValidators"
@ -130,7 +130,7 @@
<adf-accordion-group [heading]="'Processes'" [isSelected]="true" [isOpen]="true" <adf-accordion-group [heading]="'Processes'" [isSelected]="true" [isOpen]="true"
[headingIcon]="'assessment'"> [headingIcon]="'assessment'">
<adf-process-instance-filters <adf-process-instance-filters
#activitiprocessfilter #activitiProcessFilter
[appId]="appId" [appId]="appId"
[filterParam]="filterSelected" [filterParam]="filterSelected"
[showIcon]="showProcessFilterIcon" [showIcon]="showProcessFilterIcon"
@ -175,7 +175,7 @@
</div> </div>
<div class="adf-grid-item adf-processes-details" *ngIf="!isStartProcessMode()" fxFlex.gt-md="1 1 auto"> <div class="adf-grid-item adf-processes-details" *ngIf="!isStartProcessMode()" fxFlex.gt-md="1 1 auto">
<adf-process-instance-details <adf-process-instance-details
#activitiprocessdetails #activitiProcessDetails
[processInstanceId]="currentProcessInstanceId" [processInstanceId]="currentProcessInstanceId"
(processCancelled)="processCancelled()" (processCancelled)="processCancelled()"
(showProcessDiagram)="onShowProcessDiagram($event)" (showProcessDiagram)="onShowProcessDiagram($event)"
@ -226,7 +226,7 @@
[appId]="appId" [appId]="appId"
[selectFirst]="selectFirstReport" [selectFirst]="selectFirstReport"
(reportClick)="onReportClick($event)" (reportClick)="onReportClick($event)"
#analyticsreportlist> #analyticsReportList>
</analytics-report-list> </analytics-report-list>
</div> </div>
<div class="adf-grid-item adf-reports-details" fxFlex.gt-md="1 1 auto"> <div class="adf-grid-item adf-reports-details" fxFlex.gt-md="1 1 auto">

View File

@ -79,8 +79,8 @@ const REPORT_ROUTE = 2;
}) })
export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit { export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit {
@ViewChild('activitifilter') @ViewChild('activitiFilter')
activitifilter: TaskFiltersComponent; activitiFilter: TaskFiltersComponent;
@ViewChild('processListPagination') @ViewChild('processListPagination')
processListPagination: PaginationComponent; processListPagination: PaginationComponent;
@ -91,23 +91,23 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
@ViewChild('taskList') @ViewChild('taskList')
taskList: TaskListComponent; taskList: TaskListComponent;
@ViewChild('activitiprocessfilter') @ViewChild('activitiProcessFilter')
activitiprocessfilter: ProcessFiltersComponent; activitiProcessFilter: ProcessFiltersComponent;
@ViewChild('processList') @ViewChild('processList')
processList: ProcessInstanceListComponent; processList: ProcessInstanceListComponent;
@ViewChild('activitiprocessdetails') @ViewChild('activitiProcessDetails')
activitiprocessdetails: ProcessInstanceDetailsComponent; activitiProcessDetails: ProcessInstanceDetailsComponent;
@ViewChild('activitidetails') @ViewChild('activitiDetails')
activitidetails: TaskDetailsComponent; activitiDetails: TaskDetailsComponent;
@ViewChild('activitiStartProcess') @ViewChild('activitiStartProcess')
activitiStartProcess: StartProcessInstanceComponent; activitiStartProcess: StartProcessInstanceComponent;
@ViewChild('analyticsreportlist') @ViewChild('analyticsReportList')
analyticsreportlist: AnalyticsReportListComponent; analyticsReportList: AnalyticsReportListComponent;
@Input() @Input()
appId: number = null; appId: number = null;
@ -288,7 +288,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
} }
onSuccessTaskFilterList(event: any): void { onSuccessTaskFilterList(event: any): void {
this.applyTaskFilter(this.activitifilter.getCurrentFilter()); this.applyTaskFilter(this.activitiFilter.getCurrentFilter());
} }
applyTaskFilter(filter: FilterRepresentationModel) { applyTaskFilter(filter: FilterRepresentationModel) {
@ -301,7 +301,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
} }
onStartTaskSuccess(event: any): void { onStartTaskSuccess(event: any): void {
this.activitifilter.selectFilterWithTask(event.id); this.activitiFilter.selectFilterWithTask(event.id);
this.currentTaskId = event.id; this.currentTaskId = event.id;
} }
@ -325,7 +325,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
} }
onSuccessProcessFilterList(event: ProcessInstanceFilterRepresentation[]): void { onSuccessProcessFilterList(event: ProcessInstanceFilterRepresentation[]): void {
this.processFilter = this.activitiprocessfilter.getCurrentFilter(); this.processFilter = this.activitiProcessFilter.getCurrentFilter();
} }
onSuccessProcessList(event: any): void { onSuccessProcessList(event: any): void {
@ -351,16 +351,16 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
} }
onEditReport(name: string): void { onEditReport(name: string): void {
this.analyticsreportlist.reload(); this.analyticsReportList.reload();
} }
onReportSaved(reportId): void { onReportSaved(reportId): void {
this.analyticsreportlist.reload(reportId); this.analyticsReportList.reload(reportId);
} }
onReportDeleted(): void { onReportDeleted(): void {
this.analyticsreportlist.reload(); this.analyticsReportList.reload();
this.analyticsreportlist.selectReport(null); this.analyticsReportList.selectReport(null);
} }
navigateStartProcess(): void { navigateStartProcess(): void {
@ -374,7 +374,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
onStartProcessInstance(instance: ProcessInstance): void { onStartProcessInstance(instance: ProcessInstance): void {
this.currentProcessInstanceId = instance.id; this.currentProcessInstanceId = instance.id;
this.activitiStartProcess.reset(); this.activitiStartProcess.reset();
this.activitiprocessfilter.selectRunningFilter(); this.activitiProcessFilter.selectRunningFilter();
} }
onCancelProcessInstance() { onCancelProcessInstance() {
@ -460,10 +460,10 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
loadStencilScriptsInPageFromProcessService() { loadStencilScriptsInPageFromProcessService() {
this.apiService.getInstance().activiti.scriptFileApi.getControllers().then(response => { this.apiService.getInstance().activiti.scriptFileApi.getControllers().then(response => {
if (response) { if (response) {
const stencilSript = document.createElement('script'); const stencilScript = document.createElement('script');
stencilSript.type = 'text/javascript'; stencilScript.type = 'text/javascript';
stencilSript.text = response; stencilScript.text = response;
this.elementRef.nativeElement.appendChild(stencilSript); this.elementRef.nativeElement.appendChild(stencilScript);
} }
}); });
} }
@ -482,7 +482,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
name: event.value.name || 'No name', name: event.value.name || 'No name',
created: event.value.created created: event.value.created
}; };
this.activitifilter.selectFilter(null); this.activitiFilter.selectFilter(null);
if (this.taskList) { if (this.taskList) {
this.taskList.setCustomDataSource([processTaskDataRow]); this.taskList.setCustomDataSource([processTaskDataRow]);
this.taskList.selectTask(taskId); this.taskList.selectTask(taskId);
@ -491,11 +491,11 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
} }
private reloadProcessFilters(): void { private reloadProcessFilters(): void {
this.activitiprocessfilter.selectFilter(this.activitiprocessfilter.getCurrentFilter()); this.activitiProcessFilter.selectFilter(this.activitiProcessFilter.getCurrentFilter());
} }
private reloadTaskFilters(): void { private reloadTaskFilters(): void {
this.activitifilter.selectFilter(this.activitifilter.getCurrentFilter()); this.activitiFilter.selectFilter(this.activitiFilter.getCurrentFilter());
} }
onRowClick(event): void { onRowClick(event): void {

View File

@ -80,7 +80,9 @@ export class ThemePickerComponent {
{ {
primary: '#c2185b', primary: '#c2185b',
accent: '#b0bec5', accent: '#b0bec5',
/* cspell:disable-next-line */
name: 'Pink Bluegrey Dark', name: 'Pink Bluegrey Dark',
/* cspell:disable-next-line */
href: 'adf-pink-bluegrey.css', href: 'adf-pink-bluegrey.css',
isDark: false isDark: false
}, },

View File

@ -12,7 +12,7 @@ Manages role permissions for content nodes.
### Methods ### Methods
- **getGroupMemeberByGroupName**(groupName: `string`, opts?: `any`): [`Observable`](http://reactivex.io/documentation/observable.html)`<GroupMemberPaging>`<br/> - **getGroupMemberByGroupName**(groupName: `string`, opts?: `any`): [`Observable`](http://reactivex.io/documentation/observable.html)`<GroupMemberPaging>`<br/>
Gets all members related to a group name. Gets all members related to a group name.
- _groupName:_ `string` - Name of group to look for members - _groupName:_ `string` - Name of group to look for members
- _opts:_ `any` - (Optional) Extra options supported by JSAPI - _opts:_ `any` - (Optional) Extra options supported by JSAPI

View File

@ -78,7 +78,7 @@ class MyComponent {
- `getProcessDefinitions():`[`Observable`](http://reactivex.io/documentation/observable.html)`<any>` - `getProcessDefinitions():`[`Observable`](http://reactivex.io/documentation/observable.html)`<any>`
Get Process Definitions Get Process Definitions
- `getProcessVarablesById(processInstanceId: string):`[`Observable`](http://reactivex.io/documentation/observable.html)`<any[]>` - `getProcessVariablesById(processInstanceId: string):`[`Observable`](http://reactivex.io/documentation/observable.html)`<any[]>`
Get instance variables for a process. Get instance variables for a process.
- `processInstanceId` - ID of the target process - `processInstanceId` - ID of the target process
- `getTasks():`[`Observable`](http://reactivex.io/documentation/observable.html)`<any>` - `getTasks():`[`Observable`](http://reactivex.io/documentation/observable.html)`<any>`
@ -108,7 +108,7 @@ class MyComponent {
- `getStartFormInstance(processId: string):`[`Observable`](http://reactivex.io/documentation/observable.html)`<any>` - `getStartFormInstance(processId: string):`[`Observable`](http://reactivex.io/documentation/observable.html)`<any>`
Get start form instance for a given processId Get start form instance for a given processId
- `processId` - Process definition ID - `processId` - Process definition ID
- `getProcessIntance(processId: string):`[`Observable`](http://reactivex.io/documentation/observable.html)`<any>` - `getProcessInstance(processId: string):`[`Observable`](http://reactivex.io/documentation/observable.html)`<any>`
Gets a process instance. Gets a process instance.
- `processId` - ID of the process to get - `processId` - ID of the process to get
- `getStartFormDefinition(processId: string):`[`Observable`](http://reactivex.io/documentation/observable.html)`<any>` - `getStartFormDefinition(processId: string):`[`Observable`](http://reactivex.io/documentation/observable.html)`<any>`

View File

@ -11,12 +11,12 @@ Adds HTML to a string to highlight chosen sections.
### Methods ### Methods
- **highlight**(text: `string`, search: `string`, wrapperClass: `string` = `"highlight"`): `HightlightTransformResult`<br/> - **highlight**(text: `string`, search: `string`, wrapperClass: `string` = `"highlight"`): `HighlightTransformResult`<br/>
Searches for `search` string(s) within `text` and highlights all occurrences. Searches for `search` string(s) within `text` and highlights all occurrences.
- _text:_ `string` - Text to search within - _text:_ `string` - Text to search within
- _search:_ `string` - Text pattern to search for - _search:_ `string` - Text pattern to search for
- _wrapperClass:_ `string` - CSS class used to provide highlighting style - _wrapperClass:_ `string` - CSS class used to provide highlighting style
- **Returns** `HightlightTransformResult` - New text along with boolean value to indicate whether anything was highlighted - **Returns** `HighlightTransformResult` - New text along with boolean value to indicate whether anything was highlighted
## Details ## Details
@ -31,11 +31,11 @@ highlight any of those words individually. The &lt;span> element includes a
`class` attribute which defaults to "highlight" but you can pass any class name `class` attribute which defaults to "highlight" but you can pass any class name
you like using the `wrapperClass` parameter. you like using the `wrapperClass` parameter.
The resulting text with HTML highlighting is returned within a [`HightlightTransformResult`](../../lib/core/services/highlight-transform.service.ts) The resulting text with HTML highlighting is returned within a [`HighlightTransformResult`](../../lib/core/services/highlight-transform.service.ts)
object: object:
```ts ```ts
interface HightlightTransformResult { interface HighlightTransformResult {
text: string; text: string;
changed: boolean; changed: boolean;
} }

View File

@ -156,7 +156,7 @@ need your own custom validation:
```html ```html
<adf-login <adf-login
[fieldsValidation]="customValidation" [fieldsValidation]="customValidation"
#alfrescologin> #alfrescoLogin>
</adf-login> </adf-login>
``` ```
@ -165,8 +165,8 @@ need your own custom validation:
```ts ```ts
export class MyCustomLogin { export class MyCustomLogin {
@ViewChild('alfrescologin') @ViewChild('alfrescoLogin')
alfrescologin: any; alfrescoLogin: any;
customValidation: any; customValidation: any;
@ -178,8 +178,8 @@ export class MyCustomLogin {
} }
ngOnInit() { ngOnInit() {
this.alfrescologin.addCustomValidationError('username', 'minlength', 'Username must be at least 8 characters.'); this.alfrescoLogin.addCustomValidationError('username', 'minlength', 'Username must be at least 8 characters.');
this.alfrescologin.addCustomValidationError('username', 'maxlength', 'Username must not be longer than 11 characters.'); this.alfrescoLogin.addCustomValidationError('username', 'maxlength', 'Username must not be longer than 11 characters.');
} }
} }
``` ```
@ -242,7 +242,7 @@ to present a summary of validation before submitting the form.
```html ```html
<adf-login <adf-login
(executeSubmit)="validateForm($event)" (executeSubmit)="validateForm($event)"
#alfrescologin> #alfrescoLogin>
</adf-login> </adf-login>
``` ```
@ -256,7 +256,7 @@ export class MyCustomLogin {
// check if the username is in the blacklist // check if the username is in the blacklist
if (values.controls['username'].value === 'invalidUsername') { if (values.controls['username'].value === 'invalidUsername') {
this.alfrescologin.addCustomFormError('username', 'the this.alfrescoLogin.addCustomFormError('username', 'the
username is in blacklist'); username is in blacklist');
event.preventDefault(); event.preventDefault();
} }

View File

@ -18,7 +18,7 @@ Logs the user out when the decorated element is clicked.
| Name | Type | Default value | Description | | Name | Type | Default value | Description |
| -- | -- | -- | -- | | -- | -- | -- | -- |
| redirectUri | `string` | 'login' | Uri to be redirect after the logout | | redirectUri | `string` | 'login' | Uri to be redirect after the logout |
| enabelRedirect | `boolean` | 'true' | enable/disable redirect after logout | | enableRedirect | `boolean` | 'true' | enable/disable redirect after logout |
## See also ## See also

View File

@ -19,7 +19,7 @@ The release can be found on GitHub at [this link.](https://github.com/Alfresc
- [8. Process Header Component](#8-process-header-component) - [8. Process Header Component](#8-process-header-component)
- [9. Search list Component new delete file feature]\(#9-search-list-component new-delete-file-feature) - [9. Search list Component new delete file feature]\(#9-search-list-component new-delete-file-feature)
- [10. Login new property](#10-login-new-property) - [10. Login new property](#10-login-new-property)
- [11. TaskDetails - DueDate and Description editable](#11-taskdetails---duedate-and-description-editable) - [11. TaskDetails - DueDate and Description editable](#11-taskDetails---duedate-and-description-editable)
- [12. Configuration back end service hostname feature]\(#12-configuration-back-end-service hostname feature) - [12. Configuration back end service hostname feature]\(#12-configuration-back-end-service hostname feature)
- [13. User Preferences Service](#13-user-preferences-service) - [13. User Preferences Service](#13-user-preferences-service)
- [14. Search results highlighting properties](#14-search-results-highlighting-properties) - [14. Search results highlighting properties](#14-search-results-highlighting-properties)

View File

@ -161,7 +161,7 @@ myOnFolderNodeDoubleClick(nodeId) {
Now, the user experience changes if you click on a folder node (but not a content node) Now, the user experience changes if you click on a folder node (but not a content node)
in the browser's console you will see something like the following screenshot: in the browser's console you will see something like the following screenshot:
![nodesapiservices_nodelist](../docassets/images/nodesapiservices_nodelist.png) ![nodesapiservices_nodeList](../docassets/images/nodesapiservices_nodeList.png)
## Creating and deleting a subfolder ## Creating and deleting a subfolder

View File

@ -144,17 +144,17 @@ describe('Document List Component - Actions', () => {
describe('Folder Actions', () => { describe('Folder Actions', () => {
let folderName, secondfolderName; let folderName, secondFolderName;
beforeEach(async (done) => { beforeEach(async (done) => {
acsUser = new AcsUserModel(); acsUser = new AcsUserModel();
folderName = `TATSUMAKY_${Util.generateRandomString(5)}_SENPOUKYAKU`; folderName = `TATSUMAKY_${Util.generateRandomString(5)}_SENPOUKYAKU`;
secondfolderName = `TATSUMAKY_${Util.generateRandomString(5)}_SENPOUKYAKU`; secondFolderName = `TATSUMAKY_${Util.generateRandomString(5)}_SENPOUKYAKU`;
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword); await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser); await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser);
await this.alfrescoJsApi.login(acsUser.id, acsUser.password); await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
uploadedFolder = await uploadActions.uploadFolder(this.alfrescoJsApi, folderName, '-my-'); uploadedFolder = await uploadActions.uploadFolder(this.alfrescoJsApi, folderName, '-my-');
secondUploadedFolder = await uploadActions.uploadFolder(this.alfrescoJsApi, secondfolderName, '-my-'); secondUploadedFolder = await uploadActions.uploadFolder(this.alfrescoJsApi, secondFolderName, '-my-');
loginPage.loginToContentServicesUsingUserModel(acsUser); loginPage.loginToContentServicesUsingUserModel(acsUser);
contentServicesPage.goToDocumentList(); contentServicesPage.goToDocumentList();
@ -192,8 +192,8 @@ describe('Document List Component - Actions', () => {
browser.driver.sleep(15000); browser.driver.sleep(15000);
contentListPage.copyContent(folderName); contentListPage.copyContent(folderName);
contentServicesPage.typeIntoNodeSelectorSearchField(secondfolderName); contentServicesPage.typeIntoNodeSelectorSearchField(secondFolderName);
contentServicesPage.clickContentNodeSelectorResult(secondfolderName); contentServicesPage.clickContentNodeSelectorResult(secondFolderName);
contentServicesPage.clickCopyButton(); contentServicesPage.clickCopyButton();
contentServicesPage.checkContentIsDisplayed(folderName); contentServicesPage.checkContentIsDisplayed(folderName);
contentServicesPage.doubleClickRow(secondUploadedFolder.entry.name); contentServicesPage.doubleClickRow(secondUploadedFolder.entry.name);

View File

@ -145,6 +145,7 @@ describe('Document List Component', () => {
acsUser = new AcsUserModel(); acsUser = new AcsUserModel();
/* cspell:disable-next-line */
folderName = `MEESEEKS_${Util.generateRandomString(5)}_LOOK_AT_ME`; folderName = `MEESEEKS_${Util.generateRandomString(5)}_LOOK_AT_ME`;
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword); await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
@ -333,6 +334,7 @@ describe('Document List Component', () => {
'location': resources.Files.ADF_DOCUMENTS.TEST.file_location 'location': resources.Files.ADF_DOCUMENTS.TEST.file_location
}); });
acsUser = new AcsUserModel(); acsUser = new AcsUserModel();
/* cspell:disable-next-line */
let folderName = `MEESEEKS_${Util.generateRandomString(5)}_LOOK_AT_ME`; let folderName = `MEESEEKS_${Util.generateRandomString(5)}_LOOK_AT_ME`;
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword); await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser); await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser);
@ -364,6 +366,7 @@ describe('Document List Component', () => {
it('[C268119] "ygj" letters should be rendered properly', async (done) => { it('[C268119] "ygj" letters should be rendered properly', async (done) => {
acsUser = new AcsUserModel(); acsUser = new AcsUserModel();
/* cspell:disable-next-line */
let folderName = 'ggggggjjjjjjjjjjjjyyyyyy'; let folderName = 'ggggggjjjjjjjjjjjjyyyyyy';
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword); await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser); await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser);
@ -391,8 +394,8 @@ describe('Document List Component', () => {
contentServicesPage.goToDocumentList(); contentServicesPage.goToDocumentList();
contentServicesPage.checkContentIsDisplayed(folderNameA); contentServicesPage.checkContentIsDisplayed(folderNameA);
contentServicesPage.checkContentIsDisplayed(folderNameB); contentServicesPage.checkContentIsDisplayed(folderNameB);
contentServicesPage.checkLockIsDislpayedForElement(folderNameA); contentServicesPage.checkLockIsDisplayedForElement(folderNameA);
contentServicesPage.checkLockIsDislpayedForElement(folderNameB); contentServicesPage.checkLockIsDisplayedForElement(folderNameB);
done(); done();
}); });
@ -415,8 +418,8 @@ describe('Document List Component', () => {
contentServicesPage.goToDocumentList(); contentServicesPage.goToDocumentList();
contentServicesPage.checkContentIsDisplayed(testFileA.name); contentServicesPage.checkContentIsDisplayed(testFileA.name);
contentServicesPage.checkContentIsDisplayed(testFileB.name); contentServicesPage.checkContentIsDisplayed(testFileB.name);
contentServicesPage.checkLockIsDislpayedForElement(testFileA.name); contentServicesPage.checkLockIsDisplayedForElement(testFileA.name);
contentServicesPage.checkLockIsDislpayedForElement(testFileB.name); contentServicesPage.checkLockIsDisplayedForElement(testFileB.name);
done(); done();
}); });

View File

@ -62,8 +62,8 @@ describe('Document List - Pagination', function () {
beforeAll(async (done) => { beforeAll(async (done) => {
let uploadActions = new UploadActions(); let uploadActions = new UploadActions();
fileNames = Util.generateSeqeunceFiles(10, nrOfFiles + 9, pagination.base, pagination.extension); fileNames = Util.generateSequenceFiles(10, nrOfFiles + 9, pagination.base, pagination.extension);
secondSetOfFiles = Util.generateSeqeunceFiles(10, secondSetNumber + 9, pagination.secondSetBase, pagination.extension); secondSetOfFiles = Util.generateSequenceFiles(10, secondSetNumber + 9, pagination.secondSetBase, pagination.extension);
this.alfrescoJsApi = new AlfrescoApi({ this.alfrescoJsApi = new AlfrescoApi({
provider: 'ECM', provider: 'ECM',
@ -77,9 +77,9 @@ describe('Document List - Pagination', function () {
await this.alfrescoJsApi.login(acsUser.id, acsUser.password); await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
let folderThreeUploadedModel = await uploadActions.uploadFolder(this.alfrescoJsApi, folderThreeModel.name, '-my-'); let folderThreeUploadedModel = await uploadActions.uploadFolder(this.alfrescoJsApi, folderThreeModel.name, '-my-');
let newFolderUploadeModel = await uploadActions.uploadFolder(this.alfrescoJsApi, newFolderModel.name, '-my-'); let newFolderUploadedModel = await uploadActions.uploadFolder(this.alfrescoJsApi, newFolderModel.name, '-my-');
await uploadActions.createEmptyFiles(this.alfrescoJsApi, fileNames, newFolderUploadeModel.entry.id); await uploadActions.createEmptyFiles(this.alfrescoJsApi, fileNames, newFolderUploadedModel.entry.id);
await uploadActions.createEmptyFiles(this.alfrescoJsApi, fileNames, folderThreeUploadedModel.entry.id); await uploadActions.createEmptyFiles(this.alfrescoJsApi, fileNames, folderThreeUploadedModel.entry.id);

View File

@ -61,8 +61,8 @@ describe('Search component - Search Page', () => {
let fileNames = [], adminFileNames = [], nrOfFiles = 15, adminNrOfFiles = 5; let fileNames = [], adminFileNames = [], nrOfFiles = 15, adminNrOfFiles = 5;
beforeAll(async (done) => { beforeAll(async (done) => {
fileNames = Util.generateSeqeunceFiles(1, nrOfFiles, search.active.base, search.active.extension); fileNames = Util.generateSequenceFiles(1, nrOfFiles, search.active.base, search.active.extension);
adminFileNames = Util.generateSeqeunceFiles(nrOfFiles + 1, nrOfFiles + adminNrOfFiles, search.active.base, search.active.extension); adminFileNames = Util.generateSequenceFiles(nrOfFiles + 1, nrOfFiles + adminNrOfFiles, search.active.base, search.active.extension);
search.active.firstFile = fileNames[0]; search.active.firstFile = fileNames[0];
search.active.secondFile = fileNames[1]; search.active.secondFile = fileNames[1];
fileNames.splice(0, 1); fileNames.splice(0, 1);

View File

@ -60,7 +60,7 @@ describe('Trashcan - Pagination', () => {
beforeAll(async (done) => { beforeAll(async (done) => {
let uploadActions = new UploadActions(); let uploadActions = new UploadActions();
let fileNames = Util.generateSeqeunceFiles(10, nrOfFiles + 9, pagination.base, pagination.extension); let fileNames = Util.generateSequenceFiles(10, nrOfFiles + 9, pagination.base, pagination.extension);
this.alfrescoJsApi = new AlfrescoApi({ this.alfrescoJsApi = new AlfrescoApi({
provider: 'ECM', provider: 'ECM',

View File

@ -84,7 +84,7 @@ describe('Upload component - Excluded Files', () => {
}); });
it('[C279914] Should not allow upload default excluded files using D&D', () => { it('[C279914] Should not allow upload default excluded files using D&D', () => {
contentServicesPage.checkDandDIsDisplayed(); contentServicesPage.checkDragAndDropDIsDisplayed();
let dragAndDropArea = element.all(by.css('adf-upload-drag-area div')).first(); let dragAndDropArea = element.all(by.css('adf-upload-drag-area div')).first();

View File

@ -111,10 +111,10 @@ describe('Upload component', () => {
}); });
afterEach(async (done) => { afterEach(async (done) => {
let nodersPromise = await contentServicesPage.getContentList().getAllNodeIdInList(); let nodesPromise = await contentServicesPage.getContentList().getAllNodeIdInList();
nodersPromise.forEach(async (currentNodePormise) => { nodesPromise.forEach(async (currentNodePromise) => {
await currentNodePormise.then(async (currentNode) => { await currentNodePromise.then(async (currentNode) => {
if (currentNode && currentNode !== 'Node id') { if (currentNode && currentNode !== 'Node id') {
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, currentNode); await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, currentNode);
} }

View File

@ -119,7 +119,7 @@ describe('Upload - User permission', () => {
}); });
it('[C212861] Should not be allowed to Drag and drop a file/folder in a folder with consumer permissions', () => { it('[C212861] Should not be allowed to Drag and drop a file/folder in a folder with consumer permissions', () => {
contentServicesPage.checkDandDIsDisplayed(); contentServicesPage.checkDragAndDropDIsDisplayed();
let dragAndDrop = new DropActions(); let dragAndDrop = new DropActions();
let dragAndDropArea = element.all(by.css('adf-upload-drag-area div')).first(); let dragAndDropArea = element.all(by.css('adf-upload-drag-area div')).first();
@ -196,7 +196,7 @@ describe('Upload - User permission', () => {
}); });
it('[C260130] Should be allowed to Drag and drop a file/folder in a folder with manager permissions', () => { it('[C260130] Should be allowed to Drag and drop a file/folder in a folder with manager permissions', () => {
contentServicesPage.checkDandDIsDisplayed(); contentServicesPage.checkDragAndDropDIsDisplayed();
let dragAndDrop = new DropActions(); let dragAndDrop = new DropActions();

View File

@ -120,8 +120,8 @@ describe('Version component actions', () => {
versionManagePage.clickAcceptConfirm(); versionManagePage.clickAcceptConfirm();
versionManagePage.chekFileVersionNotExist('1.1'); versionManagePage.checkFileVersionNotExist('1.1');
versionManagePage.chekFileVersionExist('1.0'); versionManagePage.checkFileVersionExist('1.0');
}); });
it('[C280006] Should be possible prevent a version to be deleted when click on No on the confirm dialog', () => { it('[C280006] Should be possible prevent a version to be deleted when click on No on the confirm dialog', () => {
@ -129,20 +129,20 @@ describe('Version component actions', () => {
versionManagePage.uploadNewVersionFile(fileModelVersionTwo.location); versionManagePage.uploadNewVersionFile(fileModelVersionTwo.location);
versionManagePage.chekFileVersionExist('1.1'); versionManagePage.checkFileVersionExist('1.1');
versionManagePage.deleteFileVersion('1.1'); versionManagePage.deleteFileVersion('1.1');
versionManagePage.clickCancelConfirm(); versionManagePage.clickCancelConfirm();
versionManagePage.chekFileVersionExist('1.1'); versionManagePage.checkFileVersionExist('1.1');
versionManagePage.chekFileVersionExist('1.0'); versionManagePage.checkFileVersionExist('1.0');
}); });
it('[C280007] Should be possible restore an old version of your file', () => { it('[C280007] Should be possible restore an old version of your file', () => {
versionManagePage.restoreFileVersion('1.0'); versionManagePage.restoreFileVersion('1.0');
versionManagePage.chekFileVersionExist('2.0'); versionManagePage.checkFileVersionExist('2.0');
}); });
}); });

View File

@ -64,7 +64,7 @@ describe('Version component permissions', () => {
'location': resources.Files.ADF_DOCUMENTS.PNG_C.file_location 'location': resources.Files.ADF_DOCUMENTS.PNG_C.file_location
}); });
let differentCreatoFile = new FileModel({ let differentCreatorFile = new FileModel({
'name': resources.Files.ADF_DOCUMENTS.PNG_D.file_name, 'name': resources.Files.ADF_DOCUMENTS.PNG_D.file_name,
'location': resources.Files.ADF_DOCUMENTS.PNG_D.file_location 'location': resources.Files.ADF_DOCUMENTS.PNG_D.file_location
}); });
@ -125,14 +125,14 @@ describe('Version component permissions', () => {
await this.alfrescoJsApi.login(fileCreatorUser.id, fileCreatorUser.password); await this.alfrescoJsApi.login(fileCreatorUser.id, fileCreatorUser.password);
await uploadActions.uploadFile(this.alfrescoJsApi, differentCreatoFile.location, differentCreatoFile.name, site.entry.guid); await uploadActions.uploadFile(this.alfrescoJsApi, differentCreatorFile.location, differentCreatorFile.name, site.entry.guid);
done(); done();
}); });
describe('Manager', () => { describe('Manager', () => {
let sameCreatoFile = new FileModel({ let sameCreatorFile = new FileModel({
'name': resources.Files.ADF_DOCUMENTS.PNG.file_name, 'name': resources.Files.ADF_DOCUMENTS.PNG.file_name,
'location': resources.Files.ADF_DOCUMENTS.PNG.file_location 'location': resources.Files.ADF_DOCUMENTS.PNG.file_location
}); });
@ -142,8 +142,8 @@ describe('Version component permissions', () => {
await this.alfrescoJsApi.login(managerUser.id, managerUser.password); await this.alfrescoJsApi.login(managerUser.id, managerUser.password);
let sameCreatoFileUploaded = await uploadActions.uploadFile(this.alfrescoJsApi, sameCreatoFile.location, sameCreatoFile.name, site.entry.guid); let sameCreatorFileUploaded = await uploadActions.uploadFile(this.alfrescoJsApi, sameCreatorFile.location, sameCreatorFile.name, site.entry.guid);
Object.assign(sameCreatoFile, sameCreatoFileUploaded.entry); Object.assign(sameCreatorFile, sameCreatorFileUploaded.entry);
loginPage.loginToContentServicesUsingUserModel(managerUser); loginPage.loginToContentServicesUsingUserModel(managerUser);
@ -153,25 +153,25 @@ describe('Version component permissions', () => {
}); });
afterAll(async (done) => { afterAll(async (done) => {
await this.alfrescoJsApi.nodes.deleteNode(sameCreatoFile.id); await this.alfrescoJsApi.nodes.deleteNode(sameCreatorFile.id);
done(); done();
}); });
it('[C277200] should a user with Manager permission be able to upload a new version for a file with different creator', () => { it('[C277200] should a user with Manager permission be able to upload a new version for a file with different creator', () => {
contentListPage.versionManagerContent(differentCreatoFile.name); contentListPage.versionManagerContent(differentCreatorFile.name);
versionManagePage.showNewVersionButton.click(); versionManagePage.showNewVersionButton.click();
versionManagePage.uploadNewVersionFile(newVersionFile.location); versionManagePage.uploadNewVersionFile(newVersionFile.location);
versionManagePage.chekFileVersionExist('1.1'); versionManagePage.checkFileVersionExist('1.1');
expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name); expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name);
expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined(); expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined();
versionManagePage.deleteFileVersion('1.1'); versionManagePage.deleteFileVersion('1.1');
versionManagePage.clickAcceptConfirm(); versionManagePage.clickAcceptConfirm();
versionManagePage.chekFileVersionNotExist('1.1'); versionManagePage.checkFileVersionNotExist('1.1');
versionManagePage.closeVersionDialog(); versionManagePage.closeVersionDialog();
@ -185,7 +185,7 @@ describe('Version component permissions', () => {
versionManagePage.uploadNewVersionFile(newVersionFile.location); versionManagePage.uploadNewVersionFile(newVersionFile.location);
versionManagePage.chekFileVersionNotExist('1.1'); versionManagePage.checkFileVersionNotExist('1.1');
versionManagePage.closeVersionDialog(); versionManagePage.closeVersionDialog();
@ -193,20 +193,20 @@ describe('Version component permissions', () => {
}); });
it('[C277196] Should a user with Manager permission be able to upload a new version for the created file', () => { it('[C277196] Should a user with Manager permission be able to upload a new version for the created file', () => {
contentListPage.versionManagerContent(sameCreatoFile.name); contentListPage.versionManagerContent(sameCreatorFile.name);
versionManagePage.showNewVersionButton.click(); versionManagePage.showNewVersionButton.click();
versionManagePage.uploadNewVersionFile(newVersionFile.location); versionManagePage.uploadNewVersionFile(newVersionFile.location);
versionManagePage.chekFileVersionExist('1.1'); versionManagePage.checkFileVersionExist('1.1');
expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name); expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name);
expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined(); expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined();
versionManagePage.deleteFileVersion('1.1'); versionManagePage.deleteFileVersion('1.1');
versionManagePage.clickAcceptConfirm(); versionManagePage.clickAcceptConfirm();
versionManagePage.chekFileVersionNotExist('1.1'); versionManagePage.checkFileVersionNotExist('1.1');
versionManagePage.closeVersionDialog(); versionManagePage.closeVersionDialog();
@ -225,7 +225,7 @@ describe('Version component permissions', () => {
}); });
it('[C277197] Should a user with Consumer permission not be able to upload a new version for a file with different creator', () => { it('[C277197] Should a user with Consumer permission not be able to upload a new version for a file with different creator', () => {
contentListPage.versionManagerContent(differentCreatoFile.name); contentListPage.versionManagerContent(differentCreatorFile.name);
notificationPage.checkNotifyContains(`You don't have access to do this`); notificationPage.checkNotifyContains(`You don't have access to do this`);
}); });
@ -239,7 +239,7 @@ describe('Version component permissions', () => {
}); });
describe('Contributor', () => { describe('Contributor', () => {
let sameCreatoFile = new FileModel({ let sameCreatorFile = new FileModel({
'name': resources.Files.ADF_DOCUMENTS.PNG.file_name, 'name': resources.Files.ADF_DOCUMENTS.PNG.file_name,
'location': resources.Files.ADF_DOCUMENTS.PNG.file_location 'location': resources.Files.ADF_DOCUMENTS.PNG.file_location
}); });
@ -249,8 +249,8 @@ describe('Version component permissions', () => {
await this.alfrescoJsApi.login(contributorUser.id, contributorUser.password); await this.alfrescoJsApi.login(contributorUser.id, contributorUser.password);
let sameCreatoFileUploaded = await uploadActions.uploadFile(this.alfrescoJsApi, sameCreatoFile.location, sameCreatoFile.name, site.entry.guid); let sameCreatorFileUploaded = await uploadActions.uploadFile(this.alfrescoJsApi, sameCreatorFile.location, sameCreatorFile.name, site.entry.guid);
Object.assign(sameCreatoFile, sameCreatoFileUploaded.entry); Object.assign(sameCreatorFile, sameCreatorFileUploaded.entry);
loginPage.loginToContentServicesUsingUserModel(contributorUser); loginPage.loginToContentServicesUsingUserModel(contributorUser);
@ -260,25 +260,25 @@ describe('Version component permissions', () => {
}); });
afterAll(async (done) => { afterAll(async (done) => {
await this.alfrescoJsApi.nodes.deleteNode(sameCreatoFile.id); await this.alfrescoJsApi.nodes.deleteNode(sameCreatorFile.id);
done(); done();
}); });
it('[C277177] Should a user with Contributor permission be able to upload a new version for the created file', () => { it('[C277177] Should a user with Contributor permission be able to upload a new version for the created file', () => {
contentListPage.versionManagerContent(sameCreatoFile.name); contentListPage.versionManagerContent(sameCreatorFile.name);
versionManagePage.showNewVersionButton.click(); versionManagePage.showNewVersionButton.click();
versionManagePage.uploadNewVersionFile(newVersionFile.location); versionManagePage.uploadNewVersionFile(newVersionFile.location);
versionManagePage.chekFileVersionExist('1.1'); versionManagePage.checkFileVersionExist('1.1');
expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name); expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name);
expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined(); expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined();
versionManagePage.deleteFileVersion('1.1'); versionManagePage.deleteFileVersion('1.1');
versionManagePage.clickAcceptConfirm(); versionManagePage.clickAcceptConfirm();
versionManagePage.chekFileVersionNotExist('1.1'); versionManagePage.checkFileVersionNotExist('1.1');
versionManagePage.closeVersionDialog(); versionManagePage.closeVersionDialog();
@ -286,7 +286,7 @@ describe('Version component permissions', () => {
}); });
it('[C277198] Should a user with Contributor permission not be able to upload a new version for a file with different creator', () => { it('[C277198] Should a user with Contributor permission not be able to upload a new version for a file with different creator', () => {
contentListPage.versionManagerContent(differentCreatoFile.name); contentListPage.versionManagerContent(differentCreatorFile.name);
notificationPage.checkNotifyContains(`You don't have access to do this`); notificationPage.checkNotifyContains(`You don't have access to do this`);
}); });
@ -299,7 +299,7 @@ describe('Version component permissions', () => {
}); });
describe('Collaborator', () => { describe('Collaborator', () => {
let sameCreatoFile = new FileModel({ let sameCreatorFile = new FileModel({
'name': resources.Files.ADF_DOCUMENTS.PNG.file_name, 'name': resources.Files.ADF_DOCUMENTS.PNG.file_name,
'location': resources.Files.ADF_DOCUMENTS.PNG.file_location 'location': resources.Files.ADF_DOCUMENTS.PNG.file_location
}); });
@ -309,8 +309,8 @@ describe('Version component permissions', () => {
await this.alfrescoJsApi.login(collaboratorUser.id, collaboratorUser.password); await this.alfrescoJsApi.login(collaboratorUser.id, collaboratorUser.password);
let sameCreatoFileUploaded = await uploadActions.uploadFile(this.alfrescoJsApi, sameCreatoFile.location, sameCreatoFile.name, site.entry.guid); let sameCreatorFileUploaded = await uploadActions.uploadFile(this.alfrescoJsApi, sameCreatorFile.location, sameCreatorFile.name, site.entry.guid);
Object.assign(sameCreatoFile, sameCreatoFileUploaded.entry); Object.assign(sameCreatorFile, sameCreatorFileUploaded.entry);
loginPage.loginToContentServicesUsingUserModel(collaboratorUser); loginPage.loginToContentServicesUsingUserModel(collaboratorUser);
@ -320,25 +320,25 @@ describe('Version component permissions', () => {
}); });
afterAll(async (done) => { afterAll(async (done) => {
await this.alfrescoJsApi.nodes.deleteNode(sameCreatoFile.id); await this.alfrescoJsApi.nodes.deleteNode(sameCreatorFile.id);
done(); done();
}); });
it('[C277195] Should a user with Collaborator permission be able to upload a new version for the created file', () => { it('[C277195] Should a user with Collaborator permission be able to upload a new version for the created file', () => {
contentListPage.versionManagerContent(sameCreatoFile.name); contentListPage.versionManagerContent(sameCreatorFile.name);
versionManagePage.showNewVersionButton.click(); versionManagePage.showNewVersionButton.click();
versionManagePage.uploadNewVersionFile(newVersionFile.location); versionManagePage.uploadNewVersionFile(newVersionFile.location);
versionManagePage.chekFileVersionExist('1.1'); versionManagePage.checkFileVersionExist('1.1');
expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name); expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name);
expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined(); expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined();
versionManagePage.deleteFileVersion('1.1'); versionManagePage.deleteFileVersion('1.1');
versionManagePage.clickAcceptConfirm(); versionManagePage.clickAcceptConfirm();
versionManagePage.chekFileVersionNotExist('1.1'); versionManagePage.checkFileVersionNotExist('1.1');
versionManagePage.closeVersionDialog(); versionManagePage.closeVersionDialog();
@ -352,7 +352,7 @@ describe('Version component permissions', () => {
versionManagePage.uploadNewVersionFile(newVersionFile.location); versionManagePage.uploadNewVersionFile(newVersionFile.location);
versionManagePage.chekFileVersionNotExist('1.1'); versionManagePage.checkFileVersionNotExist('1.1');
versionManagePage.closeVersionDialog(); versionManagePage.closeVersionDialog();
@ -360,13 +360,13 @@ describe('Version component permissions', () => {
}); });
it('[C277199] should a user with Collaborator permission be able to upload a new version for a file with different creator', () => { it('[C277199] should a user with Collaborator permission be able to upload a new version for a file with different creator', () => {
contentListPage.versionManagerContent(differentCreatoFile.name); contentListPage.versionManagerContent(differentCreatorFile.name);
versionManagePage.showNewVersionButton.click(); versionManagePage.showNewVersionButton.click();
versionManagePage.uploadNewVersionFile(newVersionFile.location); versionManagePage.uploadNewVersionFile(newVersionFile.location);
versionManagePage.chekFileVersionExist('1.1'); versionManagePage.checkFileVersionExist('1.1');
expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name); expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name);
expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined(); expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined();

View File

@ -107,7 +107,7 @@ describe('Version Properties', () => {
versionManagePage.enterCommentText('Example comment text'); versionManagePage.enterCommentText('Example comment text');
versionManagePage.uploadNewVersionFile(fileModelVersionTwo.location); versionManagePage.uploadNewVersionFile(fileModelVersionTwo.location);
versionManagePage.chekFileVersionExist('1.1'); versionManagePage.checkFileVersionExist('1.1');
expect(versionManagePage.getFileVersionComment('1.1')).toEqual('Example comment text'); expect(versionManagePage.getFileVersionComment('1.1')).toEqual('Example comment text');
versionManagePage.disableComments(); versionManagePage.disableComments();

View File

@ -98,7 +98,7 @@ describe('Version component', () => {
it('[C272768] Should be visible the first file version when you upload a file', () => { it('[C272768] Should be visible the first file version when you upload a file', () => {
versionManagePage.checkUploadNewVersionsButtonIsDisplayed(); versionManagePage.checkUploadNewVersionsButtonIsDisplayed();
versionManagePage.chekFileVersionExist('1.0'); versionManagePage.checkFileVersionExist('1.0');
expect(versionManagePage.getFileVersionName('1.0')).toEqual(txtFileModel.name); expect(versionManagePage.getFileVersionName('1.0')).toEqual(txtFileModel.name);
expect(versionManagePage.getFileVersionDate('1.0')).not.toBeUndefined(); expect(versionManagePage.getFileVersionDate('1.0')).not.toBeUndefined();
}); });
@ -133,11 +133,11 @@ describe('Version component', () => {
versionManagePage.showNewVersionButton.click(); versionManagePage.showNewVersionButton.click();
versionManagePage.uploadNewVersionFile(fileModelVersionTwo.location); versionManagePage.uploadNewVersionFile(fileModelVersionTwo.location);
versionManagePage.chekFileVersionExist('1.0'); versionManagePage.checkFileVersionExist('1.0');
expect(versionManagePage.getFileVersionName('1.0')).toEqual(txtFileModel.name); expect(versionManagePage.getFileVersionName('1.0')).toEqual(txtFileModel.name);
expect(versionManagePage.getFileVersionDate('1.0')).not.toBeUndefined(); expect(versionManagePage.getFileVersionDate('1.0')).not.toBeUndefined();
versionManagePage.chekFileVersionExist('1.1'); versionManagePage.checkFileVersionExist('1.1');
expect(versionManagePage.getFileVersionName('1.1')).toEqual(fileModelVersionTwo.name); expect(versionManagePage.getFileVersionName('1.1')).toEqual(fileModelVersionTwo.name);
expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined(); expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined();
}); });
@ -147,7 +147,7 @@ describe('Version component', () => {
versionManagePage.enterCommentText('Example comment text'); versionManagePage.enterCommentText('Example comment text');
versionManagePage.uploadNewVersionFile(fileModelVersionThree.location); versionManagePage.uploadNewVersionFile(fileModelVersionThree.location);
versionManagePage.chekFileVersionExist('1.2'); versionManagePage.checkFileVersionExist('1.2');
expect(versionManagePage.getFileVersionName('1.2')).toEqual(fileModelVersionThree.name); expect(versionManagePage.getFileVersionName('1.2')).toEqual(fileModelVersionThree.name);
expect(versionManagePage.getFileVersionDate('1.2')).not.toBeUndefined(); expect(versionManagePage.getFileVersionDate('1.2')).not.toBeUndefined();
expect(versionManagePage.getFileVersionComment('1.2')).toEqual('Example comment text'); expect(versionManagePage.getFileVersionComment('1.2')).toEqual('Example comment text');
@ -159,7 +159,7 @@ describe('Version component', () => {
versionManagePage.uploadNewVersionFile(fileModelVersionFor.location); versionManagePage.uploadNewVersionFile(fileModelVersionFor.location);
versionManagePage.chekFileVersionExist('2.0'); versionManagePage.checkFileVersionExist('2.0');
expect(versionManagePage.getFileVersionName('2.0')).toEqual(fileModelVersionFor.name); expect(versionManagePage.getFileVersionName('2.0')).toEqual(fileModelVersionFor.name);
versionManagePage.showNewVersionButton.click(); versionManagePage.showNewVersionButton.click();
@ -167,7 +167,7 @@ describe('Version component', () => {
versionManagePage.uploadNewVersionFile(fileModelVersionFive.location); versionManagePage.uploadNewVersionFile(fileModelVersionFive.location);
versionManagePage.chekFileVersionExist('2.1'); versionManagePage.checkFileVersionExist('2.1');
expect(versionManagePage.getFileVersionName('2.1')).toEqual(fileModelVersionFive.name); expect(versionManagePage.getFileVersionName('2.1')).toEqual(fileModelVersionFive.name);
}); });

View File

@ -109,14 +109,14 @@ describe('Aspect oriented config', () => {
metadataViewPage.informationButtonIsDisplayed(); metadataViewPage.informationButtonIsDisplayed();
metadataViewPage.clickOnInformationButton(); metadataViewPage.clickOnInformationButton();
metadataViewPage.clickMetadatGroup('IMAGE'); metadataViewPage.clickMetadataGroup('IMAGE');
metadataViewPage.checkPopertyIsVisible('properties.exif:pixelXDimension', 'textitem'); metadataViewPage.checkPropertyIsVisible('properties.exif:pixelXDimension', 'textitem');
metadataViewPage.checkPopertyIsVisible('properties.exif:pixelYDimension', 'textitem'); metadataViewPage.checkPropertyIsVisible('properties.exif:pixelYDimension', 'textitem');
metadataViewPage.checkPopertyIsNotVisible('properties.exif:isoSpeedRatings', 'textitem'); metadataViewPage.checkPropertyIsNotVisible('properties.exif:isoSpeedRatings', 'textitem');
metadataViewPage.editIconClick(); metadataViewPage.editIconClick();
metadataViewPage.checkPopertyIsVisible('properties.exif:isoSpeedRatings', 'textitem'); metadataViewPage.checkPropertyIsVisible('properties.exif:isoSpeedRatings', 'textitem');
}); });
it('[C260185] Should ignore not existing aspect when present in the configuration', () => { it('[C260185] Should ignore not existing aspect when present in the configuration', () => {
@ -142,10 +142,10 @@ describe('Aspect oriented config', () => {
metadataViewPage.informationButtonIsDisplayed(); metadataViewPage.informationButtonIsDisplayed();
metadataViewPage.clickOnInformationButton(); metadataViewPage.clickOnInformationButton();
metadataViewPage.checkkMetadatGroupIsPresent('EXIF'); metadataViewPage.checkMetadataGroupIsPresent('EXIF');
metadataViewPage.checkkMetadatGroupIsPresent('properties'); metadataViewPage.checkMetadataGroupIsPresent('properties');
metadataViewPage.checkkMetadatGroupIsPresent('Versionable'); metadataViewPage.checkMetadataGroupIsPresent('Versionable');
metadataViewPage.checkkMetadatGroupIsNotPresent('exists'); metadataViewPage.checkMetadataGroupIsNotPresent('exists');
}); });
it('[C260183] Should show all the aspect if the content-metadata configuration is NOT provided' , () => { it('[C260183] Should show all the aspect if the content-metadata configuration is NOT provided' , () => {
@ -163,13 +163,13 @@ describe('Aspect oriented config', () => {
metadataViewPage.informationButtonIsDisplayed(); metadataViewPage.informationButtonIsDisplayed();
metadataViewPage.clickOnInformationButton(); metadataViewPage.clickOnInformationButton();
metadataViewPage.checkkMetadatGroupIsPresent('EXIF'); metadataViewPage.checkMetadataGroupIsPresent('EXIF');
metadataViewPage.checkkMetadatGroupIsPresent('properties'); metadataViewPage.checkMetadataGroupIsPresent('properties');
metadataViewPage.checkkMetadatGroupIsPresent('Versionable'); metadataViewPage.checkMetadataGroupIsPresent('Versionable');
metadataViewPage.checkkMetadatGroupIsPresent('Titled'); metadataViewPage.checkMetadataGroupIsPresent('Titled');
metadataViewPage.checkkMetadatGroupIsPresent('Auditable'); metadataViewPage.checkMetadataGroupIsPresent('Auditable');
metadataViewPage.checkkMetadatGroupIsPresent('Author'); metadataViewPage.checkMetadataGroupIsPresent('Author');
metadataViewPage.checkkMetadatGroupIsPresent('Content'); metadataViewPage.checkMetadataGroupIsPresent('Content');
}); });
it('[C260182] Should show all the aspects if the default configuration contains the * symbol' , () => { it('[C260182] Should show all the aspects if the default configuration contains the * symbol' , () => {
@ -192,13 +192,13 @@ describe('Aspect oriented config', () => {
metadataViewPage.informationButtonIsDisplayed(); metadataViewPage.informationButtonIsDisplayed();
metadataViewPage.clickOnInformationButton(); metadataViewPage.clickOnInformationButton();
metadataViewPage.checkkMetadatGroupIsPresent('EXIF'); metadataViewPage.checkMetadataGroupIsPresent('EXIF');
metadataViewPage.checkkMetadatGroupIsPresent('properties'); metadataViewPage.checkMetadataGroupIsPresent('properties');
metadataViewPage.checkkMetadatGroupIsPresent('Versionable'); metadataViewPage.checkMetadataGroupIsPresent('Versionable');
metadataViewPage.checkkMetadatGroupIsPresent('Titled'); metadataViewPage.checkMetadataGroupIsPresent('Titled');
metadataViewPage.checkkMetadatGroupIsPresent('Auditable'); metadataViewPage.checkMetadataGroupIsPresent('Auditable');
metadataViewPage.checkkMetadatGroupIsPresent('Author'); metadataViewPage.checkMetadataGroupIsPresent('Author');
metadataViewPage.checkkMetadatGroupIsPresent('Content'); metadataViewPage.checkMetadataGroupIsPresent('Content');
}); });
it('[C268899] Should be possible use a Translation key as Title of a metadata group' , () => { it('[C268899] Should be possible use a Translation key as Title of a metadata group' , () => {
@ -243,11 +243,11 @@ describe('Aspect oriented config', () => {
metadataViewPage.informationButtonIsDisplayed(); metadataViewPage.informationButtonIsDisplayed();
metadataViewPage.clickOnInformationButton(); metadataViewPage.clickOnInformationButton();
metadataViewPage.checkkMetadatGroupIsPresent('GROUP-TITLE1-TRANSLATION-KEY'); metadataViewPage.checkMetadataGroupIsPresent('GROUP-TITLE1-TRANSLATION-KEY');
metadataViewPage.checkkMetadatGroupIsPresent('GROUP-TITLE2-TRANSLATION-KEY'); metadataViewPage.checkMetadataGroupIsPresent('GROUP-TITLE2-TRANSLATION-KEY');
expect(metadataViewPage.getkMetadatGroupTitle('GROUP-TITLE1-TRANSLATION-KEY')).toBe('CUSTOM TITLE TRANSLATION ONE'); expect(metadataViewPage.getMetadataGroupTitle('GROUP-TITLE1-TRANSLATION-KEY')).toBe('CUSTOM TITLE TRANSLATION ONE');
expect(metadataViewPage.getkMetadatGroupTitle('GROUP-TITLE2-TRANSLATION-KEY')).toBe('CUSTOM TITLE TRANSLATION TWO'); expect(metadataViewPage.getMetadataGroupTitle('GROUP-TITLE2-TRANSLATION-KEY')).toBe('CUSTOM TITLE TRANSLATION TWO');
}); });
@ -278,8 +278,8 @@ describe('Aspect oriented config', () => {
metadataViewPage.informationButtonIsDisplayed(); metadataViewPage.informationButtonIsDisplayed();
metadataViewPage.clickOnInformationButton(); metadataViewPage.clickOnInformationButton();
metadataViewPage.checkkMetadatGroupIsPresent('properties'); metadataViewPage.checkMetadataGroupIsPresent('properties');
metadataViewPage.checkkMetadatGroupIsPresent('EXIF'); metadataViewPage.checkMetadataGroupIsPresent('EXIF');
metadataViewPage.checkkMetadatGroupIsPresent('Versionable'); metadataViewPage.checkMetadataGroupIsPresent('Versionable');
}); });
}); });

View File

@ -88,7 +88,7 @@ describe('CardView Component', () => {
}); });
}); });
describe('Selectbox', () => { describe('SelectBox', () => {
it('[C279939] Should the label be present', () => { it('[C279939] Should the label be present', () => {
let label = element(by.xpath('div[data-automation-id="card-select-label-select"]')); let label = element(by.xpath('div[data-automation-id="card-select-label-select"]'));
@ -96,7 +96,7 @@ describe('CardView Component', () => {
Util.waitUntilElementIsPresent(label); Util.waitUntilElementIsPresent(label);
}); });
it('[C279899] Should be possible edit selectbox item', () => { it('[C279899] Should be possible edit selectBox item', () => {
cardViewPageComponent.clickSelectBox(); cardViewPageComponent.clickSelectBox();
cardViewPageComponent.selectValueFromComboBox(1); cardViewPageComponent.selectValueFromComboBox(1);

View File

@ -35,7 +35,7 @@ import CONSTANTS = require('../../util/constants');
describe('permissions', () => { describe('permissions', () => {
const METADATA = { const METADATA = {
DATAFORMAT: 'mmm dd yyyy', DATA_FORMAT: 'mmm dd yyyy',
TITLE: 'Details', TITLE: 'Details',
COMMENTS_TAB: 'COMMENTS', COMMENTS_TAB: 'COMMENTS',
PROPERTY_TAB: 'PROPERTIES', PROPERTY_TAB: 'PROPERTIES',
@ -134,7 +134,7 @@ describe('permissions', () => {
metadataViewPage.clickOnInformationButton(); metadataViewPage.clickOnInformationButton();
metadataViewPage.clickMetadatGroup('EXIF'); metadataViewPage.clickMetadataGroup('EXIF');
metadataViewPage.editIconIsDisplayed(); metadataViewPage.editIconIsDisplayed();
}); });
@ -154,7 +154,7 @@ describe('permissions', () => {
metadataViewPage.clickOnInformationButton(); metadataViewPage.clickOnInformationButton();
metadataViewPage.clickMetadatGroup('EXIF'); metadataViewPage.clickMetadataGroup('EXIF');
metadataViewPage.editIconIsDisplayed(); metadataViewPage.editIconIsDisplayed();
}); });

View File

@ -32,7 +32,7 @@ import { UploadActions } from '../../actions/ACS/upload.actions';
describe('CardView Component - properties', () => { describe('CardView Component - properties', () => {
let METADATA = { let METADATA = {
DATAFORMAT: 'mmm dd yyyy', DATA_FORMAT: 'mmm dd yyyy',
TITLE: 'Details', TITLE: 'Details',
COMMENTS_TAB: 'COMMENTS', COMMENTS_TAB: 'COMMENTS',
PROPERTY_TAB: 'PROPERTIES', PROPERTY_TAB: 'PROPERTIES',
@ -99,15 +99,15 @@ describe('CardView Component - properties', () => {
metadataViewPage.clickOnInformationButton(); metadataViewPage.clickOnInformationButton();
metadataViewPage.clickMetadatGroup('EXIF'); metadataViewPage.clickMetadataGroup('EXIF');
metadataViewPage.checkPopertyIsVisible('properties.exif:flash', 'boolean'); metadataViewPage.checkPropertyIsVisible('properties.exif:flash', 'boolean');
metadataViewPage.checkPopertyIsNotVisible('properties.exif:model', 'textitem'); metadataViewPage.checkPropertyIsNotVisible('properties.exif:model', 'textitem');
metadataViewPage.enableDisplayEmpty(); metadataViewPage.enableDisplayEmpty();
metadataViewPage.checkPopertyIsVisible('properties.exif:flash', 'boolean'); metadataViewPage.checkPropertyIsVisible('properties.exif:flash', 'boolean');
metadataViewPage.checkPopertyIsVisible('properties.exif:model', 'textitem'); metadataViewPage.checkPropertyIsVisible('properties.exif:model', 'textitem');
}); });
it('[C260179] Should not be possible edit the basic property when readOnly is true', () => { it('[C260179] Should not be possible edit the basic property when readOnly is true', () => {
@ -130,25 +130,25 @@ describe('CardView Component - properties', () => {
metadataViewPage.clickOnInformationButton(); metadataViewPage.clickOnInformationButton();
metadataViewPage.chekMetadatGroupIsNotExpand('EXIF'); metadataViewPage.checkMetadataGroupIsNotExpand('EXIF');
metadataViewPage.chekMetadatGroupIsNotExpand('properties'); metadataViewPage.checkMetadataGroupIsNotExpand('properties');
metadataViewPage.clickMetadatGroup('properties'); metadataViewPage.clickMetadataGroup('properties');
metadataViewPage.chekMetadatGroupIsNotExpand('EXIF'); metadataViewPage.checkMetadataGroupIsNotExpand('EXIF');
metadataViewPage.chekMetadatGroupIsExpand('properties'); metadataViewPage.checkMetadataGroupIsExpand('properties');
metadataViewPage.clickMetadatGroup('EXIF'); metadataViewPage.clickMetadataGroup('EXIF');
metadataViewPage.chekMetadatGroupIsExpand('EXIF'); metadataViewPage.checkMetadataGroupIsExpand('EXIF');
metadataViewPage.chekMetadatGroupIsNotExpand('properties'); metadataViewPage.checkMetadataGroupIsNotExpand('properties');
metadataViewPage.enableMulti(); metadataViewPage.enableMulti();
metadataViewPage.clickMetadatGroup('properties'); metadataViewPage.clickMetadataGroup('properties');
metadataViewPage.chekMetadatGroupIsExpand('EXIF'); metadataViewPage.checkMetadataGroupIsExpand('EXIF');
metadataViewPage.chekMetadatGroupIsExpand('properties'); metadataViewPage.checkMetadataGroupIsExpand('properties');
}); });
@ -160,14 +160,14 @@ describe('CardView Component - properties', () => {
metadataViewPage.disabledDefaultProperties(); metadataViewPage.disabledDefaultProperties();
metadataViewPage.checkkMetadatGroupIsNotPresent('properties'); metadataViewPage.checkMetadataGroupIsNotPresent('properties');
metadataViewPage.checkkMetadatGroupIsPresent('EXIF'); metadataViewPage.checkMetadataGroupIsPresent('EXIF');
metadataViewPage.chekMetadatGroupIsExpand('EXIF'); metadataViewPage.checkMetadataGroupIsExpand('EXIF');
metadataViewPage.enabledDefaultProperties(); metadataViewPage.enabledDefaultProperties();
metadataViewPage.checkkMetadatGroupIsPresent('properties'); metadataViewPage.checkMetadataGroupIsPresent('properties');
metadataViewPage.chekMetadatGroupIsExpand('properties'); metadataViewPage.checkMetadataGroupIsExpand('properties');
}); });
it('[C280560] Should show/hide the more properties button when displayDefaultProperties is true/false', () => { it('[C280560] Should show/hide the more properties button when displayDefaultProperties is true/false', () => {

View File

@ -36,7 +36,7 @@ import { UploadActions } from '../../actions/ACS/upload.actions';
describe('Metadata component', () => { describe('Metadata component', () => {
const METADATA = { const METADATA = {
DATAFORMAT: 'mmm dd yyyy', DATA_FORMAT: 'mmm dd yyyy',
TITLE: 'Details', TITLE: 'Details',
COMMENTS_TAB: 'COMMENTS', COMMENTS_TAB: 'COMMENTS',
PROPERTY_TAB: 'PROPERTIES', PROPERTY_TAB: 'PROPERTIES',
@ -106,9 +106,9 @@ describe('Metadata component', () => {
expect(metadataViewPage.getExpandedAspectName()).toEqual(METADATA.DEFAULT_ASPECT); expect(metadataViewPage.getExpandedAspectName()).toEqual(METADATA.DEFAULT_ASPECT);
expect(metadataViewPage.getName()).toEqual(pngFileModel.name); expect(metadataViewPage.getName()).toEqual(pngFileModel.name);
expect(metadataViewPage.getCreator()).toEqual(pngFileModel.getCreatedByUser().displayName); expect(metadataViewPage.getCreator()).toEqual(pngFileModel.getCreatedByUser().displayName);
expect(metadataViewPage.getCreatedDate()).toEqual(dateFormat(pngFileModel.createdAt, METADATA.DATAFORMAT)); expect(metadataViewPage.getCreatedDate()).toEqual(dateFormat(pngFileModel.createdAt, METADATA.DATA_FORMAT));
expect(metadataViewPage.getModifier()).toEqual(pngFileModel.getCreatedByUser().displayName); expect(metadataViewPage.getModifier()).toEqual(pngFileModel.getCreatedByUser().displayName);
expect(metadataViewPage.getModifiedDate()).toEqual(dateFormat(pngFileModel.createdAt, METADATA.DATAFORMAT)); expect(metadataViewPage.getModifiedDate()).toEqual(dateFormat(pngFileModel.createdAt, METADATA.DATA_FORMAT));
expect(metadataViewPage.getMimetypeName()).toEqual(pngFileModel.getContent().mimeTypeName); expect(metadataViewPage.getMimetypeName()).toEqual(pngFileModel.getContent().mimeTypeName);
expect(metadataViewPage.getSize()).toEqual(pngFileModel.getContent().getSizeInBytes()); expect(metadataViewPage.getSize()).toEqual(pngFileModel.getContent().getSizeInBytes());
@ -288,7 +288,7 @@ describe('Metadata component', () => {
metadataViewPage.clickOnInformationButton(); metadataViewPage.clickOnInformationButton();
metadataViewPage.clickMetadatGroup('EXIF'); metadataViewPage.clickMetadataGroup('EXIF');
metadataViewPage.editIconClick(); metadataViewPage.editIconClick();

View File

@ -44,7 +44,7 @@ describe('Error Component', () => {
}); });
it('[C277302] Should display the error 403 when access to unathorized page', () => { it('[C277302] Should display the error 403 when access to unauthorized page', () => {
browser.get(TestConfig.adf.url + '/error/403'); browser.get(TestConfig.adf.url + '/error/403');
expect(errorPage.getErrorCode()).toBe('403'); expect(errorPage.getErrorCode()).toBe('403');
expect(errorPage.getErrorTitle()).toBe('You don\'t have permission to access this server.'); expect(errorPage.getErrorTitle()).toBe('You don\'t have permission to access this server.');

View File

@ -59,7 +59,7 @@ describe('Enable infinite scrolling', () => {
contentServicesPage.goToDocumentList(); contentServicesPage.goToDocumentList();
fileNames = Util.generateSeqeunceFiles(1, nrOfFiles, files.base, files.extension); fileNames = Util.generateSequenceFiles(1, nrOfFiles, files.base, files.extension);
await this.alfrescoJsApi.login(acsUser.id, acsUser.password); await this.alfrescoJsApi.login(acsUser.id, acsUser.password);

View File

@ -62,7 +62,7 @@ describe('Pagination - returns to previous page when current is empty', () => {
await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser); await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser);
fileNames = Util.generateSeqeunceFiles(1, nrOfFiles, files.base, files.extension); fileNames = Util.generateSequenceFiles(1, nrOfFiles, files.base, files.extension);
await this.alfrescoJsApi.login(acsUser.id, acsUser.password); await this.alfrescoJsApi.login(acsUser.id, acsUser.password);

View File

@ -182,13 +182,13 @@ describe('Viewer', () => {
describe('PowerPoint Folder Uploaded', () => { describe('PowerPoint Folder Uploaded', () => {
let uploadedPpts; let uploadedPpt;
let pptFolderUploaded; let pptFolderUploaded;
beforeAll(async (done) => { beforeAll(async (done) => {
pptFolderUploaded = await uploadActions.uploadFolder(this.alfrescoJsApi, pptFolderInfo.name, '-my-'); pptFolderUploaded = await uploadActions.uploadFolder(this.alfrescoJsApi, pptFolderInfo.name, '-my-');
uploadedPpts = await uploadActions.uploadFolderFiles(this.alfrescoJsApi, pptFolderInfo.location, pptFolderUploaded.entry.id); uploadedPpt = await uploadActions.uploadFolderFiles(this.alfrescoJsApi, pptFolderInfo.location, pptFolderUploaded.entry.id);
loginPage.loginToContentServicesUsingUserModel(acsUser); loginPage.loginToContentServicesUsingUserModel(acsUser);
contentServicesPage.goToDocumentList(); contentServicesPage.goToDocumentList();
@ -204,7 +204,7 @@ describe('Viewer', () => {
it('[C280009] Should be possible to open any PowerPoint file', () => { it('[C280009] Should be possible to open any PowerPoint file', () => {
contentServicesPage.navigateToFolder('ppt'); contentServicesPage.navigateToFolder('ppt');
uploadedPpts.forEach((currentFile) => { uploadedPpt.forEach((currentFile) => {
if (currentFile.entry.name !== '.DS_Store') { if (currentFile.entry.name !== '.DS_Store') {
contentServicesPage.doubleClickRow(currentFile.entry.name); contentServicesPage.doubleClickRow(currentFile.entry.name);
viewerPage.checkFileIsLoaded(); viewerPage.checkFileIsLoaded();

View File

@ -145,7 +145,7 @@ describe('Viewer - properties', () => {
viewerPage.disableCustomName(); viewerPage.disableCustomName();
}); });
it('[C260090] Sould showSidebar allow right info-drawer to be shown', () => { it('[C260090] Should showSidebar allow right info-drawer to be shown', () => {
viewerPage.clickToggleRightSidebar(); viewerPage.clickToggleRightSidebar();
viewerPage.checkInfoSideBarIsDisplayed(); viewerPage.checkInfoSideBarIsDisplayed();
@ -153,7 +153,7 @@ describe('Viewer - properties', () => {
viewerPage.checkInfoSideBarIsNotDisplayed(); viewerPage.checkInfoSideBarIsNotDisplayed();
}); });
it('[C286442] Sould showLeftSidebar allow left info-drawer to be shown', () => { it('[C286442] Should showLeftSidebar allow left info-drawer to be shown', () => {
viewerPage.clickToggleLeftSidebar(); viewerPage.clickToggleLeftSidebar();
viewerPage.checkLeftSideBarIsNotDisplayed(); viewerPage.checkLeftSideBarIsNotDisplayed();
viewerPage.clickLeftSidebarButton(); viewerPage.clickLeftSidebarButton();

View File

@ -34,7 +34,7 @@ var CardViewComponentPage = function () {
const resetButton = element(by.css("#adf-reset-card-log")); const resetButton = element(by.css("#adf-reset-card-log"));
const selectedValue = element(by.css('.mat-select-value-text span')); const selectedValue = element(by.css('.mat-select-value-text span'));
const listContent = element(by.className('mat-select-content')); const listContent = element(by.className('mat-select-content'));
const editableSwitch = element(by.id('adf-toogle-editable')); const editableSwitch = element(by.id('adf-toggle-editable'));
this.clickOnAddButton = function () { this.clickOnAddButton = function () {
Util.waitUntilElementIsVisible(addButton); Util.waitUntilElementIsVisible(addButton);

View File

@ -423,11 +423,11 @@ export class ContentServicesPage {
Util.waitUntilElementIsVisible(this.createdHeader); Util.waitUntilElementIsVisible(this.createdHeader);
} }
checkDandDIsDisplayed() { checkDragAndDropDIsDisplayed() {
Util.waitUntilElementIsVisible(this.dragAndDrop); Util.waitUntilElementIsVisible(this.dragAndDrop);
} }
checkLockIsDislpayedForElement(name) { checkLockIsDisplayedForElement(name) {
let lockButton = element(by.css(`div.adf-data-table-cell[filename="${name}"] button`)); let lockButton = element(by.css(`div.adf-data-table-cell[filename="${name}"] button`));
Util.waitUntilElementIsVisible(lockButton); Util.waitUntilElementIsVisible(lockButton);
} }

View File

@ -45,9 +45,9 @@ export class LoginPage {
needHelp = element(by.css('div[id="adf-login-action-left"]')); needHelp = element(by.css('div[id="adf-login-action-left"]'));
register = element(by.css('div[id="adf-login-action-right"]')); register = element(by.css('div[id="adf-login-action-right"]'));
footerSwitch = element(by.id('switch4')); footerSwitch = element(by.id('switch4'));
rememberMeSwitch = element(by.id('adf-toogle-show-rememberme')); rememberMeSwitch = element(by.id('adf-toggle-show-rememberme'));
successRouteSwitch = element(by.id('adf-toogle-show-successRoute')); successRouteSwitch = element(by.id('adf-toggle-show-successRoute'));
logoSwitch = element(by.id('adf-toogle-logo')); logoSwitch = element(by.id('adf-toggle-logo'));
header = element(by.id('adf-header')); header = element(by.id('adf-header'));
cardBackground = element(by.css('mat-card[class*="adf-login-card"]')); cardBackground = element(by.css('mat-card[class*="adf-login-card"]'));
settingsPage = new SettingsPage(); settingsPage = new SettingsPage();
@ -299,10 +299,6 @@ export class LoginPage {
this.formControllersPage.enableToggle(this.successRouteSwitch); this.formControllersPage.enableToggle(this.successRouteSwitch);
} }
disableLogowitch() {
this.formControllersPage.disableToggle(this.logoSwitch);
}
enableLogoSwitch() { enableLogoSwitch() {
this.formControllersPage.enableToggle(this.logoSwitch); this.formControllersPage.enableToggle(this.logoSwitch);
} }

View File

@ -233,35 +233,35 @@ var MetadataViewPage = function () {
return editPropertyIcon.getAttribute('title'); return editPropertyIcon.getAttribute('title');
}; };
this.clickMetadatGroup = function (groupName) { this.clickMetadataGroup = function (groupName) {
var group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"]')); var group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"]'));
Util.waitUntilElementIsVisible(group); Util.waitUntilElementIsVisible(group);
group.click(); group.click();
}; };
this.checkkMetadatGroupIsPresent = function (groupName) { this.checkMetadataGroupIsPresent = function (groupName) {
var group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"]')); var group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"]'));
return Util.waitUntilElementIsVisible(group); return Util.waitUntilElementIsVisible(group);
}; };
this.checkkMetadatGroupIsNotPresent = function (groupName) { this.checkMetadataGroupIsNotPresent = function (groupName) {
var group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"]')); var group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"]'));
return Util.waitUntilElementIsNotVisible(group); return Util.waitUntilElementIsNotVisible(group);
}; };
this.chekMetadatGroupIsExpand = function (groupName) { this.checkMetadataGroupIsExpand = function (groupName) {
var group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"] > mat-expansion-panel-header')); var group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"] > mat-expansion-panel-header'));
Util.waitUntilElementIsVisible(group); Util.waitUntilElementIsVisible(group);
expect(group.getAttribute('class')).toContain('mat-expanded') expect(group.getAttribute('class')).toContain('mat-expanded')
}; };
this.chekMetadatGroupIsNotExpand = function (groupName) { this.checkMetadataGroupIsNotExpand = function (groupName) {
var group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"] > mat-expansion-panel-header')); var group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"] > mat-expansion-panel-header'));
Util.waitUntilElementIsVisible(group); Util.waitUntilElementIsVisible(group);
expect(group.getAttribute('class')).not.toContain('mat-expanded') expect(group.getAttribute('class')).not.toContain('mat-expanded')
}; };
this.getkMetadatGroupTitle = function (groupName) { this.getMetadataGroupTitle = function (groupName) {
var group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"] > mat-expansion-panel-header > span > mat-panel-title')); var group = element(by.css('mat-expansion-panel[data-automation-id="adf-metadata-group-' + groupName + '"] > mat-expansion-panel-header > span > mat-panel-title'));
Util.waitUntilElementIsVisible(group); Util.waitUntilElementIsVisible(group);
return group.getText(); return group.getText();
@ -397,12 +397,12 @@ var MetadataViewPage = function () {
}) })
}; };
this.checkPopertyIsVisible = function (propertyName, type) { this.checkPropertyIsVisible = function (propertyName, type) {
var property = element(by.css('div[data-automation-id="card-' + type + '-label-' + propertyName + '"]')); var property = element(by.css('div[data-automation-id="card-' + type + '-label-' + propertyName + '"]'));
Util.waitUntilElementIsVisible(property); Util.waitUntilElementIsVisible(property);
}; };
this.checkPopertyIsNotVisible = function (propertyName, type) { this.checkPropertyIsNotVisible = function (propertyName, type) {
var property = element(by.css('div[data-automation-id="card-' + type + '-label-' + propertyName + '"]')); var property = element(by.css('div[data-automation-id="card-' + type + '-label-' + propertyName + '"]'));
Util.waitUntilElementIsNotVisible(property); Util.waitUntilElementIsNotVisible(property);
}; };

View File

@ -32,7 +32,7 @@ export class ProcessListPage {
return this.processListTitle.getText(); return this.processListTitle.getText();
} }
checkProcessDetailsMessagee() { checkProcessDetailsMessage() {
Util.waitUntilElementIsVisible(this.processListTitle); Util.waitUntilElementIsVisible(this.processListTitle);
return this.processDetailsMessage.getText(); return this.processDetailsMessage.getText();
} }

View File

@ -39,7 +39,7 @@ export class TaskDetailsPage {
addInvolvedUserButton = element(by.css('button[id="add-people"] span')); addInvolvedUserButton = element(by.css('button[id="add-people"] span'));
emailInvolvedUser = by.xpath('following-sibling::div[@class="people-email ng-star-inserted"]'); emailInvolvedUser = by.xpath('following-sibling::div[@class="people-email ng-star-inserted"]');
editActionInvolvedUser = by.xpath('following-sibling::div[@class="people-edit-label ng-star-inserted"]'); editActionInvolvedUser = by.xpath('following-sibling::div[@class="people-edit-label ng-star-inserted"]');
tadkDetailsInfoDrawer = element(by.tagName('adf-info-drawer')); taskDetailsInfoDrawer = element(by.tagName('adf-info-drawer'));
taskDetailsSection = element(by.css('div[data-automation-id="adf-tasks-details"]')); taskDetailsSection = element(by.css('div[data-automation-id="adf-tasks-details"]'));
taskDetailsEmptySection = element(by.css('div[data-automation-id="adf-tasks-details--empty"]')); taskDetailsEmptySection = element(by.css('div[data-automation-id="adf-tasks-details--empty"]'));
completeTask = element(by.css('button[id="adf-no-form-complete-button"]')); completeTask = element(by.css('button[id="adf-no-form-complete-button"]'));
@ -284,11 +284,11 @@ export class TaskDetailsPage {
} }
taskInfoDrawerIsDisplayed() { taskInfoDrawerIsDisplayed() {
Util.waitUntilElementIsVisible(this.tadkDetailsInfoDrawer); Util.waitUntilElementIsVisible(this.taskDetailsInfoDrawer);
} }
taskInfoDrawerIsNotDisplayed() { taskInfoDrawerIsNotDisplayed() {
Util.waitUntilElementIsNotOnPage(this.tadkDetailsInfoDrawer); Util.waitUntilElementIsNotOnPage(this.taskDetailsInfoDrawer);
} }
checkNoPeopleIsInvolved() { checkNoPeopleIsInvolved() {

View File

@ -28,7 +28,7 @@ export class SearchFiltersPage {
fileSizeFilter = element(by.css('mat-expansion-panel[data-automation-id="expansion-panel-SEARCH.FACET_FIELDS.SIZE"]')); fileSizeFilter = element(by.css('mat-expansion-panel[data-automation-id="expansion-panel-SEARCH.FACET_FIELDS.SIZE"]'));
showMoreButtonForSize = element(by.css('mat-expansion-panel[data-automation-id="expansion-panel-SEARCH.FACET_FIELDS.SIZE"] button[title="Show more"]')); showMoreButtonForSize = element(by.css('mat-expansion-panel[data-automation-id="expansion-panel-SEARCH.FACET_FIELDS.SIZE"] button[title="Show more"]'));
showLessButtonForSize = element(by.css('mat-expansion-panel[data-automation-id="expansion-panel-SEARCH.FACET_FIELDS.SIZE"] button[title="Show less"]')); showLessButtonForSize = element(by.css('mat-expansion-panel[data-automation-id="expansion-panel-SEARCH.FACET_FIELDS.SIZE"] button[title="Show less"]'));
numberOfCheckboxesforSize = element.all(by.css('mat-checkbox[data-automation-id*="checkbox-SEARCH.FACET_FIELDS.SIZE"]')); numberOfCheckboxesForSize = element.all(by.css('mat-checkbox[data-automation-id*="checkbox-SEARCH.FACET_FIELDS.SIZE"]'));
checkSearchFiltersIsDisplayed() { checkSearchFiltersIsDisplayed() {
Util.waitUntilElementIsVisible(this.searchFilters); Util.waitUntilElementIsVisible(this.searchFilters);
@ -110,7 +110,7 @@ export class SearchFiltersPage {
this.showMoreButtonForSize.isDisplayed().then(async (visible) => { this.showMoreButtonForSize.isDisplayed().then(async (visible) => {
if (visible) { if (visible) {
for (let checkboxes = 5; checkboxes <= totalNumberOfCheckboxes; checkboxes + 5) { for (let checkboxes = 5; checkboxes <= totalNumberOfCheckboxes; checkboxes + 5) {
let totalNumberOfCheckboxes = await numberOfCheckboxesforSize.count(); let totalNumberOfCheckboxes = await numberOfCheckboxesForSize.count();
expect(totalNumberOfCheckboxes).toEqual(checkboxes); expect(totalNumberOfCheckboxes).toEqual(checkboxes);
} }
@ -131,7 +131,7 @@ export class SearchFiltersPage {
this.showLessButtonForSize.isDisplayed().then(async (visible) => { this.showLessButtonForSize.isDisplayed().then(async (visible) => {
if (visible) { if (visible) {
let totalNumberOfCheckboxes = await this.numberOfCheckboxesforSize.count(); let totalNumberOfCheckboxes = await this.numberOfCheckboxesForSize.count();
for (let checkboxes = totalNumberOfCheckboxes; checkboxes > 10; checkboxes = totalNumberOfCheckboxes - checkboxes) { for (let checkboxes = totalNumberOfCheckboxes; checkboxes > 10; checkboxes = totalNumberOfCheckboxes - checkboxes) {
expect(totalNumberOfCheckboxes).toEqual(checkboxes); expect(totalNumberOfCheckboxes).toEqual(checkboxes);

View File

@ -56,12 +56,12 @@ export class VersionManagePage {
return fileElement.getText(); return fileElement.getText();
} }
chekFileVersionExist(version) { checkFileVersionExist(version) {
let fileVersion = element(by.id(`adf-version-list-item-version-${version}`)); let fileVersion = element(by.id(`adf-version-list-item-version-${version}`));
return Util.waitUntilElementIsVisible(fileVersion); return Util.waitUntilElementIsVisible(fileVersion);
} }
chekFileVersionNotExist(version) { checkFileVersionNotExist(version) {
let fileVersion = element(by.id(`adf-version-list-item-version-${version}`)); let fileVersion = element(by.id(`adf-version-list-item-version-${version}`));
return Util.waitUntilElementIsNotVisible(fileVersion); return Util.waitUntilElementIsNotVisible(fileVersion);
} }

View File

@ -36,7 +36,7 @@ describe('Modify applications', () => {
let navigationBarPage = new NavigationBarPage(); let navigationBarPage = new NavigationBarPage();
let processServicesPage = new ProcessServicesPage(); let processServicesPage = new ProcessServicesPage();
let app = resources.Files.APP_WITH_PROCESSES; let app = resources.Files.APP_WITH_PROCESSES;
let appTobeDeleted = resources.Files.SIMPLE_APP_WITH_USER_FORM; let appToBeDeleted = resources.Files.SIMPLE_APP_WITH_USER_FORM;
let replacingApp = resources.Files.WIDGETS_SMOKE_TEST; let replacingApp = resources.Files.WIDGETS_SMOKE_TEST;
let apps = new AppsActions(); let apps = new AppsActions();
let modelActions = new ModelsActions(); let modelActions = new ModelsActions();
@ -57,7 +57,7 @@ describe('Modify applications', () => {
await this.alfrescoJsApi.login(user.email, user.password); await this.alfrescoJsApi.login(user.email, user.password);
firstApp = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location); firstApp = await apps.importPublishDeployApp(this.alfrescoJsApi, app.file_location);
appVersionToBeDeleted = await apps.importPublishDeployApp(this.alfrescoJsApi, appTobeDeleted.file_location); appVersionToBeDeleted = await apps.importPublishDeployApp(this.alfrescoJsApi, appToBeDeleted.file_location);
loginPage.loginToProcessServicesUsingUserModel(user); loginPage.loginToProcessServicesUsingUserModel(user);
@ -118,8 +118,8 @@ describe('Modify applications', () => {
processServicesPage.checkApsContainer(); processServicesPage.checkApsContainer();
processServicesPage.checkAppIsDisplayed(appTobeDeleted.title); processServicesPage.checkAppIsDisplayed(appToBeDeleted.title);
expect(processServicesPage.getBackgroundColor(appTobeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.ORANGE); expect(processServicesPage.getBackgroundColor(appToBeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.ORANGE);
browser.controlFlow().execute(() => { browser.controlFlow().execute(() => {
return apps.importNewVersionAppDefinitionPublishDeployApp(this.alfrescoJsApi, replacingApp.file_location, appVersionToBeDeleted.id); return apps.importNewVersionAppDefinitionPublishDeployApp(this.alfrescoJsApi, replacingApp.file_location, appVersionToBeDeleted.id);
@ -127,9 +127,9 @@ describe('Modify applications', () => {
browser.refresh(); browser.refresh();
processServicesPage.getBackgroundColor(appTobeDeleted.title); processServicesPage.getBackgroundColor(appToBeDeleted.title);
expect(processServicesPage.getBackgroundColor(appTobeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.GREY); expect(processServicesPage.getBackgroundColor(appToBeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.GREY);
browser.controlFlow().execute(async () => { browser.controlFlow().execute(async () => {
await modelActions.deleteVersionModel(this.alfrescoJsApi, appVersionToBeDeleted.id); await modelActions.deleteVersionModel(this.alfrescoJsApi, appVersionToBeDeleted.id);
@ -140,8 +140,8 @@ describe('Modify applications', () => {
browser.refresh(); browser.refresh();
processServicesPage.checkApsContainer(); processServicesPage.checkApsContainer();
processServicesPage.checkAppIsDisplayed(appTobeDeleted.title); processServicesPage.checkAppIsDisplayed(appToBeDeleted.title);
expect(processServicesPage.getBackgroundColor(appTobeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.ORANGE); expect(processServicesPage.getBackgroundColor(appToBeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.ORANGE);
}); });
}); });

View File

@ -84,7 +84,7 @@ describe('Start Task - Task App', () => {
it('[C274690] Should be able to open a file attached to a start form', () => { it('[C274690] Should be able to open a file attached to a start form', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage taskPage
.createNewTask() .createNewTask()
@ -92,8 +92,8 @@ describe('Start Task - Task App', () => {
.addForm(app.formName) .addForm(app.formName)
.clickStartButton(); .clickStartButton();
widget.attachFileWidget().attachFile(appFields.attachfile_id, pdfFile.location); widget.attachFileWidget().attachFile(appFields.attachFile_id, pdfFile.location);
widget.attachFileWidget().checkFileIsAttached(appFields.attachfile_id, pdfFile.name); widget.attachFileWidget().checkFileIsAttached(appFields.attachFile_id, pdfFile.name);
widget.attachFileWidget().viewFile(pdfFile.name); widget.attachFileWidget().viewFile(pdfFile.name);
viewerPage.checkFileContent('1', pdfFile.firstPageText); viewerPage.checkFileContent('1', pdfFile.firstPageText);

View File

@ -97,7 +97,7 @@ describe('Attach Form Component', () => {
it('[C280047] Should be able to view the attach-form component after creating a standalone task', () => { it('[C280047] Should be able to view the attach-form component after creating a standalone task', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList(testNames.taskName); taskPage.tasksListPage().selectTaskFromTasksList(testNames.taskName);
attachFormPage.checkNoFormMessageIsDisplayed(); attachFormPage.checkNoFormMessageIsDisplayed();
@ -108,7 +108,7 @@ describe('Attach Form Component', () => {
it('[C280048] Should be able to view the attach-form component after clicking cancel button', () => { it('[C280048] Should be able to view the attach-form component after clicking cancel button', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList(testNames.taskName); taskPage.tasksListPage().selectTaskFromTasksList(testNames.taskName);
attachFormPage.clickAttachFormButton(); attachFormPage.clickAttachFormButton();
@ -128,7 +128,7 @@ describe('Attach Form Component', () => {
it('[C280017] Should be able to attach a form on a standalone task and complete', () => { it('[C280017] Should be able to attach a form on a standalone task and complete', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList(testNames.taskName); taskPage.tasksListPage().selectTaskFromTasksList(testNames.taskName);
attachFormPage.clickAttachFormButton(); attachFormPage.clickAttachFormButton();
@ -139,7 +139,7 @@ describe('Attach Form Component', () => {
formFields.setFieldValue(by.id, formTextField, testNames.formFieldValue); formFields.setFieldValue(by.id, formTextField, testNames.formFieldValue);
formFields.completeForm(); formFields.completeForm();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList(testNames.taskName); taskPage.tasksListPage().selectTaskFromTasksList(testNames.taskName);
expect(formFields.getFieldValue(formTextField)).toEqual(testNames.formFieldValue); expect(formFields.getFieldValue(formTextField)).toEqual(testNames.formFieldValue);

View File

@ -76,7 +76,7 @@ describe('Checklist component', () => {
it('[C279976] Should no checklist be created when no title is typed', () => { it('[C279976] Should no checklist be created when no title is typed', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]);
taskPage.clickOnAddChecklistButton().clickCreateChecklistButton(); taskPage.clickOnAddChecklistButton().clickCreateChecklistButton();
@ -86,7 +86,7 @@ describe('Checklist component', () => {
it('[C279975] Should no checklist be created when clicking on Cancel button on checklist dialog', () => { it('[C279975] Should no checklist be created when clicking on Cancel button on checklist dialog', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]);
taskPage.clickOnAddChecklistButton().addName(checklists[0]).clickCancelButton(); taskPage.clickOnAddChecklistButton().addName(checklists[0]).clickCancelButton();
@ -96,7 +96,7 @@ describe('Checklist component', () => {
it('[C261025] Should Checklist dialog be displayed when clicking on add checklist button', () => { it('[C261025] Should Checklist dialog be displayed when clicking on add checklist button', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]);
taskPage.clickOnAddChecklistButton(); taskPage.clickOnAddChecklistButton();
@ -109,7 +109,7 @@ describe('Checklist component', () => {
it('[C261026] Should Checklist number increase when a new checklist is added', () => { it('[C261026] Should Checklist number increase when a new checklist is added', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[1]).selectTaskFromTasksList(tasks[1]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[1]).selectTaskFromTasksList(tasks[1]);
taskPage.clickOnAddChecklistButton().addName(checklists[2]).clickCreateChecklistButton(); taskPage.clickOnAddChecklistButton().addName(checklists[2]).clickCreateChecklistButton();
@ -124,7 +124,7 @@ describe('Checklist component', () => {
it('[C279980] Should checklist be removed when clicking on remove button', () => { it('[C279980] Should checklist be removed when clicking on remove button', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[2]).selectTaskFromTasksList(tasks[2]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[2]).selectTaskFromTasksList(tasks[2]);
taskPage.clickOnAddChecklistButton().addName(removeChecklist[0]).clickCreateChecklistButton(); taskPage.clickOnAddChecklistButton().addName(removeChecklist[0]).clickCreateChecklistButton();
@ -140,7 +140,7 @@ describe('Checklist component', () => {
it('[C261027] Should not be able to remove a completed Checklist when clicking on remove button', () => { it('[C261027] Should not be able to remove a completed Checklist when clicking on remove button', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[3]).selectTaskFromTasksList(tasks[3]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[3]).selectTaskFromTasksList(tasks[3]);
taskPage.clickOnAddChecklistButton().addName(removeChecklist[2]).clickCreateChecklistButton(); taskPage.clickOnAddChecklistButton().addName(removeChecklist[2]).clickCreateChecklistButton();
@ -162,7 +162,7 @@ describe('Checklist component', () => {
it('[C261028] Should all checklists of a task be completed when the task is completed', () => { it('[C261028] Should all checklists of a task be completed when the task is completed', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[4]).selectTaskFromTasksList(tasks[4]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[4]).selectTaskFromTasksList(tasks[4]);
taskPage.clickOnAddChecklistButton().addName(hierarchyChecklist[0]).clickCreateChecklistButton(); taskPage.clickOnAddChecklistButton().addName(hierarchyChecklist[0]).clickCreateChecklistButton();
@ -179,7 +179,7 @@ describe('Checklist component', () => {
taskPage.tasksListPage().selectTaskFromTasksList(tasks[4]); taskPage.tasksListPage().selectTaskFromTasksList(tasks[4]);
taskPage.completeTaskNoForm(); taskPage.completeTaskNoForm();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[4]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[4]);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(hierarchyChecklist[0]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(hierarchyChecklist[0]);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(hierarchyChecklist[1]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(hierarchyChecklist[1]);

View File

@ -95,7 +95,7 @@ describe('Comment component for Processes', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList(taskName.completed_task); taskPage.tasksListPage().selectTaskFromTasksList(taskName.completed_task);
commentsPage.checkCommentInputIsNotDisplayed(); commentsPage.checkCommentInputIsNotDisplayed();
@ -118,7 +118,7 @@ describe('Comment component for Processes', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList(taskName.multiple_users); taskPage.tasksListPage().selectTaskFromTasksList(taskName.multiple_users);
taskPage.taskDetails().selectActivityTab(); taskPage.taskDetails().selectActivityTab();
@ -148,7 +148,7 @@ describe('Comment component for Processes', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList(taskName.multiple_users); taskPage.tasksListPage().selectTaskFromTasksList(taskName.multiple_users);
taskPage.taskDetails().selectActivityTab(); taskPage.taskDetails().selectActivityTab();

View File

@ -69,7 +69,7 @@ describe('Empty Process List Test', () => {
processServicesPage.checkApsContainer(); processServicesPage.checkApsContainer();
processServicesPage.goToApp(appA.title).clickProcessButton(); processServicesPage.goToApp(appA.title).clickProcessButton();
expect(processListPage.checkProcessListTitleIsDisplayed()).toEqual('No Processes Found'); expect(processListPage.checkProcessListTitleIsDisplayed()).toEqual('No Processes Found');
expect(processListPage.checkProcessDetailsMessagee()).toEqual('No process details found'); expect(processListPage.checkProcessDetailsMessage()).toEqual('No process details found');
processFiltersPage.clickCreateProcessButton(); processFiltersPage.clickCreateProcessButton();
processFiltersPage.clickNewProcessDropdown(); processFiltersPage.clickNewProcessDropdown();
@ -83,7 +83,7 @@ describe('Empty Process List Test', () => {
processServicesPage.checkApsContainer(); processServicesPage.checkApsContainer();
processServicesPage.goToApp(appB.title).clickProcessButton(); processServicesPage.goToApp(appB.title).clickProcessButton();
expect(processListPage.checkProcessListTitleIsDisplayed()).toEqual('No Processes Found'); expect(processListPage.checkProcessListTitleIsDisplayed()).toEqual('No Processes Found');
expect(processListPage.checkProcessDetailsMessagee()).toEqual('No process details found'); expect(processListPage.checkProcessDetailsMessage()).toEqual('No process details found');
processFiltersPage.clickCreateProcessButton(); processFiltersPage.clickCreateProcessButton();
processFiltersPage.clickNewProcessDropdown(); processFiltersPage.clickNewProcessDropdown();

View File

@ -80,7 +80,7 @@ describe('Form widgets', () => {
loginPage.loginToProcessServicesUsingUserModel(processUserModel); loginPage.loginToProcessServicesUsingUserModel(processUserModel);
processServicesPage.goToProcessServices().goToApp(appModel.name) processServicesPage.goToProcessServices().goToApp(appModel.name)
.clickTasksButton(); .clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(newTask).addDescription('Description').addForm(app.formName).clickStartButton() taskPage.createNewTask().addName(newTask).addDescription('Description').addForm(app.formName).clickStartButton()
.then(() => { .then(() => {
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(newTask); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(newTask);
@ -127,10 +127,10 @@ describe('Form widgets', () => {
it('[C272780] Should display attach file and attach folder in form', () => { it('[C272780] Should display attach file and attach folder in form', () => {
expect(taskPage.formFields().getFieldLabel(appFields.attachfolder_id)) expect(taskPage.formFields().getFieldLabel(appFields.attachFolder_id))
.toEqual(formInstance.getWidgetBy('id', appFields.attachfolder_id).name); .toEqual(formInstance.getWidgetBy('id', appFields.attachFolder_id).name);
expect(taskPage.formFields().getFieldLabel(appFields.attachfile_id)) expect(taskPage.formFields().getFieldLabel(appFields.attachFile_id))
.toEqual(formInstance.getWidgetBy('id', appFields.attachfile_id).name); .toEqual(formInstance.getWidgetBy('id', appFields.attachFile_id).name);
}); });
it('[C272781] Should display date and date & time in form', () => { it('[C272781] Should display date and date & time in form', () => {
@ -161,10 +161,10 @@ describe('Form widgets', () => {
it('[C272783] Should display displayText and displayValue in form', () => { it('[C272783] Should display displayText and displayValue in form', () => {
expect(widget.displayTextWidget().getFieldLabel(appFields.displaytext_id)) expect(widget.displayTextWidget().getFieldLabel(appFields.displayText_id))
.toEqual(formInstance.getWidgetBy('id', appFields.displaytext_id).value); .toEqual(formInstance.getWidgetBy('id', appFields.displayText_id).value);
expect(widget.displayValueWidget().getFieldLabel(appFields.displayvalue_id)) expect(widget.displayValueWidget().getFieldLabel(appFields.displayValue_id))
.toEqual(formInstance.getWidgetBy('id', appFields.displayvalue_id).value || 'Unknown type: readonly'); .toEqual(formInstance.getWidgetBy('id', appFields.displayValue_id).value || 'Unknown type: readonly');
}); });
it('[C272784] Should display typeahead and header in form', () => { it('[C272784] Should display typeahead and header in form', () => {
@ -172,10 +172,10 @@ describe('Form widgets', () => {
expect(widget.headerWidget().getFieldLabel(appFields.header_id)) expect(widget.headerWidget().getFieldLabel(appFields.header_id))
.toEqual(formInstance.getWidgetBy('id', appFields.header_id).name); .toEqual(formInstance.getWidgetBy('id', appFields.header_id).name);
expect(taskPage.formFields().getFieldValue(appFields.typeahead_id)) expect(taskPage.formFields().getFieldValue(appFields.typeAhead_id))
.toEqual(formInstance.getWidgetBy('id', appFields.typeahead_id).value || ''); .toEqual(formInstance.getWidgetBy('id', appFields.typeAhead_id).value || '');
expect(taskPage.formFields().getFieldLabel(appFields.typeahead_id)) expect(taskPage.formFields().getFieldLabel(appFields.typeAhead_id))
.toEqual(formInstance.getWidgetBy('id', appFields.typeahead_id).name); .toEqual(formInstance.getWidgetBy('id', appFields.typeAhead_id).name);
}); });
it('[C272785] Should display checkbox and radio button in form', () => { it('[C272785] Should display checkbox and radio button in form', () => {
@ -184,10 +184,10 @@ describe('Form widgets', () => {
expect(taskPage.formFields().getFieldLabel(appFields.checkbox_id)) expect(taskPage.formFields().getFieldLabel(appFields.checkbox_id))
.toContain(formInstance.getWidgetBy('id', appFields.checkbox_id).name); .toContain(formInstance.getWidgetBy('id', appFields.checkbox_id).name);
expect(taskPage.formFields().getFieldLabel(appFields.radiobuttons_id)) expect(taskPage.formFields().getFieldLabel(appFields.radioButtons_id))
.toContain(formInstance.getWidgetBy('id', appFields.radiobuttons_id).name); .toContain(formInstance.getWidgetBy('id', appFields.radioButtons_id).name);
expect(widget.radioWidget().getSpecificOptionLabel(appFields.radiobuttons_id, radioOption)) expect(widget.radioWidget().getSpecificOptionLabel(appFields.radioButtons_id, radioOption))
.toContain(formInstance.getWidgetBy('id', appFields.radiobuttons_id).options[radioOption - 1].name); .toContain(formInstance.getWidgetBy('id', appFields.radioButtons_id).options[radioOption - 1].name);
}); });
it('[C268149] Should display hyperlink, dropdown and dynamic table in form', () => { it('[C268149] Should display hyperlink, dropdown and dynamic table in form', () => {
@ -202,10 +202,10 @@ describe('Form widgets', () => {
expect(widget.dropdown().getSelectedOptionText(appFields.dropdown_id)) expect(widget.dropdown().getSelectedOptionText(appFields.dropdown_id))
.toContain(formInstance.getWidgetBy('id', appFields.dropdown_id).value); .toContain(formInstance.getWidgetBy('id', appFields.dropdown_id).value);
expect(widget.dynamicTable().getFieldLabel(appFields.dynamictable_id)) expect(widget.dynamicTable().getFieldLabel(appFields.dynamicTable_id))
.toContain(formInstance.getWidgetBy('id', appFields.dynamictable_id).name); .toContain(formInstance.getWidgetBy('id', appFields.dynamicTable_id).name);
expect(widget.dynamicTable().getColumnName(appFields.dynamictable_id)) expect(widget.dynamicTable().getColumnName(appFields.dynamicTable_id))
.toContain(formInstance.getWidgetBy('id', appFields.dynamictable_id).columnDefinitions[0].name); .toContain(formInstance.getWidgetBy('id', appFields.dynamicTable_id).columnDefinitions[0].name);
}); });
}); });

View File

@ -75,7 +75,7 @@ describe('Items per page set to 15 and adding of tasks', () => {
it('[C260306] Items per page set to 15 and adding of tasks', () => { it('[C260306] Items per page set to 15 and adding of tasks', () => {
processServicesPage.goToProcessServices().goToTaskApp(); processServicesPage.goToProcessServices().goToTaskApp();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
paginationPage.selectItemsPerPage(itemsPerPage.fifteen); paginationPage.selectItemsPerPage(itemsPerPage.fifteen);
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.fifteen); expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.fifteen);
expect(paginationPage.getCurrentPage()).toEqual('Page ' + currentPage); expect(paginationPage.getCurrentPage()).toEqual('Page ' + currentPage);

View File

@ -78,7 +78,7 @@ describe('People component', () => {
it('[C279989] Should no people be involved when no user is typed', () => { it('[C279989] Should no people be involved when no user is typed', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]);
taskPage.taskDetails().clickInvolvePeopleButton(); taskPage.taskDetails().clickInvolvePeopleButton();
@ -88,7 +88,7 @@ describe('People component', () => {
it('[C279990] Should no people be involved when clicking on Cancel button', () => { it('[C279990] Should no people be involved when clicking on Cancel button', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]);
taskPage.taskDetails().clickInvolvePeopleButton() taskPage.taskDetails().clickInvolvePeopleButton()
@ -101,7 +101,7 @@ describe('People component', () => {
it('[C261029] Should People dialog be displayed when clicking on add people button', () => { it('[C261029] Should People dialog be displayed when clicking on add people button', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]);
taskPage.taskDetails().clickInvolvePeopleButton(); taskPage.taskDetails().clickInvolvePeopleButton();
@ -113,7 +113,7 @@ describe('People component', () => {
it('[C279991] Should not be able to involve a user when is the creator of the task', () => { it('[C279991] Should not be able to involve a user when is the creator of the task', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]);
taskPage.taskDetails().clickInvolvePeopleButton() taskPage.taskDetails().clickInvolvePeopleButton()
@ -125,7 +125,7 @@ describe('People component', () => {
it('[C261030] Should involved user be removed when clicking on remove button', () => { it('[C261030] Should involved user be removed when clicking on remove button', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]).selectTaskFromTasksList(tasks[0]);
taskPage.taskDetails().clickInvolvePeopleButton() taskPage.taskDetails().clickInvolvePeopleButton()
@ -142,7 +142,7 @@ describe('People component', () => {
it('[C280013] Should not be able to complete a task by a involved user', () => { it('[C280013] Should not be able to complete a task by a involved user', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[1]).selectTaskFromTasksList(tasks[1]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[1]).selectTaskFromTasksList(tasks[1]);
taskPage.taskDetails().clickInvolvePeopleButton() taskPage.taskDetails().clickInvolvePeopleButton()
@ -156,7 +156,7 @@ describe('People component', () => {
loginPage.loginToProcessServicesUsingUserModel(assigneeUserModel); loginPage.loginToProcessServicesUsingUserModel(assigneeUserModel);
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[1]).selectTaskFromTasksList(tasks[1]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[1]).selectTaskFromTasksList(tasks[1]);
taskPage.completeTaskNoFormNotDisplayed(); taskPage.completeTaskNoFormNotDisplayed();
@ -165,7 +165,7 @@ describe('People component', () => {
it('[C261031] Should be able to involve multiple users to a task', () => { it('[C261031] Should be able to involve multiple users to a task', () => {
loginPage.loginToProcessServicesUsingUserModel(processUserModel); loginPage.loginToProcessServicesUsingUserModel(processUserModel);
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[2]).selectTaskFromTasksList(tasks[2]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[2]).selectTaskFromTasksList(tasks[2]);
taskPage.taskDetails().clickInvolvePeopleButton() taskPage.taskDetails().clickInvolvePeopleButton()
@ -196,7 +196,7 @@ describe('People component', () => {
it('[C280014] Should involved user see the task in completed filters when the task is completed', () => { it('[C280014] Should involved user see the task in completed filters when the task is completed', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[3]).selectTaskFromTasksList(tasks[3]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[3]).selectTaskFromTasksList(tasks[3]);
taskPage.taskDetails().clickInvolvePeopleButton() taskPage.taskDetails().clickInvolvePeopleButton()
@ -209,17 +209,17 @@ describe('People component', () => {
.toEqual(assigneeUserModel.email); .toEqual(assigneeUserModel.email);
taskPage.completeTaskNoForm(); taskPage.completeTaskNoForm();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList(tasks[3]); taskPage.tasksListPage().selectTaskFromTasksList(tasks[3]);
expect(taskPage.taskDetails().getInvolvedUserEmail(assigneeUserModel.firstName + ' ' + assigneeUserModel.lastName)) expect(taskPage.taskDetails().getInvolvedUserEmail(assigneeUserModel.firstName + ' ' + assigneeUserModel.lastName))
.toEqual(assigneeUserModel.email); .toEqual(assigneeUserModel.email);
loginPage.loginToProcessServicesUsingUserModel(assigneeUserModel); loginPage.loginToProcessServicesUsingUserModel(assigneeUserModel);
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[3]).selectTaskFromTasksList(tasks[3]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[3]).selectTaskFromTasksList(tasks[3]);
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
taskPage.tasksListPage().checkTaskIsNotDisplayedInTasksList(tasks[3]); taskPage.tasksListPage().checkTaskIsNotDisplayedInTasksList(tasks[3]);
}); });

View File

@ -40,7 +40,7 @@ describe('Task List Pagination - Sorting', () => {
let app = resources.Files.SIMPLE_APP_WITH_USER_FORM; let app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
let nrOfTasks = 20, processUserModel; let nrOfTasks = 20, processUserModel;
let taskNameBase = 'Task'; let taskNameBase = 'Task';
let taskNames = Util.generateSeqeunceFiles(10, nrOfTasks + 9, taskNameBase, ''); let taskNames = Util.generateSequenceFiles(10, nrOfTasks + 9, taskNameBase, '');
let itemsPerPage = { let itemsPerPage = {
five: '5', five: '5',
@ -79,7 +79,7 @@ describe('Task List Pagination - Sorting', () => {
it('[C260308] Should be possible to sort tasks by name', () => { it('[C260308] Should be possible to sort tasks by name', () => {
processServicesPage.goToProcessServices().goToTaskApp(); processServicesPage.goToProcessServices().goToTaskApp();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
taskPage.tasksListPage().waitForTableBody(); taskPage.tasksListPage().waitForTableBody();
paginationPage.selectItemsPerPage(itemsPerPage.twenty); paginationPage.selectItemsPerPage(itemsPerPage.twenty);
taskPage.tasksListPage().waitForTableBody(); taskPage.tasksListPage().waitForTableBody();

View File

@ -72,37 +72,37 @@ describe('Start Task - Task App', () => {
it('[C260421] Should a standalone task be displayed when creating a new task without form', () => { it('[C260421] Should a standalone task be displayed when creating a new task without form', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(tasks[0]).clickStartButton() taskPage.createNewTask().addName(tasks[0]).clickStartButton()
.then(() => { .then(() => {
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]);
taskPage.formFields().noFormIsDisplayed(); taskPage.formFields().noFormIsDisplayed();
expect(taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASKDETAILS.NO_FORM); expect(taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM);
expect(taskPage.formFields().getNoFormMessage()).toEqual(noFormMessage); expect(taskPage.formFields().getNoFormMessage()).toEqual(noFormMessage);
}); });
}); });
it('[C268910] Should a standalone task be displayed in completed tasks when completing it', () => { it('[C268910] Should a standalone task be displayed in completed tasks when completing it', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(tasks[1]).clickStartButton() taskPage.createNewTask().addName(tasks[1]).clickStartButton()
.then(() => { .then(() => {
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[1]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[1]);
taskPage.formFields().noFormIsDisplayed(); taskPage.formFields().noFormIsDisplayed();
taskPage.completeTaskNoForm(); taskPage.completeTaskNoForm();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList(tasks[1]); taskPage.tasksListPage().selectTaskFromTasksList(tasks[1]);
expect(taskPage.formFields().getCompletedTaskNoFormMessage()).toEqual('Task ' + tasks[1] + ' completed'); expect(taskPage.formFields().getCompletedTaskNoFormMessage()).toEqual('Task ' + tasks[1] + ' completed');
taskPage.formFields().noFormIsDisplayed(); taskPage.formFields().noFormIsDisplayed();
expect(taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASKDETAILS.NO_FORM); expect(taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM);
}); });
}); });
it('[C268911] Should allow adding a form to a standalone task when clicking on Add form button', () => { it('[C268911] Should allow adding a form to a standalone task when clicking on Add form button', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(tasks[2]).clickStartButton() taskPage.createNewTask().addName(tasks[2]).clickStartButton()
.then(() => { .then(() => {
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[2]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[2]);
@ -115,7 +115,7 @@ describe('Start Task - Task App', () => {
it('[C268912] Should a standalone task be displayed when removing the form from APS', () => { it('[C268912] Should a standalone task be displayed when removing the form from APS', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(tasks[3]).addForm(app.formName).clickStartButton(); taskPage.createNewTask().addName(tasks[3]).addForm(app.formName).clickStartButton();
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[3]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[3]);
@ -131,7 +131,7 @@ describe('Start Task - Task App', () => {
taskPage.checkTaskTitle(tasks[3]); taskPage.checkTaskTitle(tasks[3]);
taskPage.formFields().noFormIsDisplayed(); taskPage.formFields().noFormIsDisplayed();
expect(taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASKDETAILS.NO_FORM); expect(taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM);
expect(taskPage.formFields().getNoFormMessage()).toEqual(noFormMessage); expect(taskPage.formFields().getNoFormMessage()).toEqual(noFormMessage);
}); });

View File

@ -145,7 +145,7 @@ describe('Start Process Component', () => {
processFiltersPage.clickCreateProcessButton(); processFiltersPage.clickCreateProcessButton();
processFiltersPage.clickNewProcessDropdown(); processFiltersPage.clickNewProcessDropdown();
startProcessPage.enterProcessName(''); startProcessPage.enterProcessName('');
browser.actions().sendKeys('v\b\b').perform(); // clear doesnt' trigger the validator browser.actions().sendKeys('v\b\b').perform(); // clear doesn't trigger the validator
startProcessPage.checkStartProcessButtonIsDisabled(); startProcessPage.checkStartProcessButtonIsDisabled();
startProcessPage.clickCancelProcessButton(); startProcessPage.clickCancelProcessButton();
processFiltersPage.checkNoContentMessage(); processFiltersPage.checkNoContentMessage();
@ -185,14 +185,14 @@ describe('Start Process Component', () => {
return this.alfrescoJsApi.activiti.processApi.getProcessInstance(result); return this.alfrescoJsApi.activiti.processApi.getProcessInstance(result);
}) })
.then(function (response) { .then(function (response) {
expect(processDetailsPage.getProcessStatus()).toEqual(CONSTANTS.PROCESSSTATUS.RUNNING); expect(processDetailsPage.getPROCESS_STATUS()).toEqual(CONSTANTS.PROCESS_STATUS.RUNNING);
expect(processDetailsPage.getEndDate()).toEqual(CONSTANTS.PROCESSENDDATE); expect(processDetailsPage.getEndDate()).toEqual(CONSTANTS.PROCESS_END_DATE);
expect(processDetailsPage.getProcessCategory()).toEqual(CONSTANTS.PROCESSCATEGORY); expect(processDetailsPage.getProcessCategory()).toEqual(CONSTANTS.PROCESS_CATEGORY);
expect(processDetailsPage.getBusinessKey()).toEqual(CONSTANTS.PROCESSBUSINESSKEY); expect(processDetailsPage.getBusinessKey()).toEqual(CONSTANTS.PROCESS_BUSINESS_KEY);
expect(processDetailsPage.getCreatedBy()).toEqual(response.getStartedBy().getEntireName()); expect(processDetailsPage.getCreatedBy()).toEqual(response.getStartedBy().getEntireName());
expect(processDetailsPage.getCreated()).toEqual(dateFormat(CONSTANTS.PROCESSDATEFORMAT)); expect(processDetailsPage.getCreated()).toEqual(dateFormat(CONSTANTS.PROCESS_DATE_FORMAT));
expect(processDetailsPage.getId()).toEqual(response.getId()); expect(processDetailsPage.getId()).toEqual(response.getId());
expect(processDetailsPage.getProcessDescription()).toEqual(CONSTANTS.PROCESSDESCRIPTION); expect(processDetailsPage.getPROCESS_DESCRIPTION()).toEqual(CONSTANTS.PROCESS_DESCRIPTION);
expect(processDetailsPage.checkProcessTitleIsDisplayed()).toEqual(response.getName()); expect(processDetailsPage.checkProcessTitleIsDisplayed()).toEqual(response.getName());
}); });
}); });

View File

@ -43,7 +43,7 @@ import CONSTANTS = require('../util/constants');
describe('Start Task - Custom App', () => { describe('Start Task - Custom App', () => {
let TASKDATAFORMAT = 'mmm dd yyyy'; let TASK_DATA_FORMAT = 'mmm dd yyyy';
let loginPage = new LoginPage(); let loginPage = new LoginPage();
let processServicesPage = new ProcessServicesPage(); let processServicesPage = new ProcessServicesPage();
@ -98,7 +98,7 @@ describe('Start Task - Custom App', () => {
taskPage taskPage
.filtersPage() .filtersPage()
.goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); .goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage taskPage
.createNewTask() .createNewTask()
@ -144,7 +144,7 @@ describe('Start Task - Custom App', () => {
it('[C263946] Should display information box for started task', () => { it('[C263946] Should display information box for started task', () => {
processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton(); processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(tasks[1]).addDescription('Description') taskPage.createNewTask().addName(tasks[1]).addDescription('Description')
.addForm(app.formName).clickStartButton() .addForm(app.formName).clickStartButton()
.then(() => { .then(() => {
@ -157,24 +157,24 @@ describe('Start Task - Custom App', () => {
let taskModel = new TaskModel(response.data[0]); let taskModel = new TaskModel(response.data[0]);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskModel.getName()); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskModel.getName());
expect(taskPage.taskDetails().getCreated()).toEqual(dateFormat(taskModel.getCreated(), TASKDATAFORMAT)); expect(taskPage.taskDetails().getCreated()).toEqual(dateFormat(taskModel.getCreated(), TASK_DATA_FORMAT));
expect(taskPage.taskDetails().getId()).toEqual(taskModel.getId()); expect(taskPage.taskDetails().getId()).toEqual(taskModel.getId());
expect(taskPage.taskDetails().getDescription()).toEqual(taskModel.getDescription()); expect(taskPage.taskDetails().getDescription()).toEqual(taskModel.getDescription());
expect(taskPage.taskDetails().getAssignee()).toEqual(taskModel.getAssignee().getEntireName()); expect(taskPage.taskDetails().getAssignee()).toEqual(taskModel.getAssignee().getEntireName());
expect(taskPage.taskDetails().getCategory()) expect(taskPage.taskDetails().getCategory())
.toEqual(taskModel.getCategory() === null ? CONSTANTS.TASKDETAILS.NO_CATEGORY : taskModel.getCategory()); .toEqual(taskModel.getCategory() === null ? CONSTANTS.TASK_DETAILS.NO_CATEGORY : taskModel.getCategory());
expect(taskPage.taskDetails().getDueDate()) expect(taskPage.taskDetails().getDueDate())
.toEqual(taskModel.getDueDate() === null ? CONSTANTS.TASKDETAILS.NO_DATE : taskModel.getDueDate()); .toEqual(taskModel.getDueDate() === null ? CONSTANTS.TASK_DETAILS.NO_DATE : taskModel.getDueDate());
expect(taskPage.taskDetails().getParentName()) expect(taskPage.taskDetails().getParentName())
.toEqual(taskModel.getParentTaskName() === null ? CONSTANTS.TASKDETAILS.NO_PARENT : taskModel.getParentTaskName()); .toEqual(taskModel.getParentTaskName() === null ? CONSTANTS.TASK_DETAILS.NO_PARENT : taskModel.getParentTaskName());
expect(taskPage.taskDetails().getStatus()).toEqual(CONSTANTS.TASKSTATUS.RUNNING); expect(taskPage.taskDetails().getStatus()).toEqual(CONSTANTS.TASK_STATUS.RUNNING);
return this.alfrescoJsApi.activiti.taskFormsApi.getTaskForm(response.data[0].id); return this.alfrescoJsApi.activiti.taskFormsApi.getTaskForm(response.data[0].id);
}) })
.then((response) => { .then((response) => {
let formModel = new FormModel(response); let formModel = new FormModel(response);
expect(taskPage.taskDetails().getFormName()) expect(taskPage.taskDetails().getFormName())
.toEqual(formModel.getName() === null ? CONSTANTS.TASKDETAILS.NO_FORM : formModel.getName()); .toEqual(formModel.getName() === null ? CONSTANTS.TASK_DETAILS.NO_FORM : formModel.getName());
}); });
}); });
@ -186,7 +186,7 @@ describe('Start Task - Custom App', () => {
taskPage taskPage
.filtersPage() .filtersPage()
.goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); .goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage taskPage
.createNewTask() .createNewTask()
@ -201,7 +201,7 @@ describe('Start Task - Custom App', () => {
.formFields() .formFields()
.noFormIsDisplayed(); .noFormIsDisplayed();
expect(taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASKDETAILS.NO_FORM); expect(taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM);
}); });
it('[C263948] Should be possible to cancel a task', () => { it('[C263948] Should be possible to cancel a task', () => {
@ -211,7 +211,7 @@ describe('Start Task - Custom App', () => {
taskPage taskPage
.filtersPage() .filtersPage()
.goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); .goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage taskPage
.createNewTask() .createNewTask()
@ -223,13 +223,13 @@ describe('Start Task - Custom App', () => {
taskPage.tasksListPage() taskPage.tasksListPage()
.checkTaskIsNotDisplayedInTasksList(tasks[3]); .checkTaskIsNotDisplayedInTasksList(tasks[3]);
expect(taskPage.filtersPage().getActiveFilter()).toEqual(CONSTANTS.TASKFILTERS.MY_TASKS); expect(taskPage.filtersPage().getActiveFilter()).toEqual(CONSTANTS.TASK_FILTERS.MY_TASKS);
}); });
it('[C263949] Should be possible to save filled form', () => { it('[C263949] Should be possible to save filled form', () => {
processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton(); processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton();
taskPage.filtersPage() taskPage.filtersPage()
.goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); .goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask() taskPage.createNewTask()
.addForm(app.formName) .addForm(app.formName)
@ -268,7 +268,7 @@ describe('Start Task - Custom App', () => {
processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton(); processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton();
taskPage taskPage
.filtersPage() .filtersPage()
.goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); .goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage taskPage
.createNewTask() .createNewTask()
@ -286,7 +286,7 @@ describe('Start Task - Custom App', () => {
taskPage taskPage
.filtersPage() .filtersPage()
.goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); .goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
taskPage.tasksListPage() taskPage.tasksListPage()
.checkTaskIsDisplayedInTasksList(tasks[5]) .checkTaskIsDisplayedInTasksList(tasks[5])
@ -299,7 +299,7 @@ describe('Start Task - Custom App', () => {
it('Attach a file', () => { it('Attach a file', () => {
processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton(); processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage taskPage
.createNewTask() .createNewTask()
.addName(tasks[6]) .addName(tasks[6])
@ -311,7 +311,7 @@ describe('Start Task - Custom App', () => {
it('[C263945] Should Information box be hidden when showHeaderContent property is set on false on custom app', () => { it('[C263945] Should Information box be hidden when showHeaderContent property is set on false on custom app', () => {
processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton(); processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(showHeaderTask).clickStartButton(); taskPage.createNewTask().addName(showHeaderTask).clickStartButton();
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(showHeaderTask).selectTaskFromTasksList(showHeaderTask); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(showHeaderTask).selectTaskFromTasksList(showHeaderTask);
@ -330,7 +330,7 @@ describe('Start Task - Custom App', () => {
it('[C263950] Should be able to see Spinner loading on task list when clicking on Tasks on custom app', () => { it('[C263950] Should be able to see Spinner loading on task list when clicking on Tasks on custom app', () => {
processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton(); processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(tasks[7]).clickStartButton(); taskPage.createNewTask().addName(tasks[7]).clickStartButton();
processServicesPage.goToProcessServices().goToTaskApp(); processServicesPage.goToProcessServices().goToTaskApp();

View File

@ -43,7 +43,7 @@ import path = require('path');
describe('Start Task - Task App', () => { describe('Start Task - Task App', () => {
let TASKDATAFORMAT = 'mmm dd yyyy'; let TASK_DATA_FORMAT = 'mmm dd yyyy';
let loginPage = new LoginPage(); let loginPage = new LoginPage();
let processServicesPage = new ProcessServicesPage(); let processServicesPage = new ProcessServicesPage();
@ -96,7 +96,7 @@ describe('Start Task - Task App', () => {
it('[C260383] Should be possible to modify a task', () => { it('[C260383] Should be possible to modify a task', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(tasks[0]) taskPage.createNewTask().addName(tasks[0])
.addForm(app.formName).clickStartButton() .addForm(app.formName).clickStartButton()
.then(() => { .then(() => {
@ -118,7 +118,7 @@ describe('Start Task - Task App', () => {
it('[C260506] Should display information box for started task', () => { it('[C260506] Should display information box for started task', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(tasks[1]).addDescription('Description') taskPage.createNewTask().addName(tasks[1]).addDescription('Description')
.addForm(app.formName).clickStartButton() .addForm(app.formName).clickStartButton()
.then(() => { .then(() => {
@ -130,51 +130,51 @@ describe('Start Task - Task App', () => {
.then((response) => { .then((response) => {
let taskModel = new TaskModel(response.data[0]); let taskModel = new TaskModel(response.data[0]);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskModel.getName()); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskModel.getName());
expect(taskPage.taskDetails().getCreated()).toEqual(dateFormat(taskModel.getCreated(), TASKDATAFORMAT)); expect(taskPage.taskDetails().getCreated()).toEqual(dateFormat(taskModel.getCreated(), TASK_DATA_FORMAT));
expect(taskPage.taskDetails().getId()).toEqual(taskModel.getId()); expect(taskPage.taskDetails().getId()).toEqual(taskModel.getId());
expect(taskPage.taskDetails().getDescription()).toEqual(taskModel.getDescription()); expect(taskPage.taskDetails().getDescription()).toEqual(taskModel.getDescription());
expect(taskPage.taskDetails().getAssignee()).toEqual(taskModel.getAssignee().getEntireName()); expect(taskPage.taskDetails().getAssignee()).toEqual(taskModel.getAssignee().getEntireName());
expect(taskPage.taskDetails().getCategory()) expect(taskPage.taskDetails().getCategory())
.toEqual(taskModel.getCategory() === null ? CONSTANTS.TASKDETAILS.NO_CATEGORY : taskModel.getCategory()); .toEqual(taskModel.getCategory() === null ? CONSTANTS.TASK_DETAILS.NO_CATEGORY : taskModel.getCategory());
expect(taskPage.taskDetails().getDueDate()) expect(taskPage.taskDetails().getDueDate())
.toEqual(taskModel.getDueDate() === null ? CONSTANTS.TASKDETAILS.NO_DATE : taskModel.getDueDate()); .toEqual(taskModel.getDueDate() === null ? CONSTANTS.TASK_DETAILS.NO_DATE : taskModel.getDueDate());
expect(taskPage.taskDetails().getParentName()) expect(taskPage.taskDetails().getParentName())
.toEqual(taskModel.getParentTaskName() === null ? CONSTANTS.TASKDETAILS.NO_PARENT : taskModel.getParentTaskName()); .toEqual(taskModel.getParentTaskName() === null ? CONSTANTS.TASK_DETAILS.NO_PARENT : taskModel.getParentTaskName());
expect(taskPage.taskDetails().getStatus()).toEqual(CONSTANTS.TASKSTATUS.RUNNING); expect(taskPage.taskDetails().getStatus()).toEqual(CONSTANTS.TASK_STATUS.RUNNING);
return this.alfrescoJsApi.activiti.taskFormsApi.getTaskForm(response.data[0].id); return this.alfrescoJsApi.activiti.taskFormsApi.getTaskForm(response.data[0].id);
}) })
.then(function (response) { .then(function (response) {
formModel = new FormModel(response); formModel = new FormModel(response);
expect(taskPage.taskDetails().getFormName()) expect(taskPage.taskDetails().getFormName())
.toEqual(formModel.getName() === null ? CONSTANTS.TASKDETAILS.NO_FORM : formModel.getName()); .toEqual(formModel.getName() === null ? CONSTANTS.TASK_DETAILS.NO_FORM : formModel.getName());
}); });
}); });
it('Start task with no form', () => { it('Start task with no form', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(tasks[2]).clickStartButton() taskPage.createNewTask().addName(tasks[2]).clickStartButton()
.then(() => { .then(() => {
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[2]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[2]);
taskPage.formFields().noFormIsDisplayed(); taskPage.formFields().noFormIsDisplayed();
expect(taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASKDETAILS.NO_FORM); expect(taskPage.taskDetails().getFormName()).toEqual(CONSTANTS.TASK_DETAILS.NO_FORM);
}); });
}); });
it('[C260422] Should be possible to cancel a task', () => { it('[C260422] Should be possible to cancel a task', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().checkStartButtonIsDisabled().addName(tasks[3]) taskPage.createNewTask().checkStartButtonIsDisabled().addName(tasks[3])
.checkStartButtonIsEnabled().clickCancelButton() .checkStartButtonIsEnabled().clickCancelButton()
.then(() => { .then(() => {
taskPage.tasksListPage().checkTaskIsNotDisplayedInTasksList(tasks[3]); taskPage.tasksListPage().checkTaskIsNotDisplayedInTasksList(tasks[3]);
expect(taskPage.filtersPage().getActiveFilter()).toEqual(CONSTANTS.TASKFILTERS.MY_TASKS); expect(taskPage.filtersPage().getActiveFilter()).toEqual(CONSTANTS.TASK_FILTERS.MY_TASKS);
}); });
}); });
it('[C260423] Should be possible to save filled form', () => { it('[C260423] Should be possible to save filled form', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask() taskPage.createNewTask()
.addForm(app.formName).addName(tasks[4]).clickStartButton() .addForm(app.formName).addName(tasks[4]).clickStartButton()
.then(() => { .then(() => {
@ -191,13 +191,13 @@ describe('Start Task - Task App', () => {
it('[C260425] Should be possible to assign a user', () => { it('[C260425] Should be possible to assign a user', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(tasks[5]) taskPage.createNewTask().addName(tasks[5])
.addAssignee(assigneeUserModel.firstName).clickStartButton() .addAssignee(assigneeUserModel.firstName).clickStartButton()
.then(() => { .then(() => {
taskPage.tasksListPage().checkTaskListIsLoaded(); taskPage.tasksListPage().checkTaskListIsLoaded();
taskPage.tasksListPage().waitForTableBody(); taskPage.tasksListPage().waitForTableBody();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[5]).selectTaskFromTasksList(tasks[5]); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[5]).selectTaskFromTasksList(tasks[5]);
taskPage.checkTaskTitle(tasks[5]); taskPage.checkTaskTitle(tasks[5]);
expect(taskPage.taskDetails().getAssignee()).toEqual(assigneeUserModel.firstName + ' ' + assigneeUserModel.lastName); expect(taskPage.taskDetails().getAssignee()).toEqual(assigneeUserModel.firstName + ' ' + assigneeUserModel.lastName);
@ -206,7 +206,7 @@ describe('Start Task - Task App', () => {
it('Attach a file', () => { it('Attach a file', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(tasks[6]).clickStartButton() taskPage.createNewTask().addName(tasks[6]).clickStartButton()
.then(() => { .then(() => {
attachmentListPage.clickAttachFileButton(jpgFile.location); attachmentListPage.clickAttachFileButton(jpgFile.location);
@ -216,7 +216,7 @@ describe('Start Task - Task App', () => {
it('[C260420] Should Information box be hidden when showHeaderContent property is set on false', () => { it('[C260420] Should Information box be hidden when showHeaderContent property is set on false', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(showHeaderTask).selectTaskFromTasksList(showHeaderTask); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(showHeaderTask).selectTaskFromTasksList(showHeaderTask);
appNavigationBarPage.clickSettingsButton(); appNavigationBarPage.clickSettingsButton();

View File

@ -74,7 +74,7 @@ describe('Task Audit', () => {
it('[C260386] Should Audit file be downloaded when clicking on Task Audit log icon on a standalone running task', () => { it('[C260386] Should Audit file be downloaded when clicking on Task Audit log icon on a standalone running task', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskTaskApp); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskTaskApp);
taskPage.taskDetails().clickAuditLogButton(); taskPage.taskDetails().clickAuditLogButton();
@ -83,11 +83,11 @@ describe('Task Audit', () => {
it('[C260389] Should Audit file be downloaded when clicking on Task Audit log icon on a standalone completed task', () => { it('[C260389] Should Audit file be downloaded when clicking on Task Audit log icon on a standalone completed task', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskTaskApp); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskTaskApp);
taskPage.completeTaskNoForm(); taskPage.completeTaskNoForm();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList(taskTaskApp); taskPage.tasksListPage().selectTaskFromTasksList(taskTaskApp);
expect(taskPage.formFields().getCompletedTaskNoFormMessage()).toEqual('Task ' + taskTaskApp + ' completed'); expect(taskPage.formFields().getCompletedTaskNoFormMessage()).toEqual('Task ' + taskTaskApp + ' completed');
@ -100,11 +100,11 @@ describe('Task Audit', () => {
taskPage.createNewTask().addName(taskCompleteCustomApp).clickStartButton(); taskPage.createNewTask().addName(taskCompleteCustomApp).clickStartButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskCompleteCustomApp); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskCompleteCustomApp);
taskPage.completeTaskNoForm(); taskPage.completeTaskNoForm();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList(taskCompleteCustomApp); taskPage.tasksListPage().selectTaskFromTasksList(taskCompleteCustomApp);
expect(taskPage.formFields().getCompletedTaskNoFormMessage()).toEqual('Task ' + taskCompleteCustomApp + ' completed'); expect(taskPage.formFields().getCompletedTaskNoFormMessage()).toEqual('Task ' + taskCompleteCustomApp + ' completed');
@ -117,7 +117,7 @@ describe('Task Audit', () => {
taskPage.createNewTask().addName(taskCustomApp).clickStartButton(); taskPage.createNewTask().addName(taskCustomApp).clickStartButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskCustomApp); taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskCustomApp);
taskPage.taskDetails().clickAuditLogButton(); taskPage.taskDetails().clickAuditLogButton();

View File

@ -93,7 +93,7 @@ describe('Attachment list action menu for tasks', () => {
it('[C277311] Should be able to View /Download /Remove from Attachment List on an active task', () => { it('[C277311] Should be able to View /Download /Remove from Attachment List on an active task', () => {
processServicesPage.goToProcessServices().goToApp(app.title).clickTasksButton(); processServicesPage.goToProcessServices().goToApp(app.title).clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(taskName.active).clickStartButton(); taskPage.createNewTask().addName(taskName.active).clickStartButton();
attachmentListPage.clickAttachFileButton(pngFile.location); attachmentListPage.clickAttachFileButton(pngFile.location);
@ -102,14 +102,14 @@ describe('Attachment list action menu for tasks', () => {
viewerPage.checkFileNameIsDisplayed(pngFile.name); viewerPage.checkFileNameIsDisplayed(pngFile.name);
viewerPage.clickCloseButton(); viewerPage.clickCloseButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
attachmentListPage.doubleClickFile(pngFile.name); attachmentListPage.doubleClickFile(pngFile.name);
viewerPage.checkFileNameIsDisplayed(pngFile.name); viewerPage.checkFileNameIsDisplayed(pngFile.name);
viewerPage.clickCloseButton(); viewerPage.clickCloseButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
attachmentListPage.downloadFile(pngFile.name); attachmentListPage.downloadFile(pngFile.name);
@ -124,14 +124,14 @@ describe('Attachment list action menu for tasks', () => {
it('[C260236] Should be able to View /Download /Remove from Attachment List on a completed task', () => { it('[C260236] Should be able to View /Download /Remove from Attachment List on a completed task', () => {
processServicesPage.goToProcessServices().goToApp(app.title).clickTasksButton(); processServicesPage.goToProcessServices().goToApp(app.title).clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(taskName.completed).clickStartButton(); taskPage.createNewTask().addName(taskName.completed).clickStartButton();
attachmentListPage.clickAttachFileButton(pngFile.location); attachmentListPage.clickAttachFileButton(pngFile.location);
attachmentListPage.checkFileIsAttached(pngFile.name); attachmentListPage.checkFileIsAttached(pngFile.name);
taskPage.completeTaskNoForm(); taskPage.completeTaskNoForm();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList(taskName.completed); taskPage.tasksListPage().selectTaskFromTasksList(taskName.completed);
attachmentListPage.checkAttachFileButtonIsNotDisplayed(); attachmentListPage.checkAttachFileButtonIsNotDisplayed();
@ -140,7 +140,7 @@ describe('Attachment list action menu for tasks', () => {
viewerPage.checkFileNameIsDisplayed(pngFile.name); viewerPage.checkFileNameIsDisplayed(pngFile.name);
viewerPage.clickCloseButton(); viewerPage.clickCloseButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList(taskName.completed); taskPage.tasksListPage().selectTaskFromTasksList(taskName.completed);
attachmentListPage.downloadFile(pngFile.name); attachmentListPage.downloadFile(pngFile.name);
@ -156,7 +156,7 @@ describe('Attachment list action menu for tasks', () => {
it('[C260225] Should be able to upload a file in the Attachment list on Task App', () => { it('[C260225] Should be able to upload a file in the Attachment list on Task App', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(taskName.taskApp).clickStartButton(); taskPage.createNewTask().addName(taskName.taskApp).clickStartButton();
attachmentListPage.clickAttachFileButton(pngFile.location); attachmentListPage.clickAttachFileButton(pngFile.location);
@ -166,7 +166,7 @@ describe('Attachment list action menu for tasks', () => {
it('[C279884] Should be able to view the empty attachment list for tasks', () => { it('[C279884] Should be able to view the empty attachment list for tasks', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.createNewTask().addName(taskName.emptyList).clickStartButton(); taskPage.createNewTask().addName(taskName.emptyList).clickStartButton();
attachmentListPage.checkEmptyAttachmentList(); attachmentListPage.checkEmptyAttachmentList();
@ -193,7 +193,7 @@ describe('Attachment list action menu for tasks', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList('SHARE KNOWLEDGE'); taskPage.tasksListPage().selectTaskFromTasksList('SHARE KNOWLEDGE');
attachmentListPage.checkFileIsAttached(pngFile.name); attachmentListPage.checkFileIsAttached(pngFile.name);
@ -204,7 +204,7 @@ describe('Attachment list action menu for tasks', () => {
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton(); processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
taskPage.tasksListPage().selectTaskFromTasksList('SHARE KNOWLEDGE'); taskPage.tasksListPage().selectTaskFromTasksList('SHARE KNOWLEDGE');
attachmentListPage.checkEmptyAttachmentList(); attachmentListPage.checkEmptyAttachmentList();

View File

@ -93,7 +93,7 @@ describe('Task List Pagination', () => {
it('[C260304] Should be possible to set Items per page to 5', () => { it('[C260304] Should be possible to set Items per page to 5', () => {
processServicesPage.goToProcessServices().goToTaskApp(); processServicesPage.goToProcessServices().goToTaskApp();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
paginationPage.selectItemsPerPage(itemsPerPage.five); paginationPage.selectItemsPerPage(itemsPerPage.five);
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.five); expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.five);
expect(paginationPage.getPaginationRange()).toEqual('Showing 1-' + itemsPerPage.fiveValue + ' of ' + nrOfTasks); expect(paginationPage.getPaginationRange()).toEqual('Showing 1-' + itemsPerPage.fiveValue + ' of ' + nrOfTasks);
@ -115,13 +115,13 @@ describe('Task List Pagination', () => {
expect(taskPage.getAllDisplayedRows()).toBe(itemsPerPage.fiveValue); expect(taskPage.getAllDisplayedRows()).toBe(itemsPerPage.fiveValue);
processServicesPage.goToProcessServices().goToTaskApp(); processServicesPage.goToProcessServices().goToTaskApp();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.five); expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.five);
}); });
it('[C260303] Should be possible to set Items per page to 10', () => { it('[C260303] Should be possible to set Items per page to 10', () => {
processServicesPage.goToProcessServices().goToTaskApp(); processServicesPage.goToProcessServices().goToTaskApp();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
paginationPage.selectItemsPerPage(itemsPerPage.ten); paginationPage.selectItemsPerPage(itemsPerPage.ten);
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.ten); expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.ten);
expect(paginationPage.getPaginationRange()).toEqual('Showing 1-' + itemsPerPage.tenValue + ' of ' + nrOfTasks); expect(paginationPage.getPaginationRange()).toEqual('Showing 1-' + itemsPerPage.tenValue + ' of ' + nrOfTasks);
@ -132,13 +132,13 @@ describe('Task List Pagination', () => {
expect(taskPage.getAllDisplayedRows()).toBe(itemsPerPage.tenValue); expect(taskPage.getAllDisplayedRows()).toBe(itemsPerPage.tenValue);
processServicesPage.goToProcessServices().goToTaskApp(); processServicesPage.goToProcessServices().goToTaskApp();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.ten); expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.ten);
}); });
it('[C260302] Should be possible to set Items per page to 15', () => { it('[C260302] Should be possible to set Items per page to 15', () => {
processServicesPage.goToProcessServices().goToTaskApp(); processServicesPage.goToProcessServices().goToTaskApp();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
paginationPage.selectItemsPerPage(itemsPerPage.fifteen); paginationPage.selectItemsPerPage(itemsPerPage.fifteen);
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.fifteen); expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.fifteen);
expect(paginationPage.getPaginationRange()).toEqual('Showing 1-' + itemsPerPage.fifteenValue + ' of ' + nrOfTasks); expect(paginationPage.getPaginationRange()).toEqual('Showing 1-' + itemsPerPage.fifteenValue + ' of ' + nrOfTasks);
@ -149,7 +149,7 @@ describe('Task List Pagination', () => {
expect(taskPage.getAllDisplayedRows()).toBe(itemsPerPage.fiveValue); expect(taskPage.getAllDisplayedRows()).toBe(itemsPerPage.fiveValue);
processServicesPage.goToProcessServices().goToTaskApp(); processServicesPage.goToProcessServices().goToTaskApp();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.fifteen); expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.fifteen);
}); });
@ -157,7 +157,7 @@ describe('Task List Pagination', () => {
currentPage = 1; currentPage = 1;
totalPages = 2; totalPages = 2;
processServicesPage.goToProcessServices().goToTaskApp(); processServicesPage.goToProcessServices().goToTaskApp();
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS); taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
taskPage.tasksListPage().waitForTableBody(); taskPage.tasksListPage().waitForTableBody();
paginationPage.selectItemsPerPage(itemsPerPage.ten); paginationPage.selectItemsPerPage(itemsPerPage.ten);
taskPage.tasksListPage().waitForTableBody(); taskPage.tasksListPage().waitForTableBody();

View File

@ -67,21 +67,21 @@ exports.APPLICATION = {
APS: 'main' APS: 'main'
}; };
exports.TASKFILTERS = { exports.TASK_FILTERS = {
MY_TASKS: 'My Tasks', MY_TASKS: 'My Tasks',
INV_TASKS: 'Involved Tasks', INV_TASKS: 'Involved Tasks',
QUE_TASKS: 'Queued Tasks', QUE_TASKS: 'Queued Tasks',
COMPL_TASKS: 'Completed Tasks' COMPLETED_TASKS: 'Completed Tasks'
}; };
exports.TASKDETAILS = { exports.TASK_DETAILS = {
NO_FORM: 'No form', NO_FORM: 'No form',
NO_PARENT: 'No parent', NO_PARENT: 'No parent',
NO_DATE: 'No date', NO_DATE: 'No date',
NO_CATEGORY: 'No category' NO_CATEGORY: 'No category'
}; };
exports.TASKSTATUS = { exports.TASK_STATUS = {
RUNNING: 'Running' RUNNING: 'Running'
}; };
@ -106,17 +106,17 @@ exports.APP_ICON = {
UNIT: "ac_unit" UNIT: "ac_unit"
}; };
exports.PROCESSENDDATE = "No date"; exports.PROCESS_END_DATE = "No date";
exports.PROCESSCATEGORY = "http://www.activiti.org/processdef"; exports.PROCESS_CATEGORY = "http://www.activiti.org/processdef";
exports.PROCESSBUSINESSKEY = "None"; exports.PROCESS_BUSINESS_KEY = "None";
exports.PROCESSDESCRIPTION = "No description"; exports.PROCESS_DESCRIPTION = "No description";
exports.PROCESSDATEFORMAT = "mmm dd yyyy"; exports.PROCESS_DATE_FORMAT = "mmm dd yyyy";
exports.PROCESSSTATUS = { exports.PROCESS_STATUS = {
RUNNING: 'Running', RUNNING: 'Running',
COMPLETED: 'Completed' COMPLETED: 'Completed'
}; };

View File

@ -87,19 +87,19 @@ exports.Files = {
people_id: "people", people_id: "people",
group_id: "groupofpeople", group_id: "groupofpeople",
multiline_id: "multilinetext", multiline_id: "multilinetext",
typeahead_id: "typeahead", typeAhead_id: "typeahead",
displaytext_id: "displaytext", displayText_id: "displaytext",
displayvalue_id: "displayvalue", displayValue_id: "displayvalue",
hyperlink_id: "hyperlink", hyperlink_id: "hyperlink",
attachfolder_id: "attachfolder", attachFolder_id: "attachfolder",
attachfile_id: "attachfile", attachFile_id: "attachfile",
date_id: "date", date_id: "date",
dateTime_id: "dateandtime", dateTime_id: "dateandtime",
checkbox_id: "checkbox", checkbox_id: "checkbox",
dropdown_id: "dropdown", dropdown_id: "dropdown",
dropdown_value: "mat-select[id='dropdown'] span span", dropdown_value: "mat-select[id='dropdown'] span span",
radiobuttons_id: "radiobuttons", radioButtons_id: "radiobuttons",
dynamictable_id: "dynamictable" dynamicTable_id: "dynamictable"
} }
}, },

View File

@ -183,9 +183,9 @@ exports.generateRandomStringToUpperCase = function (length) {
* @param baseName{string} the base name of all files * @param baseName{string} the base name of all files
* @param extension{string} the extension of the file * @param extension{string} the extension of the file
* @return fileNames * @return fileNames
* @method generateSeqeunceFiles * @method generateSequenceFiles
*/ */
exports.generateSeqeunceFiles = function (startIndex, endIndex, baseName, extension) { exports.generateSequenceFiles = function (startIndex, endIndex, baseName, extension) {
var fileNames = []; var fileNames = [];
for (var i = startIndex; i <= endIndex; i++) { for (var i = startIndex; i <= endIndex; i++) {
fileNames.push(baseName + i + extension); fileNames.push(baseName + i + extension);

View File

@ -87,7 +87,7 @@ describe('Breadcrumb', () => {
expect(component.parseRoute(null)).toEqual([]); expect(component.parseRoute(null)).toEqual([]);
}); });
it('should not parase the route when node has no path', () => { it('should not parse the route when node has no path', () => {
const node: any = {}; const node: any = {};
expect(component.parseRoute(node)).toEqual([]); expect(component.parseRoute(node)).toEqual([]);
}); });

View File

@ -82,7 +82,7 @@ describe('DropdownBreadcrumb', () => {
}); });
}); });
it('should display only the path in the selectbox', (done) => { it('should display only the path in the selectBox', (done) => {
let fakeNodeWithCreatePermissionInstance = JSON.parse(JSON.stringify(fakeNodeWithCreatePermission)); let fakeNodeWithCreatePermissionInstance = JSON.parse(JSON.stringify(fakeNodeWithCreatePermission));
fakeNodeWithCreatePermissionInstance.path.elements = [ fakeNodeWithCreatePermissionInstance.path.elements = [
{ id: '1', name: 'Stark Industries' }, { id: '1', name: 'Stark Industries' },
@ -169,7 +169,7 @@ describe('DropdownBreadcrumb', () => {
}); });
}); });
it('should open the selectbox when clicking on the folder icon', (done) => { it('should open the selectBox when clicking on the folder icon', (done) => {
triggerComponentChange(JSON.parse(JSON.stringify(fakeNodeWithCreatePermission))); triggerComponentChange(JSON.parse(JSON.stringify(fakeNodeWithCreatePermission)));
spyOn(component.dropdown, 'open'); spyOn(component.dropdown, 'open');

View File

@ -19,6 +19,6 @@ import { PropertyGroupContainer } from './property-group.interface';
import { OrganisedPropertyGroup } from './organised-property-group.interface'; import { OrganisedPropertyGroup } from './organised-property-group.interface';
export interface ContentMetadataConfig { export interface ContentMetadataConfig {
isGroupAllowed(groupname: string): boolean; isGroupAllowed(groupName: string): boolean;
reorganiseByConfig(propertyGroups: PropertyGroupContainer): OrganisedPropertyGroup[]; reorganiseByConfig(propertyGroups: PropertyGroupContainer): OrganisedPropertyGroup[];
} }

View File

@ -152,7 +152,7 @@ describe('PropertyGroupTranslatorService', () => {
expect(logService.error).toHaveBeenCalledWith('Unknown type for mapping: daemonic:scorcher'); expect(logService.error).toHaveBeenCalledWith('Unknown type for mapping: daemonic:scorcher');
}); });
it('should fall back to singleline property type if unrecognised type is found', () => { it('should fall back to single-line property type if unrecognised type is found', () => {
property.name = 'FAS:PLAGUE'; property.name = 'FAS:PLAGUE';
property.title = 'The Faro Plague'; property.title = 'The Faro Plague';
property.dataType = 'daemonic:scorcher'; property.dataType = 'daemonic:scorcher';
@ -170,7 +170,7 @@ describe('PropertyGroupTranslatorService', () => {
}); });
}); });
describe('Different types\'s attributes', () => { describe('Different types attributes', () => {
beforeEach(() => { beforeEach(() => {
propertyGroups.push(propertyGroup); propertyGroups.push(propertyGroup);

View File

@ -162,7 +162,7 @@ export class ContentNodeDialogService {
* Opens a dialog to choose folders to upload. * Opens a dialog to choose folders to upload.
* @param action Name of the action to show in the title * @param action Name of the action to show in the title
* @param contentEntry Item to upload * @param contentEntry Item to upload
* @returns Information about the chosed folder(s) * @returns Information about the chosen folder(s)
*/ */
openUploadFolderDialog(action: string, contentEntry: MinimalNodeEntryEntity): Observable<MinimalNodeEntryEntity[]> { openUploadFolderDialog(action: string, contentEntry: MinimalNodeEntryEntity): Observable<MinimalNodeEntryEntity[]> {
const select = new Subject<MinimalNodeEntryEntity[]>(); const select = new Subject<MinimalNodeEntryEntity[]>();

View File

@ -328,7 +328,7 @@ describe('ContentNodeSelectorComponent', () => {
expect(component.chosenNode).toBeNull(); expect(component.chosenNode).toBeNull();
})); }));
it('should call the search api on changing the site selectbox\'s value', fakeAsync(() => { it('should call the search api on changing the site selectBox value', fakeAsync(() => {
typeToSearchBox('vegeta'); typeToSearchBox('vegeta');
tick(debounceSearch); tick(debounceSearch);
@ -355,7 +355,7 @@ describe('ContentNodeSelectorComponent', () => {
expect(cnSearchSpy).toHaveBeenCalledWith('vegeta', '-sites-', 0, 25, ['123456testId', '09876543testId']); expect(cnSearchSpy).toHaveBeenCalledWith('vegeta', '-sites-', 0, 25, ['123456testId', '09876543testId']);
})); }));
it('should call the content node selector\'s search with the right parameters on changing the site selectbox\'s value from a custom dropdown menu', fakeAsync(() => { it('should call the content node selector\'s search with the right parameters on changing the site selectBox value from a custom dropdown menu', fakeAsync(() => {
component.dropdownSiteList = <SitePaging> { list: { entries: [<SiteEntry> { entry: { guid: '-sites-' } }, <SiteEntry> { entry: { guid: 'namek' } }] } }; component.dropdownSiteList = <SitePaging> { list: { entries: [<SiteEntry> { entry: { guid: '-sites-' } }, <SiteEntry> { entry: { guid: 'namek' } }] } };
fixture.detectChanges(); fixture.detectChanges();
@ -608,7 +608,7 @@ describe('ContentNodeSelectorComponent', () => {
}, 300); }, 300);
}); });
it('should reload the original documentlist when clearing the search input', fakeAsync(() => { it('should reload the original documentList when clearing the search input', fakeAsync(() => {
typeToSearchBox('shenron'); typeToSearchBox('shenron');
tick(debounceSearch); tick(debounceSearch);

View File

@ -216,7 +216,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit, PaginatedCompo
} }
/** /**
* Update the result list depending on the criterias * Update the result list depending on the criteria
*/ */
private updateResults(): void { private updateResults(): void {
if (this.searchTerm.length === 0) { if (this.searchTerm.length === 0) {
@ -281,7 +281,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit, PaginatedCompo
this.showingSearchResults = true; this.showingSearchResults = true;
this.loadingSearchResults = false; this.loadingSearchResults = false;
// Documentlist hack, since data displaying for preloaded nodes is a little bit messy there // DocumentList hack, since data displaying for preloaded nodes is a little bit messy there
if (!this.nodes) { if (!this.nodes) {
this.nodes = nodePaging; this.nodes = nodePaging;
} else { } else {
@ -293,7 +293,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit, PaginatedCompo
} }
/** /**
* Hightlight the actual searchterm in the next frame * Highlight the actual search term in the next frame
*/ */
highlight(): void { highlight(): void {
setTimeout(() => { setTimeout(() => {

View File

@ -82,13 +82,13 @@ describe('ContentNodeSelectorDialogComponent', () => {
expect(actionButton.nativeElement.innerText).toBe('NODE_SELECTOR.MOVE'); expect(actionButton.nativeElement.innerText).toBe('NODE_SELECTOR.MOVE');
}); });
it('should pass through the injected currentFolderId to the documentlist', () => { it('should pass through the injected currentFolderId to the documentList', () => {
let documentList = fixture.debugElement.query(By.directive(DocumentListComponent)); let documentList = fixture.debugElement.query(By.directive(DocumentListComponent));
expect(documentList).not.toBeNull('Document list should be shown'); expect(documentList).not.toBeNull('Document list should be shown');
expect(documentList.componentInstance.currentFolderId).toBe('cat-girl-nuku-nuku'); expect(documentList.componentInstance.currentFolderId).toBe('cat-girl-nuku-nuku');
}); });
xit('should pass through the injected rowFilter to the documentlist', (done) => { xit('should pass through the injected rowFilter to the documentList', (done) => {
fixture.whenStable().then(() => { fixture.whenStable().then(() => {
let documentList = fixture.debugElement.query(By.directive(DocumentListComponent)); let documentList = fixture.debugElement.query(By.directive(DocumentListComponent));
expect(documentList).not.toBeNull('Document list should be shown'); expect(documentList).not.toBeNull('Document list should be shown');
@ -98,7 +98,7 @@ describe('ContentNodeSelectorDialogComponent', () => {
}); });
it('should pass through the injected imageResolver to the documentlist', () => { it('should pass through the injected imageResolver to the documentList', () => {
let documentList = fixture.debugElement.query(By.directive(DocumentListComponent)); let documentList = fixture.debugElement.query(By.directive(DocumentListComponent));
expect(documentList).not.toBeNull('Document list should be shown'); expect(documentList).not.toBeNull('Document list should be shown');
expect(documentList.componentInstance.imageResolver).toBe(data.imageResolver); expect(documentList.componentInstance.imageResolver).toBe(data.imageResolver);

View File

@ -117,7 +117,7 @@ describe('FolderDialogComponent', () => {
expect(dialogRef.close).toHaveBeenCalledWith(folder); expect(dialogRef.close).toHaveBeenCalledWith(folder);
}); });
it('should emit success output event with folder when submit is succesfull', async(() => { it('should emit success output event with folder when submit is successful', async(() => {
const folder = { data: 'folder-data' }; const folder = { data: 'folder-data' };
let expectedNode = null; let expectedNode = null;

View File

@ -42,7 +42,7 @@ export class FolderDialogComponent implements OnInit {
@Output() @Output()
error: EventEmitter<any> = new EventEmitter<any>(); error: EventEmitter<any> = new EventEmitter<any>();
/** Emitted when the edit/create folder is successfully created/mmodified /** Emitted when the edit/create folder is successfully created/modified
*/ */
@Output() @Output()
success: EventEmitter<any> = new EventEmitter<MinimalNodeEntryEntity>(); success: EventEmitter<any> = new EventEmitter<MinimalNodeEntryEntity>();

View File

@ -117,7 +117,7 @@ describe('NodeLockDialogComponent', () => {
expect(alfrescoApi.nodesApi.unlockNode).toHaveBeenCalledWith('node-id'); expect(alfrescoApi.nodesApi.unlockNode).toHaveBeenCalledWith('node-id');
}); });
it('should call dialog to close with form data when submit is succesfluly', fakeAsync(() => { it('should call dialog to close with form data when submit is successfully', fakeAsync(() => {
const node = { entry: {} }; const node = { entry: {} };
spyOn(alfrescoApi.nodesApi, 'lockNode').and.returnValue(Promise.resolve(node)); spyOn(alfrescoApi.nodesApi, 'lockNode').and.returnValue(Promise.resolve(node));

View File

@ -151,7 +151,7 @@ describe('ShareDataTableAdapter', () => {
}); });
it('should generate fallback icon for a file thumbnail with missing mime type', () => { it('should generate fallback icon for a file thumbnail with missing mime type', () => {
spyOn(documentListService, 'getDefaultMimeTypeIcon').and.returnValue(`assets/images/ft_ic_miscellaneouse.svg`); spyOn(documentListService, 'getDefaultMimeTypeIcon').and.returnValue(`assets/images/ft_ic_miscellaneous.svg`);
let adapter = new ShareDataTableAdapter(documentListService, null, null); let adapter = new ShareDataTableAdapter(documentListService, null, null);
@ -167,7 +167,7 @@ describe('ShareDataTableAdapter', () => {
}); });
it('should generate fallback icon for a file with no content entry', () => { it('should generate fallback icon for a file with no content entry', () => {
spyOn(documentListService, 'getDefaultMimeTypeIcon').and.returnValue(`assets/images/ft_ic_miscellaneouse.svg`); spyOn(documentListService, 'getDefaultMimeTypeIcon').and.returnValue(`assets/images/ft_ic_miscellaneous.svg`);
let adapter = new ShareDataTableAdapter(documentListService, null, null); let adapter = new ShareDataTableAdapter(documentListService, null, null);

View File

@ -248,9 +248,9 @@ export class ShareDataTableAdapter implements DataTableAdapter {
} }
if (merge) { if (merge) {
let listPrunedDuplicate = rows.filter((elemntToFilter) => { let listPrunedDuplicate = rows.filter((elementToFilter) => {
let isPresent = this.rows.find((currenRow: any) => { let isPresent = this.rows.find((currentRow: any) => {
return currenRow.obj.entry.id === elemntToFilter.obj.entry.id; return currentRow.obj.entry.id === elementToFilter.obj.entry.id;
}); });
return !isPresent; return !isPresent;

View File

@ -178,7 +178,7 @@ export class CustomResourcesService {
} }
/** /**
* Gets all sites in the respository. * Gets all sites in the repository.
* @param pagination Specifies how to paginate the results * @param pagination Specifies how to paginate the results
* @returns List of sites * @returns List of sites
*/ */
@ -266,7 +266,7 @@ export class CustomResourcesService {
/** /**
* Is the folder ID a "-my", "-root-", or "-shared-" alias? * Is the folder ID a "-my", "-root-", or "-shared-" alias?
* @param folderId Folder ID name to check * @param folderId Folder ID name to check
* @returns True if the ID is one of the suppored sources, false otherwise * @returns True if the ID is one of the supported sources, false otherwise
*/ */
isSupportedSource(folderId: string): boolean { isSupportedSource(folderId: string): boolean {
let isSupportedSources = false; let isSupportedSources = false;

View File

@ -183,10 +183,10 @@ describe('DocumentActionsService', () => {
let file = new FileNode(); let file = new FileNode();
let fileWithPermission: any = file; let fileWithPermission: any = file;
fileWithPermission.entry.allowableOperations = [permission]; fileWithPermission.entry.allowableOperations = [permission];
const deleteObservale = service.getHandler('delete')(fileWithPermission, null, permission); const deleteObservable = service.getHandler('delete')(fileWithPermission, null, permission);
expect(documentListService.deleteNode).toHaveBeenCalledWith(file.entry.id); expect(documentListService.deleteNode).toHaveBeenCalledWith(file.entry.id);
expect(deleteObservale.subscribe).toBeDefined(); expect(deleteObservable.subscribe).toBeDefined();
}); });
it('should support deletion only file node', () => { it('should support deletion only file node', () => {

View File

@ -51,8 +51,8 @@ export class DocumentActionsService {
*/ */
getHandler(key: string): ContentActionHandler { getHandler(key: string): ContentActionHandler {
if (key) { if (key) {
let lkey = key.toLowerCase(); let lKey = key.toLowerCase();
return this.handlers[lkey] || null; return this.handlers[lKey] || null;
} }
return null; return null;
} }
@ -65,8 +65,8 @@ export class DocumentActionsService {
*/ */
setHandler(key: string, handler: ContentActionHandler): boolean { setHandler(key: string, handler: ContentActionHandler): boolean {
if (key) { if (key) {
let lkey = key.toLowerCase(); let lKey = key.toLowerCase();
this.handlers[lkey] = handler; this.handlers[lKey] = handler;
return true; return true;
} }
return false; return false;

View File

@ -117,10 +117,10 @@ describe('FolderActionsService', () => {
let folder = new FolderNode(); let folder = new FolderNode();
let folderWithPermission: any = folder; let folderWithPermission: any = folder;
folderWithPermission.entry.allowableOperations = [permission]; folderWithPermission.entry.allowableOperations = [permission];
const deleteObservale = service.getHandler('delete')(folderWithPermission, null, permission); const deleteObservable = service.getHandler('delete')(folderWithPermission, null, permission);
expect(documentListService.deleteNode).toHaveBeenCalledWith(folder.entry.id); expect(documentListService.deleteNode).toHaveBeenCalledWith(folder.entry.id);
expect(deleteObservale.subscribe).toBeDefined(); expect(deleteObservable.subscribe).toBeDefined();
}); });
it('should not delete the folder node if there is no delete permission', (done) => { it('should not delete the folder node if there is no delete permission', (done) => {

View File

@ -49,8 +49,8 @@ export class FolderActionsService {
*/ */
getHandler(key: string): ContentActionHandler { getHandler(key: string): ContentActionHandler {
if (key) { if (key) {
let lkey = key.toLowerCase(); let lKey = key.toLowerCase();
return this.handlers[lkey] || null; return this.handlers[lKey] || null;
} }
return null; return null;
} }
@ -63,8 +63,8 @@ export class FolderActionsService {
*/ */
setHandler(key: string, handler: ContentActionHandler): boolean { setHandler(key: string, handler: ContentActionHandler): boolean {
if (key) { if (key) {
let lkey = key.toLowerCase(); let lKey = key.toLowerCase();
this.handlers[lkey] = handler; this.handlers[lKey] = handler;
return true; return true;
} }
return false; return false;

View File

@ -32,7 +32,7 @@ import { MinimalNodeEntryEntity } from 'alfresco-js-api';
[adf-create-folder]="parentNode" [adf-create-folder]="parentNode"
(success)="success($event)" (success)="success($event)"
title="create-title" title="create-title"
[nodeType]="'cm:my-litte-pony'"> [nodeType]="'cm:my-little-pony'">
</div>` </div>`
}) })
class TestTypeComponent { class TestTypeComponent {
@ -154,7 +154,7 @@ describe('FolderCreateDirective', () => {
data: { data: {
parentNodeId: jasmine.any(String), parentNodeId: jasmine.any(String),
createTitle: 'create-title', createTitle: 'create-title',
nodeType: 'cm:my-litte-pony' nodeType: 'cm:my-little-pony'
}, },
width: jasmine.any(String) width: jasmine.any(String)
}); });

View File

@ -235,7 +235,7 @@
} }
} }
}, },
"PERMISSON": { "PERMISSION": {
"LACKOF": "Sie verfügen nicht über die nötige Berechtigung ('{{permission}}'), um {{type}} zu {{action}}" "LACKOF": "Sie verfügen nicht über die nötige Berechtigung ('{{permission}}'), um {{type}} zu {{action}}"
}, },
"METADATA": { "METADATA": {

View File

@ -235,7 +235,7 @@
} }
} }
}, },
"PERMISSON": { "PERMISSION": {
"LACKOF": "You don't have the {{permission}} permission to {{action}} the {{type}}" "LACKOF": "You don't have the {{permission}} permission to {{action}} the {{type}}"
}, },
"METADATA": { "METADATA": {

View File

@ -235,7 +235,7 @@
} }
} }
}, },
"PERMISSON": { "PERMISSION": {
"LACKOF": "No tiene permiso {{permission}} para {{action}} el {{type}}" "LACKOF": "No tiene permiso {{permission}} para {{action}} el {{type}}"
}, },
"METADATA": { "METADATA": {

View File

@ -235,7 +235,7 @@
} }
} }
}, },
"PERMISSON": { "PERMISSION": {
"LACKOF": "Vous n'avez pas les droits d'accès {{permission}} pour {{action}} le {{type}}" "LACKOF": "Vous n'avez pas les droits d'accès {{permission}} pour {{action}} le {{type}}"
}, },
"METADATA": { "METADATA": {

View File

@ -235,7 +235,7 @@
} }
} }
}, },
"PERMISSON": { "PERMISSION": {
"LACKOF": "Non hai l'autorizzazione {{permission}} per {{action}} {{type}}" "LACKOF": "Non hai l'autorizzazione {{permission}} per {{action}} {{type}}"
}, },
"METADATA": { "METADATA": {

Some files were not shown because too many files have changed in this diff Show More