mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-05-12 17:04:57 +00:00
parent
53d96679ea
commit
e39a2b149b
@ -26,7 +26,9 @@ jobs:
|
||||
(./scripts/update-version.sh -gnu -alpha && ././scripts/npm-build-all.sh -sb --skip-lint || exit 1;);
|
||||
fi
|
||||
- stage: Lint
|
||||
script: (./scripts/lint.sh)
|
||||
script:
|
||||
- ./scripts/lint.sh
|
||||
- npm run spellcheck
|
||||
- stage: Unit test
|
||||
env: STAGE=core
|
||||
script: (./scripts/npm-build-all.sh -si -sb -t "core" --skip-lint || exit 1;);
|
||||
|
@ -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.
|
||||
|
||||
See the [Browser Support](BROWSER-SUPPORT.md) article for more details.
|
||||
|
||||
|
140
cspell.json
Normal file
140
cspell.json
Normal 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"
|
||||
]
|
||||
}
|
@ -15,13 +15,13 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
import { MyappPage } from './app.po';
|
||||
import { MyAppPage } from './app.po';
|
||||
|
||||
describe('myapp App', () => {
|
||||
let page: MyappPage;
|
||||
describe('MyApp App', () => {
|
||||
let page: MyAppPage;
|
||||
|
||||
beforeEach(() => {
|
||||
page = new MyappPage();
|
||||
page = new MyAppPage();
|
||||
});
|
||||
|
||||
it('should display toolbar', () => {
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
import { browser, element, by } from 'protractor';
|
||||
|
||||
export class MyappPage {
|
||||
export class MyAppPage {
|
||||
navigateTo() {
|
||||
return browser.get('/');
|
||||
}
|
||||
|
@ -239,6 +239,7 @@ export const appRoutes: Routes = [
|
||||
},
|
||||
// TODO: check if needed
|
||||
{
|
||||
/* cspell:disable-next-line */
|
||||
path: 'activiti/tasksnode/:id',
|
||||
component: FormNodeViewerComponent,
|
||||
canActivate: [AuthGuardBpm]
|
||||
|
@ -48,7 +48,7 @@
|
||||
<mat-icon matListIcon class="sidenav-menu-icon">{{link.icon}}</mat-icon>
|
||||
<div class="sidenav-menu-label" *ngIf="!isMenuMinimized()">{{link.title | translate }}</div>
|
||||
</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">
|
||||
<mat-icon matListIcon class="sidenav-menu-icon">exit_to_app</mat-icon>
|
||||
<div class="sidenav-menu-label" *ngIf="!isMenuMinimized()">Logout</div>
|
||||
|
@ -55,6 +55,7 @@ export class AppLayoutComponent implements OnInit {
|
||||
{ href: '/settings-layout', icon: 'settings', title: 'APP_LAYOUT.SETTINGS' },
|
||||
{ href: '/config-editor', icon: 'code', title: 'APP_LAYOUT.CONFIG-EDITOR' },
|
||||
{ href: '/extendedSearch', icon: 'search', title: 'APP_LAYOUT.SEARCH' },
|
||||
/* cspell:disable-next-line */
|
||||
{ href: '/overlay-viewer', icon: 'pageview', title: 'APP_LAYOUT.OVERLAY_VIEWER' },
|
||||
{ href: '/about', icon: 'info_outline', title: 'APP_LAYOUT.ABOUT' }
|
||||
];
|
||||
@ -66,7 +67,7 @@ export class AppLayoutComponent implements OnInit {
|
||||
hideSidenav = false;
|
||||
showMenu = true;
|
||||
|
||||
enabelRedirect = true;
|
||||
enableRedirect = true;
|
||||
color = 'primary';
|
||||
title = 'APP_LAYOUT.APP_NAME';
|
||||
logo: string;
|
||||
@ -78,7 +79,7 @@ export class AppLayoutComponent implements OnInit {
|
||||
const preserveState = this.config.get('sideNav.preserveState');
|
||||
|
||||
if (preserveState && expand) {
|
||||
this.expandedSidenav = (this.userpreference.get('expandedSidenav', expand.toString()) === 'true');
|
||||
this.expandedSidenav = (this.userPreferences.get('expandedSidenav', expand.toString()) === 'true');
|
||||
} else if (expand) {
|
||||
this.expandedSidenav = expand;
|
||||
}
|
||||
@ -94,18 +95,18 @@ export class AppLayoutComponent implements OnInit {
|
||||
}
|
||||
|
||||
constructor(
|
||||
private userpreference: UserPreferencesService,
|
||||
private userPreferences: UserPreferencesService,
|
||||
private config: AppConfigService,
|
||||
private alfrescoApiService: AlfrescoApiService,
|
||||
private headerService: HeaderDataService) {
|
||||
if (this.alfrescoApiService.getInstance().isOauthConfiguration()) {
|
||||
this.enabelRedirect = false;
|
||||
this.enableRedirect = false;
|
||||
}
|
||||
}
|
||||
|
||||
setState(state) {
|
||||
if (this.config.get('sideNav.preserveState')) {
|
||||
this.userpreference.set('expandedSidenav', state);
|
||||
this.userPreferences.set('expandedSidenav', state);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -17,7 +17,7 @@
|
||||
|
||||
<p class="toggle">
|
||||
<mat-slide-toggle
|
||||
id="adf-toogle-editable"
|
||||
id="adf-toggle-editable"
|
||||
[color]="'primary'"
|
||||
(change)="toggleEditable()"
|
||||
[checked]="isEditable">
|
||||
|
@ -70,7 +70,7 @@
|
||||
mat-icon-button
|
||||
data-automation-id="document-list-grid-view"
|
||||
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 === 'gallery'" matTooltip="{{ 'DOCUMENT_LIST.TOOLBAR.LISTVIEW' | translate }}">list</mat-icon>
|
||||
</button>
|
||||
@ -155,7 +155,7 @@
|
||||
</button>
|
||||
<mat-menu #menu="matMenu">
|
||||
<button mat-menu-item
|
||||
(click)="toogleGalleryView()">
|
||||
(click)="toggleGalleryView()">
|
||||
<mat-icon *ngIf="displayMode === 'list'" >view_comfy</mat-icon>
|
||||
<mat-icon *ngIf="displayMode === 'gallery'">list</mat-icon>
|
||||
<span>{{ 'DOCUMENT_LIST.TOOLBAR.CARDVIEW' | translate }}</span>
|
||||
@ -374,7 +374,7 @@
|
||||
icon="play_arrow"
|
||||
target="document"
|
||||
title="DOCUMENT_LIST.ACTIONS.DOCUMENT.PROCESS_ACTION"
|
||||
(execute)="startProcesAction($event)">
|
||||
(execute)="startProcessAction($event)">
|
||||
</content-action>
|
||||
<content-action
|
||||
target="document"
|
||||
|
@ -181,7 +181,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
||||
|
||||
permissionsStyle: PermissionStyleModel[] = [];
|
||||
infiniteScrolling: boolean;
|
||||
currentSiteid = '';
|
||||
warnOnMultipleUploads = false;
|
||||
thumbnails = false;
|
||||
enableCustomPermissionMessage = false;
|
||||
@ -335,7 +334,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
||||
}
|
||||
|
||||
handlePermissionError(event: any) {
|
||||
this.translateService.get('PERMISSON.LACKOF', {
|
||||
this.translateService.get('PERMISSION.LACKOF', {
|
||||
permission: event.permission,
|
||||
action: event.action,
|
||||
type: event.type
|
||||
@ -476,7 +475,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
||||
return false;
|
||||
}
|
||||
|
||||
startProcesAction($event) {
|
||||
startProcessAction($event) {
|
||||
this.formValues['file'] = $event.value.entry;
|
||||
|
||||
const dialogRef = this.dialog.open(SelectAppsDialogComponent, {
|
||||
@ -515,7 +514,7 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
||||
this.turnedPreviousPage.emit(event);
|
||||
}
|
||||
|
||||
toogleGalleryView(): void {
|
||||
toggleGalleryView(): void {
|
||||
this.displayMode = this.displayMode === DisplayMode.List ? DisplayMode.Gallery : DisplayMode.List;
|
||||
const url = this
|
||||
.router
|
||||
|
@ -312,7 +312,7 @@ export class DemoForm {
|
||||
'maxLength': 0,
|
||||
'minValue': null,
|
||||
'maxValue': null,
|
||||
'regexPatt§12212ern': null,
|
||||
'regexPattern': null,
|
||||
'optionType': null,
|
||||
'hasEmptyValue': null,
|
||||
'options': [
|
||||
@ -1519,8 +1519,8 @@ export class DemoForm {
|
||||
'1': [
|
||||
{
|
||||
'fieldType': 'RestFieldRepresentation',
|
||||
'id': 'typeahedField',
|
||||
'name': 'TypeahedField',
|
||||
'id': 'typeaheadField',
|
||||
'name': 'TypeaheadField',
|
||||
'type': 'typeahead',
|
||||
'value': null,
|
||||
'required': false,
|
||||
|
@ -35,7 +35,7 @@ export class FakeFormService extends FormService {
|
||||
}
|
||||
|
||||
public getRestFieldValues(taskId: string, fieldId: string): Observable<any> {
|
||||
if (fieldId === 'typeahedField') {
|
||||
if (fieldId === 'typeaheadField') {
|
||||
return of([
|
||||
{ 'id': '1', 'name': 'Leanne Graham' },
|
||||
{ 'id': '2', 'name': 'Ervin Howell' },
|
||||
|
@ -51,7 +51,7 @@ export class FormLoadingComponent implements OnInit {
|
||||
|
||||
onLoadButtonClicked() {
|
||||
this.formattedData = {
|
||||
'typeahedField': this.typeaheadFieldValue,
|
||||
'typeaheadField': this.typeaheadFieldValue,
|
||||
'selectBox': this.selectFieldValue,
|
||||
'radioButton': this.radioButtonFieldValue
|
||||
};
|
||||
|
@ -21,16 +21,16 @@
|
||||
</p>
|
||||
<p class="toggle">
|
||||
<mat-slide-toggle
|
||||
id="adf-toogle-show-rememberme"
|
||||
id="adf-toggle-show-rememberme"
|
||||
[color]="'primary'"
|
||||
(change)="toggleRemamberme()"
|
||||
(change)="toggleRememberMe()"
|
||||
[checked]="showRememberMe">
|
||||
{{ 'LOGIN.SHOW_REMEMBERME'| translate }}
|
||||
</mat-slide-toggle>
|
||||
</p>
|
||||
<p class="toggle">
|
||||
<mat-slide-toggle
|
||||
id="adf-toogle-show-successRoute"
|
||||
id="adf-toggle-show-successRoute"
|
||||
[color]="'primary'"
|
||||
(change)="toggleSuccessRoute()"
|
||||
[checked]="customSuccessRoute">
|
||||
@ -50,7 +50,7 @@
|
||||
|
||||
<p class="toggle">
|
||||
<mat-slide-toggle
|
||||
id="adf-toogle-logo"
|
||||
id="adf-toggle-logo"
|
||||
[color]="'primary'"
|
||||
(change)="toggleLogo()"
|
||||
[checked]="customLogoImage">
|
||||
@ -77,7 +77,7 @@
|
||||
</a>
|
||||
|
||||
<adf-login
|
||||
#alfrescologin
|
||||
#alfrescoLogin
|
||||
[successRoute]="customSuccessRouteURI"
|
||||
[logoImageUrl]="customLogoImageURL"
|
||||
[fieldsValidation]="customValidation"
|
||||
|
@ -27,8 +27,8 @@ import { LogService } from '@alfresco/adf-core';
|
||||
})
|
||||
export class LoginComponent implements OnInit {
|
||||
|
||||
@ViewChild('alfrescologin')
|
||||
alfrescologin: any;
|
||||
@ViewChild('alfrescoLogin')
|
||||
alfrescoLogin: any;
|
||||
|
||||
customValidation: any;
|
||||
customSuccessRouteURI = '';
|
||||
@ -50,9 +50,9 @@ export class LoginComponent implements OnInit {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.alfrescologin.addCustomValidationError('username', 'required', 'LOGIN.MESSAGES.USERNAME-REQUIRED');
|
||||
this.alfrescologin.addCustomValidationError('username', 'minlength', 'LOGIN.MESSAGES.USERNAME-MIN', { minLength: this.customMinLength });
|
||||
this.alfrescologin.addCustomValidationError('password', 'required', 'LOGIN.MESSAGES.PASSWORD-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('password', 'required', 'LOGIN.MESSAGES.PASSWORD-REQUIRED');
|
||||
}
|
||||
|
||||
onLogin($event) {
|
||||
@ -71,7 +71,7 @@ export class LoginComponent implements OnInit {
|
||||
this.showFooter = !this.showFooter;
|
||||
}
|
||||
|
||||
toggleRemamberme() {
|
||||
toggleRememberMe() {
|
||||
this.showRememberMe = !this.showRememberMe;
|
||||
}
|
||||
|
||||
|
@ -25,7 +25,7 @@
|
||||
[showIcon]="showTaskFilterIcon"
|
||||
(filterClick)="onTaskFilterClick($event)"
|
||||
(success)="onSuccessTaskFilterList($event)"
|
||||
#activitifilter>
|
||||
#activitiFilter>
|
||||
</adf-task-filters>
|
||||
</adf-accordion-group>
|
||||
</adf-accordion>
|
||||
@ -69,7 +69,7 @@
|
||||
</div>
|
||||
<div class="adf-grid-item adf-tasks-details" *ngIf="!isStartTaskMode()" fxFlex.gt-md="1 1 auto"
|
||||
data-automation-id="adf-tasks-details">
|
||||
<adf-task-details #activitidetails
|
||||
<adf-task-details #activitiDetails
|
||||
[debugMode]="true"
|
||||
[taskId]="currentTaskId"
|
||||
[fieldValidators]="fieldValidators"
|
||||
@ -130,7 +130,7 @@
|
||||
<adf-accordion-group [heading]="'Processes'" [isSelected]="true" [isOpen]="true"
|
||||
[headingIcon]="'assessment'">
|
||||
<adf-process-instance-filters
|
||||
#activitiprocessfilter
|
||||
#activitiProcessFilter
|
||||
[appId]="appId"
|
||||
[filterParam]="filterSelected"
|
||||
[showIcon]="showProcessFilterIcon"
|
||||
@ -175,7 +175,7 @@
|
||||
</div>
|
||||
<div class="adf-grid-item adf-processes-details" *ngIf="!isStartProcessMode()" fxFlex.gt-md="1 1 auto">
|
||||
<adf-process-instance-details
|
||||
#activitiprocessdetails
|
||||
#activitiProcessDetails
|
||||
[processInstanceId]="currentProcessInstanceId"
|
||||
(processCancelled)="processCancelled()"
|
||||
(showProcessDiagram)="onShowProcessDiagram($event)"
|
||||
@ -226,7 +226,7 @@
|
||||
[appId]="appId"
|
||||
[selectFirst]="selectFirstReport"
|
||||
(reportClick)="onReportClick($event)"
|
||||
#analyticsreportlist>
|
||||
#analyticsReportList>
|
||||
</analytics-report-list>
|
||||
</div>
|
||||
<div class="adf-grid-item adf-reports-details" fxFlex.gt-md="1 1 auto">
|
||||
|
@ -79,8 +79,8 @@ const REPORT_ROUTE = 2;
|
||||
})
|
||||
export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit {
|
||||
|
||||
@ViewChild('activitifilter')
|
||||
activitifilter: TaskFiltersComponent;
|
||||
@ViewChild('activitiFilter')
|
||||
activitiFilter: TaskFiltersComponent;
|
||||
|
||||
@ViewChild('processListPagination')
|
||||
processListPagination: PaginationComponent;
|
||||
@ -91,23 +91,23 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
@ViewChild('taskList')
|
||||
taskList: TaskListComponent;
|
||||
|
||||
@ViewChild('activitiprocessfilter')
|
||||
activitiprocessfilter: ProcessFiltersComponent;
|
||||
@ViewChild('activitiProcessFilter')
|
||||
activitiProcessFilter: ProcessFiltersComponent;
|
||||
|
||||
@ViewChild('processList')
|
||||
processList: ProcessInstanceListComponent;
|
||||
|
||||
@ViewChild('activitiprocessdetails')
|
||||
activitiprocessdetails: ProcessInstanceDetailsComponent;
|
||||
@ViewChild('activitiProcessDetails')
|
||||
activitiProcessDetails: ProcessInstanceDetailsComponent;
|
||||
|
||||
@ViewChild('activitidetails')
|
||||
activitidetails: TaskDetailsComponent;
|
||||
@ViewChild('activitiDetails')
|
||||
activitiDetails: TaskDetailsComponent;
|
||||
|
||||
@ViewChild('activitiStartProcess')
|
||||
activitiStartProcess: StartProcessInstanceComponent;
|
||||
|
||||
@ViewChild('analyticsreportlist')
|
||||
analyticsreportlist: AnalyticsReportListComponent;
|
||||
@ViewChild('analyticsReportList')
|
||||
analyticsReportList: AnalyticsReportListComponent;
|
||||
|
||||
@Input()
|
||||
appId: number = null;
|
||||
@ -288,7 +288,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
}
|
||||
|
||||
onSuccessTaskFilterList(event: any): void {
|
||||
this.applyTaskFilter(this.activitifilter.getCurrentFilter());
|
||||
this.applyTaskFilter(this.activitiFilter.getCurrentFilter());
|
||||
}
|
||||
|
||||
applyTaskFilter(filter: FilterRepresentationModel) {
|
||||
@ -301,7 +301,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
}
|
||||
|
||||
onStartTaskSuccess(event: any): void {
|
||||
this.activitifilter.selectFilterWithTask(event.id);
|
||||
this.activitiFilter.selectFilterWithTask(event.id);
|
||||
this.currentTaskId = event.id;
|
||||
}
|
||||
|
||||
@ -325,7 +325,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
}
|
||||
|
||||
onSuccessProcessFilterList(event: ProcessInstanceFilterRepresentation[]): void {
|
||||
this.processFilter = this.activitiprocessfilter.getCurrentFilter();
|
||||
this.processFilter = this.activitiProcessFilter.getCurrentFilter();
|
||||
}
|
||||
|
||||
onSuccessProcessList(event: any): void {
|
||||
@ -351,16 +351,16 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
}
|
||||
|
||||
onEditReport(name: string): void {
|
||||
this.analyticsreportlist.reload();
|
||||
this.analyticsReportList.reload();
|
||||
}
|
||||
|
||||
onReportSaved(reportId): void {
|
||||
this.analyticsreportlist.reload(reportId);
|
||||
this.analyticsReportList.reload(reportId);
|
||||
}
|
||||
|
||||
onReportDeleted(): void {
|
||||
this.analyticsreportlist.reload();
|
||||
this.analyticsreportlist.selectReport(null);
|
||||
this.analyticsReportList.reload();
|
||||
this.analyticsReportList.selectReport(null);
|
||||
}
|
||||
|
||||
navigateStartProcess(): void {
|
||||
@ -374,7 +374,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
onStartProcessInstance(instance: ProcessInstance): void {
|
||||
this.currentProcessInstanceId = instance.id;
|
||||
this.activitiStartProcess.reset();
|
||||
this.activitiprocessfilter.selectRunningFilter();
|
||||
this.activitiProcessFilter.selectRunningFilter();
|
||||
}
|
||||
|
||||
onCancelProcessInstance() {
|
||||
@ -460,10 +460,10 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
loadStencilScriptsInPageFromProcessService() {
|
||||
this.apiService.getInstance().activiti.scriptFileApi.getControllers().then(response => {
|
||||
if (response) {
|
||||
const stencilSript = document.createElement('script');
|
||||
stencilSript.type = 'text/javascript';
|
||||
stencilSript.text = response;
|
||||
this.elementRef.nativeElement.appendChild(stencilSript);
|
||||
const stencilScript = document.createElement('script');
|
||||
stencilScript.type = 'text/javascript';
|
||||
stencilScript.text = response;
|
||||
this.elementRef.nativeElement.appendChild(stencilScript);
|
||||
}
|
||||
});
|
||||
}
|
||||
@ -482,7 +482,7 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
name: event.value.name || 'No name',
|
||||
created: event.value.created
|
||||
};
|
||||
this.activitifilter.selectFilter(null);
|
||||
this.activitiFilter.selectFilter(null);
|
||||
if (this.taskList) {
|
||||
this.taskList.setCustomDataSource([processTaskDataRow]);
|
||||
this.taskList.selectTask(taskId);
|
||||
@ -491,11 +491,11 @@ export class ProcessServiceComponent implements AfterViewInit, OnDestroy, OnInit
|
||||
}
|
||||
|
||||
private reloadProcessFilters(): void {
|
||||
this.activitiprocessfilter.selectFilter(this.activitiprocessfilter.getCurrentFilter());
|
||||
this.activitiProcessFilter.selectFilter(this.activitiProcessFilter.getCurrentFilter());
|
||||
}
|
||||
|
||||
private reloadTaskFilters(): void {
|
||||
this.activitifilter.selectFilter(this.activitifilter.getCurrentFilter());
|
||||
this.activitiFilter.selectFilter(this.activitiFilter.getCurrentFilter());
|
||||
}
|
||||
|
||||
onRowClick(event): void {
|
||||
|
@ -80,7 +80,9 @@ export class ThemePickerComponent {
|
||||
{
|
||||
primary: '#c2185b',
|
||||
accent: '#b0bec5',
|
||||
/* cspell:disable-next-line */
|
||||
name: 'Pink Bluegrey Dark',
|
||||
/* cspell:disable-next-line */
|
||||
href: 'adf-pink-bluegrey.css',
|
||||
isDark: false
|
||||
},
|
||||
|
@ -12,7 +12,7 @@ Manages role permissions for content nodes.
|
||||
|
||||
### 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.
|
||||
- _groupName:_ `string` - Name of group to look for members
|
||||
- _opts:_ `any` - (Optional) Extra options supported by JSAPI
|
||||
|
@ -78,7 +78,7 @@ class MyComponent {
|
||||
- `getProcessDefinitions():`[`Observable`](http://reactivex.io/documentation/observable.html)`<any>`
|
||||
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.
|
||||
- `processInstanceId` - ID of the target process
|
||||
- `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>`
|
||||
Get start form instance for a given processId
|
||||
- `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.
|
||||
- `processId` - ID of the process to get
|
||||
- `getStartFormDefinition(processId: string):`[`Observable`](http://reactivex.io/documentation/observable.html)`<any>`
|
||||
|
@ -11,12 +11,12 @@ Adds HTML to a string to highlight chosen sections.
|
||||
|
||||
### 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.
|
||||
- _text:_ `string` - Text to search within
|
||||
- _search:_ `string` - Text pattern to search for
|
||||
- _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
|
||||
|
||||
@ -31,11 +31,11 @@ highlight any of those words individually. The <span> element includes a
|
||||
`class` attribute which defaults to "highlight" but you can pass any class name
|
||||
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:
|
||||
|
||||
```ts
|
||||
interface HightlightTransformResult {
|
||||
interface HighlightTransformResult {
|
||||
text: string;
|
||||
changed: boolean;
|
||||
}
|
||||
|
@ -156,7 +156,7 @@ need your own custom validation:
|
||||
```html
|
||||
<adf-login
|
||||
[fieldsValidation]="customValidation"
|
||||
#alfrescologin>
|
||||
#alfrescoLogin>
|
||||
</adf-login>
|
||||
```
|
||||
|
||||
@ -165,8 +165,8 @@ need your own custom validation:
|
||||
```ts
|
||||
export class MyCustomLogin {
|
||||
|
||||
@ViewChild('alfrescologin')
|
||||
alfrescologin: any;
|
||||
@ViewChild('alfrescoLogin')
|
||||
alfrescoLogin: any;
|
||||
|
||||
customValidation: any;
|
||||
|
||||
@ -178,8 +178,8 @@ export class MyCustomLogin {
|
||||
}
|
||||
|
||||
ngOnInit() {
|
||||
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', 'minlength', 'Username must be at least 8 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
|
||||
<adf-login
|
||||
(executeSubmit)="validateForm($event)"
|
||||
#alfrescologin>
|
||||
#alfrescoLogin>
|
||||
</adf-login>
|
||||
```
|
||||
|
||||
@ -256,7 +256,7 @@ export class MyCustomLogin {
|
||||
|
||||
// check if the username is in the blacklist
|
||||
if (values.controls['username'].value === 'invalidUsername') {
|
||||
this.alfrescologin.addCustomFormError('username', 'the
|
||||
this.alfrescoLogin.addCustomFormError('username', 'the
|
||||
username is in blacklist');
|
||||
event.preventDefault();
|
||||
}
|
||||
|
@ -18,7 +18,7 @@ Logs the user out when the decorated element is clicked.
|
||||
| Name | Type | Default value | Description |
|
||||
| -- | -- | -- | -- |
|
||||
| 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
|
||||
|
@ -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)
|
||||
- [9. Search list Component new delete file feature]\(#9-search-list-component new-delete-file-feature)
|
||||
- [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)
|
||||
- [13. User Preferences Service](#13-user-preferences-service)
|
||||
- [14. Search results highlighting properties](#14-search-results-highlighting-properties)
|
||||
|
@ -161,7 +161,7 @@ myOnFolderNodeDoubleClick(nodeId) {
|
||||
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:
|
||||
|
||||

|
||||

|
||||
|
||||
## Creating and deleting a subfolder
|
||||
|
||||
|
@ -144,17 +144,17 @@ describe('Document List Component - Actions', () => {
|
||||
|
||||
describe('Folder Actions', () => {
|
||||
|
||||
let folderName, secondfolderName;
|
||||
let folderName, secondFolderName;
|
||||
|
||||
beforeEach(async (done) => {
|
||||
acsUser = new AcsUserModel();
|
||||
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.core.peopleApi.addPerson(acsUser);
|
||||
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
||||
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);
|
||||
contentServicesPage.goToDocumentList();
|
||||
@ -192,8 +192,8 @@ describe('Document List Component - Actions', () => {
|
||||
browser.driver.sleep(15000);
|
||||
|
||||
contentListPage.copyContent(folderName);
|
||||
contentServicesPage.typeIntoNodeSelectorSearchField(secondfolderName);
|
||||
contentServicesPage.clickContentNodeSelectorResult(secondfolderName);
|
||||
contentServicesPage.typeIntoNodeSelectorSearchField(secondFolderName);
|
||||
contentServicesPage.clickContentNodeSelectorResult(secondFolderName);
|
||||
contentServicesPage.clickCopyButton();
|
||||
contentServicesPage.checkContentIsDisplayed(folderName);
|
||||
contentServicesPage.doubleClickRow(secondUploadedFolder.entry.name);
|
||||
|
@ -145,6 +145,7 @@ describe('Document List Component', () => {
|
||||
|
||||
acsUser = new AcsUserModel();
|
||||
|
||||
/* cspell:disable-next-line */
|
||||
folderName = `MEESEEKS_${Util.generateRandomString(5)}_LOOK_AT_ME`;
|
||||
|
||||
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
|
||||
});
|
||||
acsUser = new AcsUserModel();
|
||||
/* cspell:disable-next-line */
|
||||
let folderName = `MEESEEKS_${Util.generateRandomString(5)}_LOOK_AT_ME`;
|
||||
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
|
||||
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) => {
|
||||
acsUser = new AcsUserModel();
|
||||
/* cspell:disable-next-line */
|
||||
let folderName = 'ggggggjjjjjjjjjjjjyyyyyy';
|
||||
await this.alfrescoJsApi.login(TestConfig.adf.adminEmail, TestConfig.adf.adminPassword);
|
||||
await this.alfrescoJsApi.core.peopleApi.addPerson(acsUser);
|
||||
@ -391,8 +394,8 @@ describe('Document List Component', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
contentServicesPage.checkContentIsDisplayed(folderNameA);
|
||||
contentServicesPage.checkContentIsDisplayed(folderNameB);
|
||||
contentServicesPage.checkLockIsDislpayedForElement(folderNameA);
|
||||
contentServicesPage.checkLockIsDislpayedForElement(folderNameB);
|
||||
contentServicesPage.checkLockIsDisplayedForElement(folderNameA);
|
||||
contentServicesPage.checkLockIsDisplayedForElement(folderNameB);
|
||||
done();
|
||||
});
|
||||
|
||||
@ -415,8 +418,8 @@ describe('Document List Component', () => {
|
||||
contentServicesPage.goToDocumentList();
|
||||
contentServicesPage.checkContentIsDisplayed(testFileA.name);
|
||||
contentServicesPage.checkContentIsDisplayed(testFileB.name);
|
||||
contentServicesPage.checkLockIsDislpayedForElement(testFileA.name);
|
||||
contentServicesPage.checkLockIsDislpayedForElement(testFileB.name);
|
||||
contentServicesPage.checkLockIsDisplayedForElement(testFileA.name);
|
||||
contentServicesPage.checkLockIsDisplayedForElement(testFileB.name);
|
||||
done();
|
||||
});
|
||||
|
||||
|
@ -62,8 +62,8 @@ describe('Document List - Pagination', function () {
|
||||
beforeAll(async (done) => {
|
||||
let uploadActions = new UploadActions();
|
||||
|
||||
fileNames = Util.generateSeqeunceFiles(10, nrOfFiles + 9, pagination.base, pagination.extension);
|
||||
secondSetOfFiles = Util.generateSeqeunceFiles(10, secondSetNumber + 9, pagination.secondSetBase, pagination.extension);
|
||||
fileNames = Util.generateSequenceFiles(10, nrOfFiles + 9, pagination.base, pagination.extension);
|
||||
secondSetOfFiles = Util.generateSequenceFiles(10, secondSetNumber + 9, pagination.secondSetBase, pagination.extension);
|
||||
|
||||
this.alfrescoJsApi = new AlfrescoApi({
|
||||
provider: 'ECM',
|
||||
@ -77,9 +77,9 @@ describe('Document List - Pagination', function () {
|
||||
await this.alfrescoJsApi.login(acsUser.id, acsUser.password);
|
||||
|
||||
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);
|
||||
|
||||
|
@ -61,8 +61,8 @@ describe('Search component - Search Page', () => {
|
||||
let fileNames = [], adminFileNames = [], nrOfFiles = 15, adminNrOfFiles = 5;
|
||||
|
||||
beforeAll(async (done) => {
|
||||
fileNames = Util.generateSeqeunceFiles(1, nrOfFiles, search.active.base, search.active.extension);
|
||||
adminFileNames = Util.generateSeqeunceFiles(nrOfFiles + 1, nrOfFiles + adminNrOfFiles, search.active.base, search.active.extension);
|
||||
fileNames = Util.generateSequenceFiles(1, nrOfFiles, 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.secondFile = fileNames[1];
|
||||
fileNames.splice(0, 1);
|
||||
|
@ -60,7 +60,7 @@ describe('Trashcan - Pagination', () => {
|
||||
beforeAll(async (done) => {
|
||||
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({
|
||||
provider: 'ECM',
|
||||
|
@ -84,7 +84,7 @@ describe('Upload component - Excluded Files', () => {
|
||||
});
|
||||
|
||||
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();
|
||||
|
||||
|
@ -111,10 +111,10 @@ describe('Upload component', () => {
|
||||
});
|
||||
|
||||
afterEach(async (done) => {
|
||||
let nodersPromise = await contentServicesPage.getContentList().getAllNodeIdInList();
|
||||
let nodesPromise = await contentServicesPage.getContentList().getAllNodeIdInList();
|
||||
|
||||
nodersPromise.forEach(async (currentNodePormise) => {
|
||||
await currentNodePormise.then(async (currentNode) => {
|
||||
nodesPromise.forEach(async (currentNodePromise) => {
|
||||
await currentNodePromise.then(async (currentNode) => {
|
||||
if (currentNode && currentNode !== 'Node id') {
|
||||
await uploadActions.deleteFilesOrFolder(this.alfrescoJsApi, currentNode);
|
||||
}
|
||||
|
@ -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', () => {
|
||||
contentServicesPage.checkDandDIsDisplayed();
|
||||
contentServicesPage.checkDragAndDropDIsDisplayed();
|
||||
|
||||
let dragAndDrop = new DropActions();
|
||||
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', () => {
|
||||
contentServicesPage.checkDandDIsDisplayed();
|
||||
contentServicesPage.checkDragAndDropDIsDisplayed();
|
||||
|
||||
let dragAndDrop = new DropActions();
|
||||
|
||||
|
@ -120,8 +120,8 @@ describe('Version component actions', () => {
|
||||
|
||||
versionManagePage.clickAcceptConfirm();
|
||||
|
||||
versionManagePage.chekFileVersionNotExist('1.1');
|
||||
versionManagePage.chekFileVersionExist('1.0');
|
||||
versionManagePage.checkFileVersionNotExist('1.1');
|
||||
versionManagePage.checkFileVersionExist('1.0');
|
||||
});
|
||||
|
||||
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.chekFileVersionExist('1.1');
|
||||
versionManagePage.checkFileVersionExist('1.1');
|
||||
|
||||
versionManagePage.deleteFileVersion('1.1');
|
||||
|
||||
versionManagePage.clickCancelConfirm();
|
||||
|
||||
versionManagePage.chekFileVersionExist('1.1');
|
||||
versionManagePage.chekFileVersionExist('1.0');
|
||||
versionManagePage.checkFileVersionExist('1.1');
|
||||
versionManagePage.checkFileVersionExist('1.0');
|
||||
});
|
||||
|
||||
it('[C280007] Should be possible restore an old version of your file', () => {
|
||||
versionManagePage.restoreFileVersion('1.0');
|
||||
|
||||
versionManagePage.chekFileVersionExist('2.0');
|
||||
versionManagePage.checkFileVersionExist('2.0');
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -64,7 +64,7 @@ describe('Version component permissions', () => {
|
||||
'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,
|
||||
'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 uploadActions.uploadFile(this.alfrescoJsApi, differentCreatoFile.location, differentCreatoFile.name, site.entry.guid);
|
||||
await uploadActions.uploadFile(this.alfrescoJsApi, differentCreatorFile.location, differentCreatorFile.name, site.entry.guid);
|
||||
|
||||
done();
|
||||
});
|
||||
|
||||
describe('Manager', () => {
|
||||
|
||||
let sameCreatoFile = new FileModel({
|
||||
let sameCreatorFile = new FileModel({
|
||||
'name': resources.Files.ADF_DOCUMENTS.PNG.file_name,
|
||||
'location': resources.Files.ADF_DOCUMENTS.PNG.file_location
|
||||
});
|
||||
@ -142,8 +142,8 @@ describe('Version component permissions', () => {
|
||||
|
||||
await this.alfrescoJsApi.login(managerUser.id, managerUser.password);
|
||||
|
||||
let sameCreatoFileUploaded = await uploadActions.uploadFile(this.alfrescoJsApi, sameCreatoFile.location, sameCreatoFile.name, site.entry.guid);
|
||||
Object.assign(sameCreatoFile, sameCreatoFileUploaded.entry);
|
||||
let sameCreatorFileUploaded = await uploadActions.uploadFile(this.alfrescoJsApi, sameCreatorFile.location, sameCreatorFile.name, site.entry.guid);
|
||||
Object.assign(sameCreatorFile, sameCreatorFileUploaded.entry);
|
||||
|
||||
loginPage.loginToContentServicesUsingUserModel(managerUser);
|
||||
|
||||
@ -153,25 +153,25 @@ describe('Version component permissions', () => {
|
||||
});
|
||||
|
||||
afterAll(async (done) => {
|
||||
await this.alfrescoJsApi.nodes.deleteNode(sameCreatoFile.id);
|
||||
await this.alfrescoJsApi.nodes.deleteNode(sameCreatorFile.id);
|
||||
done();
|
||||
});
|
||||
|
||||
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.uploadNewVersionFile(newVersionFile.location);
|
||||
|
||||
versionManagePage.chekFileVersionExist('1.1');
|
||||
versionManagePage.checkFileVersionExist('1.1');
|
||||
expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name);
|
||||
expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined();
|
||||
|
||||
versionManagePage.deleteFileVersion('1.1');
|
||||
versionManagePage.clickAcceptConfirm();
|
||||
|
||||
versionManagePage.chekFileVersionNotExist('1.1');
|
||||
versionManagePage.checkFileVersionNotExist('1.1');
|
||||
|
||||
versionManagePage.closeVersionDialog();
|
||||
|
||||
@ -185,7 +185,7 @@ describe('Version component permissions', () => {
|
||||
|
||||
versionManagePage.uploadNewVersionFile(newVersionFile.location);
|
||||
|
||||
versionManagePage.chekFileVersionNotExist('1.1');
|
||||
versionManagePage.checkFileVersionNotExist('1.1');
|
||||
|
||||
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', () => {
|
||||
contentListPage.versionManagerContent(sameCreatoFile.name);
|
||||
contentListPage.versionManagerContent(sameCreatorFile.name);
|
||||
|
||||
versionManagePage.showNewVersionButton.click();
|
||||
|
||||
versionManagePage.uploadNewVersionFile(newVersionFile.location);
|
||||
|
||||
versionManagePage.chekFileVersionExist('1.1');
|
||||
versionManagePage.checkFileVersionExist('1.1');
|
||||
expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name);
|
||||
expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined();
|
||||
|
||||
versionManagePage.deleteFileVersion('1.1');
|
||||
versionManagePage.clickAcceptConfirm();
|
||||
|
||||
versionManagePage.chekFileVersionNotExist('1.1');
|
||||
versionManagePage.checkFileVersionNotExist('1.1');
|
||||
|
||||
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', () => {
|
||||
contentListPage.versionManagerContent(differentCreatoFile.name);
|
||||
contentListPage.versionManagerContent(differentCreatorFile.name);
|
||||
|
||||
notificationPage.checkNotifyContains(`You don't have access to do this`);
|
||||
});
|
||||
@ -239,7 +239,7 @@ describe('Version component permissions', () => {
|
||||
});
|
||||
|
||||
describe('Contributor', () => {
|
||||
let sameCreatoFile = new FileModel({
|
||||
let sameCreatorFile = new FileModel({
|
||||
'name': resources.Files.ADF_DOCUMENTS.PNG.file_name,
|
||||
'location': resources.Files.ADF_DOCUMENTS.PNG.file_location
|
||||
});
|
||||
@ -249,8 +249,8 @@ describe('Version component permissions', () => {
|
||||
|
||||
await this.alfrescoJsApi.login(contributorUser.id, contributorUser.password);
|
||||
|
||||
let sameCreatoFileUploaded = await uploadActions.uploadFile(this.alfrescoJsApi, sameCreatoFile.location, sameCreatoFile.name, site.entry.guid);
|
||||
Object.assign(sameCreatoFile, sameCreatoFileUploaded.entry);
|
||||
let sameCreatorFileUploaded = await uploadActions.uploadFile(this.alfrescoJsApi, sameCreatorFile.location, sameCreatorFile.name, site.entry.guid);
|
||||
Object.assign(sameCreatorFile, sameCreatorFileUploaded.entry);
|
||||
|
||||
loginPage.loginToContentServicesUsingUserModel(contributorUser);
|
||||
|
||||
@ -260,25 +260,25 @@ describe('Version component permissions', () => {
|
||||
});
|
||||
|
||||
afterAll(async (done) => {
|
||||
await this.alfrescoJsApi.nodes.deleteNode(sameCreatoFile.id);
|
||||
await this.alfrescoJsApi.nodes.deleteNode(sameCreatorFile.id);
|
||||
done();
|
||||
});
|
||||
|
||||
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.uploadNewVersionFile(newVersionFile.location);
|
||||
|
||||
versionManagePage.chekFileVersionExist('1.1');
|
||||
versionManagePage.checkFileVersionExist('1.1');
|
||||
expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name);
|
||||
expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined();
|
||||
|
||||
versionManagePage.deleteFileVersion('1.1');
|
||||
versionManagePage.clickAcceptConfirm();
|
||||
|
||||
versionManagePage.chekFileVersionNotExist('1.1');
|
||||
versionManagePage.checkFileVersionNotExist('1.1');
|
||||
|
||||
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', () => {
|
||||
contentListPage.versionManagerContent(differentCreatoFile.name);
|
||||
contentListPage.versionManagerContent(differentCreatorFile.name);
|
||||
|
||||
notificationPage.checkNotifyContains(`You don't have access to do this`);
|
||||
});
|
||||
@ -299,7 +299,7 @@ describe('Version component permissions', () => {
|
||||
});
|
||||
|
||||
describe('Collaborator', () => {
|
||||
let sameCreatoFile = new FileModel({
|
||||
let sameCreatorFile = new FileModel({
|
||||
'name': resources.Files.ADF_DOCUMENTS.PNG.file_name,
|
||||
'location': resources.Files.ADF_DOCUMENTS.PNG.file_location
|
||||
});
|
||||
@ -309,8 +309,8 @@ describe('Version component permissions', () => {
|
||||
|
||||
await this.alfrescoJsApi.login(collaboratorUser.id, collaboratorUser.password);
|
||||
|
||||
let sameCreatoFileUploaded = await uploadActions.uploadFile(this.alfrescoJsApi, sameCreatoFile.location, sameCreatoFile.name, site.entry.guid);
|
||||
Object.assign(sameCreatoFile, sameCreatoFileUploaded.entry);
|
||||
let sameCreatorFileUploaded = await uploadActions.uploadFile(this.alfrescoJsApi, sameCreatorFile.location, sameCreatorFile.name, site.entry.guid);
|
||||
Object.assign(sameCreatorFile, sameCreatorFileUploaded.entry);
|
||||
|
||||
loginPage.loginToContentServicesUsingUserModel(collaboratorUser);
|
||||
|
||||
@ -320,25 +320,25 @@ describe('Version component permissions', () => {
|
||||
});
|
||||
|
||||
afterAll(async (done) => {
|
||||
await this.alfrescoJsApi.nodes.deleteNode(sameCreatoFile.id);
|
||||
await this.alfrescoJsApi.nodes.deleteNode(sameCreatorFile.id);
|
||||
done();
|
||||
});
|
||||
|
||||
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.uploadNewVersionFile(newVersionFile.location);
|
||||
|
||||
versionManagePage.chekFileVersionExist('1.1');
|
||||
versionManagePage.checkFileVersionExist('1.1');
|
||||
expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name);
|
||||
expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined();
|
||||
|
||||
versionManagePage.deleteFileVersion('1.1');
|
||||
versionManagePage.clickAcceptConfirm();
|
||||
|
||||
versionManagePage.chekFileVersionNotExist('1.1');
|
||||
versionManagePage.checkFileVersionNotExist('1.1');
|
||||
|
||||
versionManagePage.closeVersionDialog();
|
||||
|
||||
@ -352,7 +352,7 @@ describe('Version component permissions', () => {
|
||||
|
||||
versionManagePage.uploadNewVersionFile(newVersionFile.location);
|
||||
|
||||
versionManagePage.chekFileVersionNotExist('1.1');
|
||||
versionManagePage.checkFileVersionNotExist('1.1');
|
||||
|
||||
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', () => {
|
||||
contentListPage.versionManagerContent(differentCreatoFile.name);
|
||||
contentListPage.versionManagerContent(differentCreatorFile.name);
|
||||
|
||||
versionManagePage.showNewVersionButton.click();
|
||||
|
||||
versionManagePage.uploadNewVersionFile(newVersionFile.location);
|
||||
|
||||
versionManagePage.chekFileVersionExist('1.1');
|
||||
versionManagePage.checkFileVersionExist('1.1');
|
||||
expect(versionManagePage.getFileVersionName('1.1')).toEqual(newVersionFile.name);
|
||||
expect(versionManagePage.getFileVersionDate('1.1')).not.toBeUndefined();
|
||||
|
||||
|
@ -107,7 +107,7 @@ describe('Version Properties', () => {
|
||||
versionManagePage.enterCommentText('Example comment text');
|
||||
versionManagePage.uploadNewVersionFile(fileModelVersionTwo.location);
|
||||
|
||||
versionManagePage.chekFileVersionExist('1.1');
|
||||
versionManagePage.checkFileVersionExist('1.1');
|
||||
expect(versionManagePage.getFileVersionComment('1.1')).toEqual('Example comment text');
|
||||
|
||||
versionManagePage.disableComments();
|
||||
|
@ -98,7 +98,7 @@ describe('Version component', () => {
|
||||
it('[C272768] Should be visible the first file version when you upload a file', () => {
|
||||
versionManagePage.checkUploadNewVersionsButtonIsDisplayed();
|
||||
|
||||
versionManagePage.chekFileVersionExist('1.0');
|
||||
versionManagePage.checkFileVersionExist('1.0');
|
||||
expect(versionManagePage.getFileVersionName('1.0')).toEqual(txtFileModel.name);
|
||||
expect(versionManagePage.getFileVersionDate('1.0')).not.toBeUndefined();
|
||||
});
|
||||
@ -133,11 +133,11 @@ describe('Version component', () => {
|
||||
versionManagePage.showNewVersionButton.click();
|
||||
versionManagePage.uploadNewVersionFile(fileModelVersionTwo.location);
|
||||
|
||||
versionManagePage.chekFileVersionExist('1.0');
|
||||
versionManagePage.checkFileVersionExist('1.0');
|
||||
expect(versionManagePage.getFileVersionName('1.0')).toEqual(txtFileModel.name);
|
||||
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.getFileVersionDate('1.1')).not.toBeUndefined();
|
||||
});
|
||||
@ -147,7 +147,7 @@ describe('Version component', () => {
|
||||
versionManagePage.enterCommentText('Example comment text');
|
||||
versionManagePage.uploadNewVersionFile(fileModelVersionThree.location);
|
||||
|
||||
versionManagePage.chekFileVersionExist('1.2');
|
||||
versionManagePage.checkFileVersionExist('1.2');
|
||||
expect(versionManagePage.getFileVersionName('1.2')).toEqual(fileModelVersionThree.name);
|
||||
expect(versionManagePage.getFileVersionDate('1.2')).not.toBeUndefined();
|
||||
expect(versionManagePage.getFileVersionComment('1.2')).toEqual('Example comment text');
|
||||
@ -159,7 +159,7 @@ describe('Version component', () => {
|
||||
|
||||
versionManagePage.uploadNewVersionFile(fileModelVersionFor.location);
|
||||
|
||||
versionManagePage.chekFileVersionExist('2.0');
|
||||
versionManagePage.checkFileVersionExist('2.0');
|
||||
expect(versionManagePage.getFileVersionName('2.0')).toEqual(fileModelVersionFor.name);
|
||||
|
||||
versionManagePage.showNewVersionButton.click();
|
||||
@ -167,7 +167,7 @@ describe('Version component', () => {
|
||||
|
||||
versionManagePage.uploadNewVersionFile(fileModelVersionFive.location);
|
||||
|
||||
versionManagePage.chekFileVersionExist('2.1');
|
||||
versionManagePage.checkFileVersionExist('2.1');
|
||||
expect(versionManagePage.getFileVersionName('2.1')).toEqual(fileModelVersionFive.name);
|
||||
});
|
||||
|
||||
|
@ -109,14 +109,14 @@ describe('Aspect oriented config', () => {
|
||||
metadataViewPage.informationButtonIsDisplayed();
|
||||
metadataViewPage.clickOnInformationButton();
|
||||
|
||||
metadataViewPage.clickMetadatGroup('IMAGE');
|
||||
metadataViewPage.checkPopertyIsVisible('properties.exif:pixelXDimension', 'textitem');
|
||||
metadataViewPage.checkPopertyIsVisible('properties.exif:pixelYDimension', 'textitem');
|
||||
metadataViewPage.checkPopertyIsNotVisible('properties.exif:isoSpeedRatings', 'textitem');
|
||||
metadataViewPage.clickMetadataGroup('IMAGE');
|
||||
metadataViewPage.checkPropertyIsVisible('properties.exif:pixelXDimension', 'textitem');
|
||||
metadataViewPage.checkPropertyIsVisible('properties.exif:pixelYDimension', 'textitem');
|
||||
metadataViewPage.checkPropertyIsNotVisible('properties.exif:isoSpeedRatings', 'textitem');
|
||||
|
||||
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', () => {
|
||||
@ -142,10 +142,10 @@ describe('Aspect oriented config', () => {
|
||||
metadataViewPage.informationButtonIsDisplayed();
|
||||
metadataViewPage.clickOnInformationButton();
|
||||
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('EXIF');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('properties');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('Versionable');
|
||||
metadataViewPage.checkkMetadatGroupIsNotPresent('exists');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('EXIF');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('properties');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('Versionable');
|
||||
metadataViewPage.checkMetadataGroupIsNotPresent('exists');
|
||||
});
|
||||
|
||||
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.clickOnInformationButton();
|
||||
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('EXIF');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('properties');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('Versionable');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('Titled');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('Auditable');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('Author');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('Content');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('EXIF');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('properties');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('Versionable');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('Titled');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('Auditable');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('Author');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('Content');
|
||||
});
|
||||
|
||||
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.clickOnInformationButton();
|
||||
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('EXIF');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('properties');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('Versionable');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('Titled');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('Auditable');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('Author');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('Content');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('EXIF');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('properties');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('Versionable');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('Titled');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('Auditable');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('Author');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('Content');
|
||||
});
|
||||
|
||||
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.clickOnInformationButton();
|
||||
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('GROUP-TITLE1-TRANSLATION-KEY');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('GROUP-TITLE2-TRANSLATION-KEY');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('GROUP-TITLE1-TRANSLATION-KEY');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('GROUP-TITLE2-TRANSLATION-KEY');
|
||||
|
||||
expect(metadataViewPage.getkMetadatGroupTitle('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-TITLE1-TRANSLATION-KEY')).toBe('CUSTOM TITLE TRANSLATION ONE');
|
||||
expect(metadataViewPage.getMetadataGroupTitle('GROUP-TITLE2-TRANSLATION-KEY')).toBe('CUSTOM TITLE TRANSLATION TWO');
|
||||
|
||||
});
|
||||
|
||||
@ -278,8 +278,8 @@ describe('Aspect oriented config', () => {
|
||||
metadataViewPage.informationButtonIsDisplayed();
|
||||
metadataViewPage.clickOnInformationButton();
|
||||
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('properties');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('EXIF');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('Versionable');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('properties');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('EXIF');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('Versionable');
|
||||
});
|
||||
});
|
||||
|
@ -88,7 +88,7 @@ describe('CardView Component', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('Selectbox', () => {
|
||||
describe('SelectBox', () => {
|
||||
|
||||
it('[C279939] Should the label be present', () => {
|
||||
let label = element(by.xpath('div[data-automation-id="card-select-label-select"]'));
|
||||
@ -96,7 +96,7 @@ describe('CardView Component', () => {
|
||||
Util.waitUntilElementIsPresent(label);
|
||||
});
|
||||
|
||||
it('[C279899] Should be possible edit selectbox item', () => {
|
||||
it('[C279899] Should be possible edit selectBox item', () => {
|
||||
cardViewPageComponent.clickSelectBox();
|
||||
cardViewPageComponent.selectValueFromComboBox(1);
|
||||
|
||||
|
@ -35,7 +35,7 @@ import CONSTANTS = require('../../util/constants');
|
||||
describe('permissions', () => {
|
||||
|
||||
const METADATA = {
|
||||
DATAFORMAT: 'mmm dd yyyy',
|
||||
DATA_FORMAT: 'mmm dd yyyy',
|
||||
TITLE: 'Details',
|
||||
COMMENTS_TAB: 'COMMENTS',
|
||||
PROPERTY_TAB: 'PROPERTIES',
|
||||
@ -134,7 +134,7 @@ describe('permissions', () => {
|
||||
|
||||
metadataViewPage.clickOnInformationButton();
|
||||
|
||||
metadataViewPage.clickMetadatGroup('EXIF');
|
||||
metadataViewPage.clickMetadataGroup('EXIF');
|
||||
|
||||
metadataViewPage.editIconIsDisplayed();
|
||||
});
|
||||
@ -154,7 +154,7 @@ describe('permissions', () => {
|
||||
|
||||
metadataViewPage.clickOnInformationButton();
|
||||
|
||||
metadataViewPage.clickMetadatGroup('EXIF');
|
||||
metadataViewPage.clickMetadataGroup('EXIF');
|
||||
|
||||
metadataViewPage.editIconIsDisplayed();
|
||||
});
|
||||
|
@ -32,7 +32,7 @@ import { UploadActions } from '../../actions/ACS/upload.actions';
|
||||
describe('CardView Component - properties', () => {
|
||||
|
||||
let METADATA = {
|
||||
DATAFORMAT: 'mmm dd yyyy',
|
||||
DATA_FORMAT: 'mmm dd yyyy',
|
||||
TITLE: 'Details',
|
||||
COMMENTS_TAB: 'COMMENTS',
|
||||
PROPERTY_TAB: 'PROPERTIES',
|
||||
@ -99,15 +99,15 @@ describe('CardView Component - properties', () => {
|
||||
|
||||
metadataViewPage.clickOnInformationButton();
|
||||
|
||||
metadataViewPage.clickMetadatGroup('EXIF');
|
||||
metadataViewPage.clickMetadataGroup('EXIF');
|
||||
|
||||
metadataViewPage.checkPopertyIsVisible('properties.exif:flash', 'boolean');
|
||||
metadataViewPage.checkPopertyIsNotVisible('properties.exif:model', 'textitem');
|
||||
metadataViewPage.checkPropertyIsVisible('properties.exif:flash', 'boolean');
|
||||
metadataViewPage.checkPropertyIsNotVisible('properties.exif:model', 'textitem');
|
||||
|
||||
metadataViewPage.enableDisplayEmpty();
|
||||
|
||||
metadataViewPage.checkPopertyIsVisible('properties.exif:flash', 'boolean');
|
||||
metadataViewPage.checkPopertyIsVisible('properties.exif:model', 'textitem');
|
||||
metadataViewPage.checkPropertyIsVisible('properties.exif:flash', 'boolean');
|
||||
metadataViewPage.checkPropertyIsVisible('properties.exif:model', 'textitem');
|
||||
});
|
||||
|
||||
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.chekMetadatGroupIsNotExpand('EXIF');
|
||||
metadataViewPage.chekMetadatGroupIsNotExpand('properties');
|
||||
metadataViewPage.checkMetadataGroupIsNotExpand('EXIF');
|
||||
metadataViewPage.checkMetadataGroupIsNotExpand('properties');
|
||||
|
||||
metadataViewPage.clickMetadatGroup('properties');
|
||||
metadataViewPage.clickMetadataGroup('properties');
|
||||
|
||||
metadataViewPage.chekMetadatGroupIsNotExpand('EXIF');
|
||||
metadataViewPage.chekMetadatGroupIsExpand('properties');
|
||||
metadataViewPage.checkMetadataGroupIsNotExpand('EXIF');
|
||||
metadataViewPage.checkMetadataGroupIsExpand('properties');
|
||||
|
||||
metadataViewPage.clickMetadatGroup('EXIF');
|
||||
metadataViewPage.clickMetadataGroup('EXIF');
|
||||
|
||||
metadataViewPage.chekMetadatGroupIsExpand('EXIF');
|
||||
metadataViewPage.chekMetadatGroupIsNotExpand('properties');
|
||||
metadataViewPage.checkMetadataGroupIsExpand('EXIF');
|
||||
metadataViewPage.checkMetadataGroupIsNotExpand('properties');
|
||||
|
||||
metadataViewPage.enableMulti();
|
||||
|
||||
metadataViewPage.clickMetadatGroup('properties');
|
||||
metadataViewPage.clickMetadataGroup('properties');
|
||||
|
||||
metadataViewPage.chekMetadatGroupIsExpand('EXIF');
|
||||
metadataViewPage.chekMetadatGroupIsExpand('properties');
|
||||
metadataViewPage.checkMetadataGroupIsExpand('EXIF');
|
||||
metadataViewPage.checkMetadataGroupIsExpand('properties');
|
||||
|
||||
});
|
||||
|
||||
@ -160,14 +160,14 @@ describe('CardView Component - properties', () => {
|
||||
|
||||
metadataViewPage.disabledDefaultProperties();
|
||||
|
||||
metadataViewPage.checkkMetadatGroupIsNotPresent('properties');
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('EXIF');
|
||||
metadataViewPage.chekMetadatGroupIsExpand('EXIF');
|
||||
metadataViewPage.checkMetadataGroupIsNotPresent('properties');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('EXIF');
|
||||
metadataViewPage.checkMetadataGroupIsExpand('EXIF');
|
||||
|
||||
metadataViewPage.enabledDefaultProperties();
|
||||
|
||||
metadataViewPage.checkkMetadatGroupIsPresent('properties');
|
||||
metadataViewPage.chekMetadatGroupIsExpand('properties');
|
||||
metadataViewPage.checkMetadataGroupIsPresent('properties');
|
||||
metadataViewPage.checkMetadataGroupIsExpand('properties');
|
||||
});
|
||||
|
||||
it('[C280560] Should show/hide the more properties button when displayDefaultProperties is true/false', () => {
|
||||
|
@ -36,7 +36,7 @@ import { UploadActions } from '../../actions/ACS/upload.actions';
|
||||
describe('Metadata component', () => {
|
||||
|
||||
const METADATA = {
|
||||
DATAFORMAT: 'mmm dd yyyy',
|
||||
DATA_FORMAT: 'mmm dd yyyy',
|
||||
TITLE: 'Details',
|
||||
COMMENTS_TAB: 'COMMENTS',
|
||||
PROPERTY_TAB: 'PROPERTIES',
|
||||
@ -106,9 +106,9 @@ describe('Metadata component', () => {
|
||||
expect(metadataViewPage.getExpandedAspectName()).toEqual(METADATA.DEFAULT_ASPECT);
|
||||
expect(metadataViewPage.getName()).toEqual(pngFileModel.name);
|
||||
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.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.getSize()).toEqual(pngFileModel.getContent().getSizeInBytes());
|
||||
|
||||
@ -288,7 +288,7 @@ describe('Metadata component', () => {
|
||||
|
||||
metadataViewPage.clickOnInformationButton();
|
||||
|
||||
metadataViewPage.clickMetadatGroup('EXIF');
|
||||
metadataViewPage.clickMetadataGroup('EXIF');
|
||||
|
||||
metadataViewPage.editIconClick();
|
||||
|
||||
|
@ -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');
|
||||
expect(errorPage.getErrorCode()).toBe('403');
|
||||
expect(errorPage.getErrorTitle()).toBe('You don\'t have permission to access this server.');
|
||||
|
@ -59,7 +59,7 @@ describe('Enable infinite scrolling', () => {
|
||||
|
||||
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);
|
||||
|
||||
|
@ -62,7 +62,7 @@ describe('Pagination - returns to previous page when current is empty', () => {
|
||||
|
||||
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);
|
||||
|
||||
|
@ -182,13 +182,13 @@ describe('Viewer', () => {
|
||||
|
||||
describe('PowerPoint Folder Uploaded', () => {
|
||||
|
||||
let uploadedPpts;
|
||||
let uploadedPpt;
|
||||
let pptFolderUploaded;
|
||||
|
||||
beforeAll(async (done) => {
|
||||
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);
|
||||
contentServicesPage.goToDocumentList();
|
||||
@ -204,7 +204,7 @@ describe('Viewer', () => {
|
||||
it('[C280009] Should be possible to open any PowerPoint file', () => {
|
||||
contentServicesPage.navigateToFolder('ppt');
|
||||
|
||||
uploadedPpts.forEach((currentFile) => {
|
||||
uploadedPpt.forEach((currentFile) => {
|
||||
if (currentFile.entry.name !== '.DS_Store') {
|
||||
contentServicesPage.doubleClickRow(currentFile.entry.name);
|
||||
viewerPage.checkFileIsLoaded();
|
||||
|
@ -145,7 +145,7 @@ describe('Viewer - properties', () => {
|
||||
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.checkInfoSideBarIsDisplayed();
|
||||
|
||||
@ -153,7 +153,7 @@ describe('Viewer - properties', () => {
|
||||
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.checkLeftSideBarIsNotDisplayed();
|
||||
viewerPage.clickLeftSidebarButton();
|
||||
|
@ -34,7 +34,7 @@ var CardViewComponentPage = function () {
|
||||
const resetButton = element(by.css("#adf-reset-card-log"));
|
||||
const selectedValue = element(by.css('.mat-select-value-text span'));
|
||||
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 () {
|
||||
Util.waitUntilElementIsVisible(addButton);
|
||||
|
@ -423,11 +423,11 @@ export class ContentServicesPage {
|
||||
Util.waitUntilElementIsVisible(this.createdHeader);
|
||||
}
|
||||
|
||||
checkDandDIsDisplayed() {
|
||||
checkDragAndDropDIsDisplayed() {
|
||||
Util.waitUntilElementIsVisible(this.dragAndDrop);
|
||||
}
|
||||
|
||||
checkLockIsDislpayedForElement(name) {
|
||||
checkLockIsDisplayedForElement(name) {
|
||||
let lockButton = element(by.css(`div.adf-data-table-cell[filename="${name}"] button`));
|
||||
Util.waitUntilElementIsVisible(lockButton);
|
||||
}
|
||||
|
@ -45,9 +45,9 @@ export class LoginPage {
|
||||
needHelp = element(by.css('div[id="adf-login-action-left"]'));
|
||||
register = element(by.css('div[id="adf-login-action-right"]'));
|
||||
footerSwitch = element(by.id('switch4'));
|
||||
rememberMeSwitch = element(by.id('adf-toogle-show-rememberme'));
|
||||
successRouteSwitch = element(by.id('adf-toogle-show-successRoute'));
|
||||
logoSwitch = element(by.id('adf-toogle-logo'));
|
||||
rememberMeSwitch = element(by.id('adf-toggle-show-rememberme'));
|
||||
successRouteSwitch = element(by.id('adf-toggle-show-successRoute'));
|
||||
logoSwitch = element(by.id('adf-toggle-logo'));
|
||||
header = element(by.id('adf-header'));
|
||||
cardBackground = element(by.css('mat-card[class*="adf-login-card"]'));
|
||||
settingsPage = new SettingsPage();
|
||||
@ -299,10 +299,6 @@ export class LoginPage {
|
||||
this.formControllersPage.enableToggle(this.successRouteSwitch);
|
||||
}
|
||||
|
||||
disableLogowitch() {
|
||||
this.formControllersPage.disableToggle(this.logoSwitch);
|
||||
}
|
||||
|
||||
enableLogoSwitch() {
|
||||
this.formControllersPage.enableToggle(this.logoSwitch);
|
||||
}
|
||||
|
@ -233,35 +233,35 @@ var MetadataViewPage = function () {
|
||||
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 + '"]'));
|
||||
Util.waitUntilElementIsVisible(group);
|
||||
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 + '"]'));
|
||||
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 + '"]'));
|
||||
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'));
|
||||
Util.waitUntilElementIsVisible(group);
|
||||
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'));
|
||||
Util.waitUntilElementIsVisible(group);
|
||||
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'));
|
||||
Util.waitUntilElementIsVisible(group);
|
||||
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 + '"]'));
|
||||
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 + '"]'));
|
||||
Util.waitUntilElementIsNotVisible(property);
|
||||
};
|
||||
|
@ -32,7 +32,7 @@ export class ProcessListPage {
|
||||
return this.processListTitle.getText();
|
||||
}
|
||||
|
||||
checkProcessDetailsMessagee() {
|
||||
checkProcessDetailsMessage() {
|
||||
Util.waitUntilElementIsVisible(this.processListTitle);
|
||||
return this.processDetailsMessage.getText();
|
||||
}
|
||||
|
@ -39,7 +39,7 @@ export class TaskDetailsPage {
|
||||
addInvolvedUserButton = element(by.css('button[id="add-people"] span'));
|
||||
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"]');
|
||||
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"]'));
|
||||
taskDetailsEmptySection = element(by.css('div[data-automation-id="adf-tasks-details--empty"]'));
|
||||
completeTask = element(by.css('button[id="adf-no-form-complete-button"]'));
|
||||
@ -284,11 +284,11 @@ export class TaskDetailsPage {
|
||||
}
|
||||
|
||||
taskInfoDrawerIsDisplayed() {
|
||||
Util.waitUntilElementIsVisible(this.tadkDetailsInfoDrawer);
|
||||
Util.waitUntilElementIsVisible(this.taskDetailsInfoDrawer);
|
||||
}
|
||||
|
||||
taskInfoDrawerIsNotDisplayed() {
|
||||
Util.waitUntilElementIsNotOnPage(this.tadkDetailsInfoDrawer);
|
||||
Util.waitUntilElementIsNotOnPage(this.taskDetailsInfoDrawer);
|
||||
}
|
||||
|
||||
checkNoPeopleIsInvolved() {
|
||||
|
@ -28,7 +28,7 @@ export class SearchFiltersPage {
|
||||
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"]'));
|
||||
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() {
|
||||
Util.waitUntilElementIsVisible(this.searchFilters);
|
||||
@ -110,7 +110,7 @@ export class SearchFiltersPage {
|
||||
this.showMoreButtonForSize.isDisplayed().then(async (visible) => {
|
||||
if (visible) {
|
||||
for (let checkboxes = 5; checkboxes <= totalNumberOfCheckboxes; checkboxes + 5) {
|
||||
let totalNumberOfCheckboxes = await numberOfCheckboxesforSize.count();
|
||||
let totalNumberOfCheckboxes = await numberOfCheckboxesForSize.count();
|
||||
|
||||
expect(totalNumberOfCheckboxes).toEqual(checkboxes);
|
||||
}
|
||||
@ -131,7 +131,7 @@ export class SearchFiltersPage {
|
||||
|
||||
this.showLessButtonForSize.isDisplayed().then(async (visible) => {
|
||||
if (visible) {
|
||||
let totalNumberOfCheckboxes = await this.numberOfCheckboxesforSize.count();
|
||||
let totalNumberOfCheckboxes = await this.numberOfCheckboxesForSize.count();
|
||||
|
||||
for (let checkboxes = totalNumberOfCheckboxes; checkboxes > 10; checkboxes = totalNumberOfCheckboxes - checkboxes) {
|
||||
expect(totalNumberOfCheckboxes).toEqual(checkboxes);
|
||||
|
@ -56,12 +56,12 @@ export class VersionManagePage {
|
||||
return fileElement.getText();
|
||||
}
|
||||
|
||||
chekFileVersionExist(version) {
|
||||
checkFileVersionExist(version) {
|
||||
let fileVersion = element(by.id(`adf-version-list-item-version-${version}`));
|
||||
return Util.waitUntilElementIsVisible(fileVersion);
|
||||
}
|
||||
|
||||
chekFileVersionNotExist(version) {
|
||||
checkFileVersionNotExist(version) {
|
||||
let fileVersion = element(by.id(`adf-version-list-item-version-${version}`));
|
||||
return Util.waitUntilElementIsNotVisible(fileVersion);
|
||||
}
|
||||
|
@ -36,7 +36,7 @@ describe('Modify applications', () => {
|
||||
let navigationBarPage = new NavigationBarPage();
|
||||
let processServicesPage = new ProcessServicesPage();
|
||||
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 apps = new AppsActions();
|
||||
let modelActions = new ModelsActions();
|
||||
@ -57,7 +57,7 @@ describe('Modify applications', () => {
|
||||
await this.alfrescoJsApi.login(user.email, user.password);
|
||||
|
||||
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);
|
||||
|
||||
@ -118,8 +118,8 @@ describe('Modify applications', () => {
|
||||
|
||||
processServicesPage.checkApsContainer();
|
||||
|
||||
processServicesPage.checkAppIsDisplayed(appTobeDeleted.title);
|
||||
expect(processServicesPage.getBackgroundColor(appTobeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.ORANGE);
|
||||
processServicesPage.checkAppIsDisplayed(appToBeDeleted.title);
|
||||
expect(processServicesPage.getBackgroundColor(appToBeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.ORANGE);
|
||||
|
||||
browser.controlFlow().execute(() => {
|
||||
return apps.importNewVersionAppDefinitionPublishDeployApp(this.alfrescoJsApi, replacingApp.file_location, appVersionToBeDeleted.id);
|
||||
@ -127,9 +127,9 @@ describe('Modify applications', () => {
|
||||
|
||||
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 () => {
|
||||
await modelActions.deleteVersionModel(this.alfrescoJsApi, appVersionToBeDeleted.id);
|
||||
@ -140,8 +140,8 @@ describe('Modify applications', () => {
|
||||
browser.refresh();
|
||||
|
||||
processServicesPage.checkApsContainer();
|
||||
processServicesPage.checkAppIsDisplayed(appTobeDeleted.title);
|
||||
expect(processServicesPage.getBackgroundColor(appTobeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.ORANGE);
|
||||
processServicesPage.checkAppIsDisplayed(appToBeDeleted.title);
|
||||
expect(processServicesPage.getBackgroundColor(appToBeDeleted.title)).toEqual(CONSTANTS.APP_COLOR.ORANGE);
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -84,7 +84,7 @@ describe('Start Task - Task App', () => {
|
||||
it('[C274690] Should be able to open a file attached to a start form', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
|
||||
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
|
||||
taskPage
|
||||
.createNewTask()
|
||||
@ -92,8 +92,8 @@ describe('Start Task - Task App', () => {
|
||||
.addForm(app.formName)
|
||||
.clickStartButton();
|
||||
|
||||
widget.attachFileWidget().attachFile(appFields.attachfile_id, pdfFile.location);
|
||||
widget.attachFileWidget().checkFileIsAttached(appFields.attachfile_id, pdfFile.name);
|
||||
widget.attachFileWidget().attachFile(appFields.attachFile_id, pdfFile.location);
|
||||
widget.attachFileWidget().checkFileIsAttached(appFields.attachFile_id, pdfFile.name);
|
||||
|
||||
widget.attachFileWidget().viewFile(pdfFile.name);
|
||||
viewerPage.checkFileContent('1', pdfFile.firstPageText);
|
||||
|
@ -97,7 +97,7 @@ describe('Attach Form Component', () => {
|
||||
it('[C280047] Should be able to view the attach-form component after creating a standalone task', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
|
||||
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
taskPage.tasksListPage().selectTaskFromTasksList(testNames.taskName);
|
||||
|
||||
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', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
|
||||
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
taskPage.tasksListPage().selectTaskFromTasksList(testNames.taskName);
|
||||
|
||||
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', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
|
||||
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
taskPage.tasksListPage().selectTaskFromTasksList(testNames.taskName);
|
||||
|
||||
attachFormPage.clickAttachFormButton();
|
||||
@ -139,7 +139,7 @@ describe('Attach Form Component', () => {
|
||||
formFields.setFieldValue(by.id, formTextField, testNames.formFieldValue);
|
||||
formFields.completeForm();
|
||||
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
|
||||
taskPage.tasksListPage().selectTaskFromTasksList(testNames.taskName);
|
||||
|
||||
expect(formFields.getFieldValue(formTextField)).toEqual(testNames.formFieldValue);
|
||||
|
@ -76,7 +76,7 @@ describe('Checklist component', () => {
|
||||
|
||||
it('[C279976] Should no checklist be created when no title is typed', () => {
|
||||
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.clickOnAddChecklistButton().clickCreateChecklistButton();
|
||||
@ -86,7 +86,7 @@ describe('Checklist component', () => {
|
||||
|
||||
it('[C279975] Should no checklist be created when clicking on Cancel button on checklist dialog', () => {
|
||||
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.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', () => {
|
||||
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.clickOnAddChecklistButton();
|
||||
@ -109,7 +109,7 @@ describe('Checklist component', () => {
|
||||
|
||||
it('[C261026] Should Checklist number increase when a new checklist is added', () => {
|
||||
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.clickOnAddChecklistButton().addName(checklists[2]).clickCreateChecklistButton();
|
||||
@ -124,7 +124,7 @@ describe('Checklist component', () => {
|
||||
|
||||
it('[C279980] Should checklist be removed when clicking on remove button', () => {
|
||||
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.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', () => {
|
||||
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.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', () => {
|
||||
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.clickOnAddChecklistButton().addName(hierarchyChecklist[0]).clickCreateChecklistButton();
|
||||
@ -179,7 +179,7 @@ describe('Checklist component', () => {
|
||||
taskPage.tasksListPage().selectTaskFromTasksList(tasks[4]);
|
||||
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(hierarchyChecklist[0]);
|
||||
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(hierarchyChecklist[1]);
|
||||
|
@ -95,7 +95,7 @@ describe('Comment component for Processes', () => {
|
||||
|
||||
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);
|
||||
|
||||
commentsPage.checkCommentInputIsNotDisplayed();
|
||||
@ -118,7 +118,7 @@ describe('Comment component for Processes', () => {
|
||||
|
||||
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.taskDetails().selectActivityTab();
|
||||
|
||||
@ -148,7 +148,7 @@ describe('Comment component for Processes', () => {
|
||||
|
||||
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.taskDetails().selectActivityTab();
|
||||
|
||||
|
@ -69,7 +69,7 @@ describe('Empty Process List Test', () => {
|
||||
processServicesPage.checkApsContainer();
|
||||
processServicesPage.goToApp(appA.title).clickProcessButton();
|
||||
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.clickNewProcessDropdown();
|
||||
@ -83,7 +83,7 @@ describe('Empty Process List Test', () => {
|
||||
processServicesPage.checkApsContainer();
|
||||
processServicesPage.goToApp(appB.title).clickProcessButton();
|
||||
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.clickNewProcessDropdown();
|
||||
|
@ -80,7 +80,7 @@ describe('Form widgets', () => {
|
||||
loginPage.loginToProcessServicesUsingUserModel(processUserModel);
|
||||
processServicesPage.goToProcessServices().goToApp(appModel.name)
|
||||
.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()
|
||||
.then(() => {
|
||||
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(newTask);
|
||||
@ -127,10 +127,10 @@ describe('Form widgets', () => {
|
||||
|
||||
it('[C272780] Should display attach file and attach folder in form', () => {
|
||||
|
||||
expect(taskPage.formFields().getFieldLabel(appFields.attachfolder_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.attachfolder_id).name);
|
||||
expect(taskPage.formFields().getFieldLabel(appFields.attachfile_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.attachfile_id).name);
|
||||
expect(taskPage.formFields().getFieldLabel(appFields.attachFolder_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.attachFolder_id).name);
|
||||
expect(taskPage.formFields().getFieldLabel(appFields.attachFile_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.attachFile_id).name);
|
||||
});
|
||||
|
||||
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', () => {
|
||||
|
||||
expect(widget.displayTextWidget().getFieldLabel(appFields.displaytext_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.displaytext_id).value);
|
||||
expect(widget.displayValueWidget().getFieldLabel(appFields.displayvalue_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.displayvalue_id).value || 'Unknown type: readonly');
|
||||
expect(widget.displayTextWidget().getFieldLabel(appFields.displayText_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.displayText_id).value);
|
||||
expect(widget.displayValueWidget().getFieldLabel(appFields.displayValue_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.displayValue_id).value || 'Unknown type: readonly');
|
||||
});
|
||||
|
||||
it('[C272784] Should display typeahead and header in form', () => {
|
||||
@ -172,10 +172,10 @@ describe('Form widgets', () => {
|
||||
expect(widget.headerWidget().getFieldLabel(appFields.header_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.header_id).name);
|
||||
|
||||
expect(taskPage.formFields().getFieldValue(appFields.typeahead_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.typeahead_id).value || '');
|
||||
expect(taskPage.formFields().getFieldLabel(appFields.typeahead_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.typeahead_id).name);
|
||||
expect(taskPage.formFields().getFieldValue(appFields.typeAhead_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.typeAhead_id).value || '');
|
||||
expect(taskPage.formFields().getFieldLabel(appFields.typeAhead_id))
|
||||
.toEqual(formInstance.getWidgetBy('id', appFields.typeAhead_id).name);
|
||||
});
|
||||
|
||||
it('[C272785] Should display checkbox and radio button in form', () => {
|
||||
@ -184,10 +184,10 @@ describe('Form widgets', () => {
|
||||
expect(taskPage.formFields().getFieldLabel(appFields.checkbox_id))
|
||||
.toContain(formInstance.getWidgetBy('id', appFields.checkbox_id).name);
|
||||
|
||||
expect(taskPage.formFields().getFieldLabel(appFields.radiobuttons_id))
|
||||
.toContain(formInstance.getWidgetBy('id', appFields.radiobuttons_id).name);
|
||||
expect(widget.radioWidget().getSpecificOptionLabel(appFields.radiobuttons_id, radioOption))
|
||||
.toContain(formInstance.getWidgetBy('id', appFields.radiobuttons_id).options[radioOption - 1].name);
|
||||
expect(taskPage.formFields().getFieldLabel(appFields.radioButtons_id))
|
||||
.toContain(formInstance.getWidgetBy('id', appFields.radioButtons_id).name);
|
||||
expect(widget.radioWidget().getSpecificOptionLabel(appFields.radioButtons_id, radioOption))
|
||||
.toContain(formInstance.getWidgetBy('id', appFields.radioButtons_id).options[radioOption - 1].name);
|
||||
});
|
||||
|
||||
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))
|
||||
.toContain(formInstance.getWidgetBy('id', appFields.dropdown_id).value);
|
||||
|
||||
expect(widget.dynamicTable().getFieldLabel(appFields.dynamictable_id))
|
||||
.toContain(formInstance.getWidgetBy('id', appFields.dynamictable_id).name);
|
||||
expect(widget.dynamicTable().getColumnName(appFields.dynamictable_id))
|
||||
.toContain(formInstance.getWidgetBy('id', appFields.dynamictable_id).columnDefinitions[0].name);
|
||||
expect(widget.dynamicTable().getFieldLabel(appFields.dynamicTable_id))
|
||||
.toContain(formInstance.getWidgetBy('id', appFields.dynamicTable_id).name);
|
||||
expect(widget.dynamicTable().getColumnName(appFields.dynamicTable_id))
|
||||
.toContain(formInstance.getWidgetBy('id', appFields.dynamicTable_id).columnDefinitions[0].name);
|
||||
});
|
||||
|
||||
});
|
||||
|
@ -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', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
|
||||
paginationPage.selectItemsPerPage(itemsPerPage.fifteen);
|
||||
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.fifteen);
|
||||
expect(paginationPage.getCurrentPage()).toEqual('Page ' + currentPage);
|
||||
|
@ -78,7 +78,7 @@ describe('People component', () => {
|
||||
|
||||
it('[C279989] Should no people be involved when no user is typed', () => {
|
||||
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.taskDetails().clickInvolvePeopleButton();
|
||||
@ -88,7 +88,7 @@ describe('People component', () => {
|
||||
|
||||
it('[C279990] Should no people be involved when clicking on Cancel button', () => {
|
||||
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.taskDetails().clickInvolvePeopleButton()
|
||||
@ -101,7 +101,7 @@ describe('People component', () => {
|
||||
|
||||
it('[C261029] Should People dialog be displayed when clicking on add people button', () => {
|
||||
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.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', () => {
|
||||
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.taskDetails().clickInvolvePeopleButton()
|
||||
@ -125,7 +125,7 @@ describe('People component', () => {
|
||||
|
||||
it('[C261030] Should involved user be removed when clicking on remove button', () => {
|
||||
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.taskDetails().clickInvolvePeopleButton()
|
||||
@ -142,7 +142,7 @@ describe('People component', () => {
|
||||
|
||||
it('[C280013] Should not be able to complete a task by a involved user', () => {
|
||||
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.taskDetails().clickInvolvePeopleButton()
|
||||
@ -156,7 +156,7 @@ describe('People component', () => {
|
||||
|
||||
loginPage.loginToProcessServicesUsingUserModel(assigneeUserModel);
|
||||
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.completeTaskNoFormNotDisplayed();
|
||||
@ -165,7 +165,7 @@ describe('People component', () => {
|
||||
it('[C261031] Should be able to involve multiple users to a task', () => {
|
||||
loginPage.loginToProcessServicesUsingUserModel(processUserModel);
|
||||
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.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', () => {
|
||||
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.taskDetails().clickInvolvePeopleButton()
|
||||
@ -209,17 +209,17 @@ describe('People component', () => {
|
||||
.toEqual(assigneeUserModel.email);
|
||||
|
||||
taskPage.completeTaskNoForm();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
|
||||
taskPage.tasksListPage().selectTaskFromTasksList(tasks[3]);
|
||||
expect(taskPage.taskDetails().getInvolvedUserEmail(assigneeUserModel.firstName + ' ' + assigneeUserModel.lastName))
|
||||
.toEqual(assigneeUserModel.email);
|
||||
|
||||
loginPage.loginToProcessServicesUsingUserModel(assigneeUserModel);
|
||||
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.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
|
||||
taskPage.tasksListPage().checkTaskIsNotDisplayedInTasksList(tasks[3]);
|
||||
});
|
||||
|
||||
|
@ -40,7 +40,7 @@ describe('Task List Pagination - Sorting', () => {
|
||||
let app = resources.Files.SIMPLE_APP_WITH_USER_FORM;
|
||||
let nrOfTasks = 20, processUserModel;
|
||||
let taskNameBase = 'Task';
|
||||
let taskNames = Util.generateSeqeunceFiles(10, nrOfTasks + 9, taskNameBase, '');
|
||||
let taskNames = Util.generateSequenceFiles(10, nrOfTasks + 9, taskNameBase, '');
|
||||
|
||||
let itemsPerPage = {
|
||||
five: '5',
|
||||
@ -79,7 +79,7 @@ describe('Task List Pagination - Sorting', () => {
|
||||
|
||||
it('[C260308] Should be possible to sort tasks by name', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
|
||||
taskPage.tasksListPage().waitForTableBody();
|
||||
paginationPage.selectItemsPerPage(itemsPerPage.twenty);
|
||||
taskPage.tasksListPage().waitForTableBody();
|
||||
|
@ -72,37 +72,37 @@ describe('Start Task - Task App', () => {
|
||||
|
||||
it('[C260421] Should a standalone task be displayed when creating a new task without form', () => {
|
||||
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()
|
||||
.then(() => {
|
||||
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[0]);
|
||||
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);
|
||||
});
|
||||
});
|
||||
|
||||
it('[C268910] Should a standalone task be displayed in completed tasks when completing it', () => {
|
||||
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()
|
||||
.then(() => {
|
||||
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[1]);
|
||||
taskPage.formFields().noFormIsDisplayed();
|
||||
|
||||
taskPage.completeTaskNoForm();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
|
||||
taskPage.tasksListPage().selectTaskFromTasksList(tasks[1]);
|
||||
expect(taskPage.formFields().getCompletedTaskNoFormMessage()).toEqual('Task ' + tasks[1] + ' completed');
|
||||
|
||||
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', () => {
|
||||
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()
|
||||
.then(() => {
|
||||
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', () => {
|
||||
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.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[3]);
|
||||
@ -131,7 +131,7 @@ describe('Start Task - Task App', () => {
|
||||
taskPage.checkTaskTitle(tasks[3]);
|
||||
|
||||
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);
|
||||
});
|
||||
|
||||
|
@ -145,7 +145,7 @@ describe('Start Process Component', () => {
|
||||
processFiltersPage.clickCreateProcessButton();
|
||||
processFiltersPage.clickNewProcessDropdown();
|
||||
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.clickCancelProcessButton();
|
||||
processFiltersPage.checkNoContentMessage();
|
||||
@ -185,14 +185,14 @@ describe('Start Process Component', () => {
|
||||
return this.alfrescoJsApi.activiti.processApi.getProcessInstance(result);
|
||||
})
|
||||
.then(function (response) {
|
||||
expect(processDetailsPage.getProcessStatus()).toEqual(CONSTANTS.PROCESSSTATUS.RUNNING);
|
||||
expect(processDetailsPage.getEndDate()).toEqual(CONSTANTS.PROCESSENDDATE);
|
||||
expect(processDetailsPage.getProcessCategory()).toEqual(CONSTANTS.PROCESSCATEGORY);
|
||||
expect(processDetailsPage.getBusinessKey()).toEqual(CONSTANTS.PROCESSBUSINESSKEY);
|
||||
expect(processDetailsPage.getPROCESS_STATUS()).toEqual(CONSTANTS.PROCESS_STATUS.RUNNING);
|
||||
expect(processDetailsPage.getEndDate()).toEqual(CONSTANTS.PROCESS_END_DATE);
|
||||
expect(processDetailsPage.getProcessCategory()).toEqual(CONSTANTS.PROCESS_CATEGORY);
|
||||
expect(processDetailsPage.getBusinessKey()).toEqual(CONSTANTS.PROCESS_BUSINESS_KEY);
|
||||
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.getProcessDescription()).toEqual(CONSTANTS.PROCESSDESCRIPTION);
|
||||
expect(processDetailsPage.getPROCESS_DESCRIPTION()).toEqual(CONSTANTS.PROCESS_DESCRIPTION);
|
||||
expect(processDetailsPage.checkProcessTitleIsDisplayed()).toEqual(response.getName());
|
||||
});
|
||||
});
|
||||
|
@ -43,7 +43,7 @@ import CONSTANTS = require('../util/constants');
|
||||
|
||||
describe('Start Task - Custom App', () => {
|
||||
|
||||
let TASKDATAFORMAT = 'mmm dd yyyy';
|
||||
let TASK_DATA_FORMAT = 'mmm dd yyyy';
|
||||
|
||||
let loginPage = new LoginPage();
|
||||
let processServicesPage = new ProcessServicesPage();
|
||||
@ -98,7 +98,7 @@ describe('Start Task - Custom App', () => {
|
||||
|
||||
taskPage
|
||||
.filtersPage()
|
||||
.goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
.goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
|
||||
taskPage
|
||||
.createNewTask()
|
||||
@ -144,7 +144,7 @@ describe('Start Task - Custom App', () => {
|
||||
|
||||
it('[C263946] Should display information box for started task', () => {
|
||||
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')
|
||||
.addForm(app.formName).clickStartButton()
|
||||
.then(() => {
|
||||
@ -157,24 +157,24 @@ describe('Start Task - Custom App', () => {
|
||||
let taskModel = new TaskModel(response.data[0]);
|
||||
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().getDescription()).toEqual(taskModel.getDescription());
|
||||
expect(taskPage.taskDetails().getAssignee()).toEqual(taskModel.getAssignee().getEntireName());
|
||||
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())
|
||||
.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())
|
||||
.toEqual(taskModel.getParentTaskName() === null ? CONSTANTS.TASKDETAILS.NO_PARENT : taskModel.getParentTaskName());
|
||||
expect(taskPage.taskDetails().getStatus()).toEqual(CONSTANTS.TASKSTATUS.RUNNING);
|
||||
.toEqual(taskModel.getParentTaskName() === null ? CONSTANTS.TASK_DETAILS.NO_PARENT : taskModel.getParentTaskName());
|
||||
expect(taskPage.taskDetails().getStatus()).toEqual(CONSTANTS.TASK_STATUS.RUNNING);
|
||||
|
||||
return this.alfrescoJsApi.activiti.taskFormsApi.getTaskForm(response.data[0].id);
|
||||
})
|
||||
.then((response) => {
|
||||
let formModel = new FormModel(response);
|
||||
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
|
||||
.filtersPage()
|
||||
.goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
.goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
|
||||
taskPage
|
||||
.createNewTask()
|
||||
@ -201,7 +201,7 @@ describe('Start Task - Custom App', () => {
|
||||
.formFields()
|
||||
.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', () => {
|
||||
@ -211,7 +211,7 @@ describe('Start Task - Custom App', () => {
|
||||
|
||||
taskPage
|
||||
.filtersPage()
|
||||
.goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
.goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
|
||||
taskPage
|
||||
.createNewTask()
|
||||
@ -223,13 +223,13 @@ describe('Start Task - Custom App', () => {
|
||||
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('[C263949] Should be possible to save filled form', () => {
|
||||
processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton();
|
||||
taskPage.filtersPage()
|
||||
.goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
.goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
|
||||
taskPage.createNewTask()
|
||||
.addForm(app.formName)
|
||||
@ -268,7 +268,7 @@ describe('Start Task - Custom App', () => {
|
||||
processServicesPage.goToProcessServices().goToApp(appModel.name).clickTasksButton();
|
||||
taskPage
|
||||
.filtersPage()
|
||||
.goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
.goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
|
||||
taskPage
|
||||
.createNewTask()
|
||||
@ -286,7 +286,7 @@ describe('Start Task - Custom App', () => {
|
||||
|
||||
taskPage
|
||||
.filtersPage()
|
||||
.goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS);
|
||||
.goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
|
||||
|
||||
taskPage.tasksListPage()
|
||||
.checkTaskIsDisplayedInTasksList(tasks[5])
|
||||
@ -299,7 +299,7 @@ describe('Start Task - Custom App', () => {
|
||||
|
||||
it('Attach a file', () => {
|
||||
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[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', () => {
|
||||
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.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', () => {
|
||||
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();
|
||||
|
||||
processServicesPage.goToProcessServices().goToTaskApp();
|
||||
|
@ -43,7 +43,7 @@ import path = require('path');
|
||||
|
||||
describe('Start Task - Task App', () => {
|
||||
|
||||
let TASKDATAFORMAT = 'mmm dd yyyy';
|
||||
let TASK_DATA_FORMAT = 'mmm dd yyyy';
|
||||
|
||||
let loginPage = new LoginPage();
|
||||
let processServicesPage = new ProcessServicesPage();
|
||||
@ -96,7 +96,7 @@ describe('Start Task - Task App', () => {
|
||||
|
||||
it('[C260383] Should be possible to modify a task', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
taskPage.createNewTask().addName(tasks[0])
|
||||
.addForm(app.formName).clickStartButton()
|
||||
.then(() => {
|
||||
@ -118,7 +118,7 @@ describe('Start Task - Task App', () => {
|
||||
|
||||
it('[C260506] Should display information box for started task', () => {
|
||||
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')
|
||||
.addForm(app.formName).clickStartButton()
|
||||
.then(() => {
|
||||
@ -130,51 +130,51 @@ describe('Start Task - Task App', () => {
|
||||
.then((response) => {
|
||||
let taskModel = new TaskModel(response.data[0]);
|
||||
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().getDescription()).toEqual(taskModel.getDescription());
|
||||
expect(taskPage.taskDetails().getAssignee()).toEqual(taskModel.getAssignee().getEntireName());
|
||||
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())
|
||||
.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())
|
||||
.toEqual(taskModel.getParentTaskName() === null ? CONSTANTS.TASKDETAILS.NO_PARENT : taskModel.getParentTaskName());
|
||||
expect(taskPage.taskDetails().getStatus()).toEqual(CONSTANTS.TASKSTATUS.RUNNING);
|
||||
.toEqual(taskModel.getParentTaskName() === null ? CONSTANTS.TASK_DETAILS.NO_PARENT : taskModel.getParentTaskName());
|
||||
expect(taskPage.taskDetails().getStatus()).toEqual(CONSTANTS.TASK_STATUS.RUNNING);
|
||||
return this.alfrescoJsApi.activiti.taskFormsApi.getTaskForm(response.data[0].id);
|
||||
})
|
||||
.then(function (response) {
|
||||
formModel = new FormModel(response);
|
||||
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', () => {
|
||||
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()
|
||||
.then(() => {
|
||||
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(tasks[2]);
|
||||
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', () => {
|
||||
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])
|
||||
.checkStartButtonIsEnabled().clickCancelButton()
|
||||
.then(() => {
|
||||
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', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
taskPage.createNewTask()
|
||||
.addForm(app.formName).addName(tasks[4]).clickStartButton()
|
||||
.then(() => {
|
||||
@ -191,13 +191,13 @@ describe('Start Task - Task App', () => {
|
||||
|
||||
it('[C260425] Should be possible to assign a user', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
taskPage.createNewTask().addName(tasks[5])
|
||||
.addAssignee(assigneeUserModel.firstName).clickStartButton()
|
||||
.then(() => {
|
||||
taskPage.tasksListPage().checkTaskListIsLoaded();
|
||||
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.checkTaskTitle(tasks[5]);
|
||||
expect(taskPage.taskDetails().getAssignee()).toEqual(assigneeUserModel.firstName + ' ' + assigneeUserModel.lastName);
|
||||
@ -206,7 +206,7 @@ describe('Start Task - Task App', () => {
|
||||
|
||||
it('Attach a file', () => {
|
||||
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()
|
||||
.then(() => {
|
||||
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', () => {
|
||||
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);
|
||||
|
||||
appNavigationBarPage.clickSettingsButton();
|
||||
|
@ -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', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskTaskApp);
|
||||
|
||||
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', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
taskPage.tasksListPage().checkTaskIsDisplayedInTasksList(taskTaskApp);
|
||||
|
||||
taskPage.completeTaskNoForm();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
|
||||
taskPage.tasksListPage().selectTaskFromTasksList(taskTaskApp);
|
||||
expect(taskPage.formFields().getCompletedTaskNoFormMessage()).toEqual('Task ' + taskTaskApp + ' completed');
|
||||
|
||||
@ -100,11 +100,11 @@ describe('Task Audit', () => {
|
||||
|
||||
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.completeTaskNoForm();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
|
||||
taskPage.tasksListPage().selectTaskFromTasksList(taskCompleteCustomApp);
|
||||
expect(taskPage.formFields().getCompletedTaskNoFormMessage()).toEqual('Task ' + taskCompleteCustomApp + ' completed');
|
||||
|
||||
@ -117,7 +117,7 @@ describe('Task Audit', () => {
|
||||
|
||||
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.taskDetails().clickAuditLogButton();
|
||||
|
@ -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', () => {
|
||||
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();
|
||||
|
||||
attachmentListPage.clickAttachFileButton(pngFile.location);
|
||||
@ -102,14 +102,14 @@ describe('Attachment list action menu for tasks', () => {
|
||||
viewerPage.checkFileNameIsDisplayed(pngFile.name);
|
||||
viewerPage.clickCloseButton();
|
||||
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
|
||||
attachmentListPage.doubleClickFile(pngFile.name);
|
||||
|
||||
viewerPage.checkFileNameIsDisplayed(pngFile.name);
|
||||
viewerPage.clickCloseButton();
|
||||
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
|
||||
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', () => {
|
||||
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();
|
||||
|
||||
attachmentListPage.clickAttachFileButton(pngFile.location);
|
||||
attachmentListPage.checkFileIsAttached(pngFile.name);
|
||||
|
||||
taskPage.completeTaskNoForm();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
|
||||
taskPage.tasksListPage().selectTaskFromTasksList(taskName.completed);
|
||||
|
||||
attachmentListPage.checkAttachFileButtonIsNotDisplayed();
|
||||
@ -140,7 +140,7 @@ describe('Attachment list action menu for tasks', () => {
|
||||
viewerPage.checkFileNameIsDisplayed(pngFile.name);
|
||||
viewerPage.clickCloseButton();
|
||||
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.COMPL_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.COMPLETED_TASKS);
|
||||
taskPage.tasksListPage().selectTaskFromTasksList(taskName.completed);
|
||||
|
||||
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', () => {
|
||||
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();
|
||||
|
||||
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', () => {
|
||||
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();
|
||||
|
||||
attachmentListPage.checkEmptyAttachmentList();
|
||||
@ -193,7 +193,7 @@ describe('Attachment list action menu for tasks', () => {
|
||||
|
||||
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
|
||||
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
taskPage.tasksListPage().selectTaskFromTasksList('SHARE KNOWLEDGE');
|
||||
|
||||
attachmentListPage.checkFileIsAttached(pngFile.name);
|
||||
@ -204,7 +204,7 @@ describe('Attachment list action menu for tasks', () => {
|
||||
|
||||
processServicesPage.goToProcessServices().goToTaskApp().clickTasksButton();
|
||||
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.MY_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.MY_TASKS);
|
||||
taskPage.tasksListPage().selectTaskFromTasksList('SHARE KNOWLEDGE');
|
||||
|
||||
attachmentListPage.checkEmptyAttachmentList();
|
||||
|
@ -93,7 +93,7 @@ describe('Task List Pagination', () => {
|
||||
|
||||
it('[C260304] Should be possible to set Items per page to 5', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
|
||||
paginationPage.selectItemsPerPage(itemsPerPage.five);
|
||||
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.five);
|
||||
expect(paginationPage.getPaginationRange()).toEqual('Showing 1-' + itemsPerPage.fiveValue + ' of ' + nrOfTasks);
|
||||
@ -115,13 +115,13 @@ describe('Task List Pagination', () => {
|
||||
expect(taskPage.getAllDisplayedRows()).toBe(itemsPerPage.fiveValue);
|
||||
|
||||
processServicesPage.goToProcessServices().goToTaskApp();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
|
||||
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.five);
|
||||
});
|
||||
|
||||
it('[C260303] Should be possible to set Items per page to 10', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
|
||||
paginationPage.selectItemsPerPage(itemsPerPage.ten);
|
||||
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.ten);
|
||||
expect(paginationPage.getPaginationRange()).toEqual('Showing 1-' + itemsPerPage.tenValue + ' of ' + nrOfTasks);
|
||||
@ -132,13 +132,13 @@ describe('Task List Pagination', () => {
|
||||
expect(taskPage.getAllDisplayedRows()).toBe(itemsPerPage.tenValue);
|
||||
|
||||
processServicesPage.goToProcessServices().goToTaskApp();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
|
||||
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.ten);
|
||||
});
|
||||
|
||||
it('[C260302] Should be possible to set Items per page to 15', () => {
|
||||
processServicesPage.goToProcessServices().goToTaskApp();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
|
||||
paginationPage.selectItemsPerPage(itemsPerPage.fifteen);
|
||||
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.fifteen);
|
||||
expect(paginationPage.getPaginationRange()).toEqual('Showing 1-' + itemsPerPage.fifteenValue + ' of ' + nrOfTasks);
|
||||
@ -149,7 +149,7 @@ describe('Task List Pagination', () => {
|
||||
expect(taskPage.getAllDisplayedRows()).toBe(itemsPerPage.fiveValue);
|
||||
|
||||
processServicesPage.goToProcessServices().goToTaskApp();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
|
||||
expect(paginationPage.getCurrentItemsPerPage()).toEqual(itemsPerPage.fifteen);
|
||||
});
|
||||
|
||||
@ -157,7 +157,7 @@ describe('Task List Pagination', () => {
|
||||
currentPage = 1;
|
||||
totalPages = 2;
|
||||
processServicesPage.goToProcessServices().goToTaskApp();
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASKFILTERS.INV_TASKS);
|
||||
taskPage.filtersPage().goToFilter(CONSTANTS.TASK_FILTERS.INV_TASKS);
|
||||
taskPage.tasksListPage().waitForTableBody();
|
||||
paginationPage.selectItemsPerPage(itemsPerPage.ten);
|
||||
taskPage.tasksListPage().waitForTableBody();
|
||||
|
@ -67,21 +67,21 @@ exports.APPLICATION = {
|
||||
APS: 'main'
|
||||
};
|
||||
|
||||
exports.TASKFILTERS = {
|
||||
exports.TASK_FILTERS = {
|
||||
MY_TASKS: 'My Tasks',
|
||||
INV_TASKS: 'Involved Tasks',
|
||||
QUE_TASKS: 'Queued Tasks',
|
||||
COMPL_TASKS: 'Completed Tasks'
|
||||
COMPLETED_TASKS: 'Completed Tasks'
|
||||
};
|
||||
|
||||
exports.TASKDETAILS = {
|
||||
exports.TASK_DETAILS = {
|
||||
NO_FORM: 'No form',
|
||||
NO_PARENT: 'No parent',
|
||||
NO_DATE: 'No date',
|
||||
NO_CATEGORY: 'No category'
|
||||
};
|
||||
|
||||
exports.TASKSTATUS = {
|
||||
exports.TASK_STATUS = {
|
||||
RUNNING: 'Running'
|
||||
};
|
||||
|
||||
@ -106,17 +106,17 @@ exports.APP_ICON = {
|
||||
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',
|
||||
COMPLETED: 'Completed'
|
||||
};
|
||||
|
@ -87,19 +87,19 @@ exports.Files = {
|
||||
people_id: "people",
|
||||
group_id: "groupofpeople",
|
||||
multiline_id: "multilinetext",
|
||||
typeahead_id: "typeahead",
|
||||
displaytext_id: "displaytext",
|
||||
displayvalue_id: "displayvalue",
|
||||
typeAhead_id: "typeahead",
|
||||
displayText_id: "displaytext",
|
||||
displayValue_id: "displayvalue",
|
||||
hyperlink_id: "hyperlink",
|
||||
attachfolder_id: "attachfolder",
|
||||
attachfile_id: "attachfile",
|
||||
attachFolder_id: "attachfolder",
|
||||
attachFile_id: "attachfile",
|
||||
date_id: "date",
|
||||
dateTime_id: "dateandtime",
|
||||
checkbox_id: "checkbox",
|
||||
dropdown_id: "dropdown",
|
||||
dropdown_value: "mat-select[id='dropdown'] span span",
|
||||
radiobuttons_id: "radiobuttons",
|
||||
dynamictable_id: "dynamictable"
|
||||
radioButtons_id: "radiobuttons",
|
||||
dynamicTable_id: "dynamictable"
|
||||
}
|
||||
},
|
||||
|
||||
|
@ -183,9 +183,9 @@ exports.generateRandomStringToUpperCase = function (length) {
|
||||
* @param baseName{string} the base name of all files
|
||||
* @param extension{string} the extension of the file
|
||||
* @return fileNames
|
||||
* @method generateSeqeunceFiles
|
||||
* @method generateSequenceFiles
|
||||
*/
|
||||
exports.generateSeqeunceFiles = function (startIndex, endIndex, baseName, extension) {
|
||||
exports.generateSequenceFiles = function (startIndex, endIndex, baseName, extension) {
|
||||
var fileNames = [];
|
||||
for (var i = startIndex; i <= endIndex; i++) {
|
||||
fileNames.push(baseName + i + extension);
|
||||
|
@ -87,7 +87,7 @@ describe('Breadcrumb', () => {
|
||||
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 = {};
|
||||
expect(component.parseRoute(node)).toEqual([]);
|
||||
});
|
||||
|
@ -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));
|
||||
fakeNodeWithCreatePermissionInstance.path.elements = [
|
||||
{ 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)));
|
||||
spyOn(component.dropdown, 'open');
|
||||
|
||||
|
@ -19,6 +19,6 @@ import { PropertyGroupContainer } from './property-group.interface';
|
||||
import { OrganisedPropertyGroup } from './organised-property-group.interface';
|
||||
|
||||
export interface ContentMetadataConfig {
|
||||
isGroupAllowed(groupname: string): boolean;
|
||||
isGroupAllowed(groupName: string): boolean;
|
||||
reorganiseByConfig(propertyGroups: PropertyGroupContainer): OrganisedPropertyGroup[];
|
||||
}
|
||||
|
@ -152,7 +152,7 @@ describe('PropertyGroupTranslatorService', () => {
|
||||
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.title = 'The Faro Plague';
|
||||
property.dataType = 'daemonic:scorcher';
|
||||
@ -170,7 +170,7 @@ describe('PropertyGroupTranslatorService', () => {
|
||||
});
|
||||
});
|
||||
|
||||
describe('Different types\'s attributes', () => {
|
||||
describe('Different types attributes', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
propertyGroups.push(propertyGroup);
|
||||
|
@ -162,7 +162,7 @@ export class ContentNodeDialogService {
|
||||
* Opens a dialog to choose folders to upload.
|
||||
* @param action Name of the action to show in the title
|
||||
* @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[]> {
|
||||
const select = new Subject<MinimalNodeEntryEntity[]>();
|
||||
|
@ -328,7 +328,7 @@ describe('ContentNodeSelectorComponent', () => {
|
||||
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');
|
||||
|
||||
tick(debounceSearch);
|
||||
@ -355,7 +355,7 @@ describe('ContentNodeSelectorComponent', () => {
|
||||
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' } }] } };
|
||||
fixture.detectChanges();
|
||||
|
||||
@ -608,7 +608,7 @@ describe('ContentNodeSelectorComponent', () => {
|
||||
}, 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');
|
||||
|
||||
tick(debounceSearch);
|
||||
|
@ -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 {
|
||||
if (this.searchTerm.length === 0) {
|
||||
@ -281,7 +281,7 @@ export class ContentNodeSelectorPanelComponent implements OnInit, PaginatedCompo
|
||||
this.showingSearchResults = true;
|
||||
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) {
|
||||
this.nodes = nodePaging;
|
||||
} 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 {
|
||||
setTimeout(() => {
|
||||
|
@ -82,13 +82,13 @@ describe('ContentNodeSelectorDialogComponent', () => {
|
||||
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));
|
||||
expect(documentList).not.toBeNull('Document list should be shown');
|
||||
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(() => {
|
||||
let documentList = fixture.debugElement.query(By.directive(DocumentListComponent));
|
||||
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));
|
||||
expect(documentList).not.toBeNull('Document list should be shown');
|
||||
expect(documentList.componentInstance.imageResolver).toBe(data.imageResolver);
|
||||
|
@ -117,7 +117,7 @@ describe('FolderDialogComponent', () => {
|
||||
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' };
|
||||
let expectedNode = null;
|
||||
|
||||
|
@ -42,7 +42,7 @@ export class FolderDialogComponent implements OnInit {
|
||||
@Output()
|
||||
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()
|
||||
success: EventEmitter<any> = new EventEmitter<MinimalNodeEntryEntity>();
|
||||
|
@ -117,7 +117,7 @@ describe('NodeLockDialogComponent', () => {
|
||||
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: {} };
|
||||
spyOn(alfrescoApi.nodesApi, 'lockNode').and.returnValue(Promise.resolve(node));
|
||||
|
||||
|
@ -151,7 +151,7 @@ describe('ShareDataTableAdapter', () => {
|
||||
});
|
||||
|
||||
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);
|
||||
|
||||
@ -167,7 +167,7 @@ describe('ShareDataTableAdapter', () => {
|
||||
});
|
||||
|
||||
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);
|
||||
|
||||
|
@ -248,9 +248,9 @@ export class ShareDataTableAdapter implements DataTableAdapter {
|
||||
}
|
||||
|
||||
if (merge) {
|
||||
let listPrunedDuplicate = rows.filter((elemntToFilter) => {
|
||||
let isPresent = this.rows.find((currenRow: any) => {
|
||||
return currenRow.obj.entry.id === elemntToFilter.obj.entry.id;
|
||||
let listPrunedDuplicate = rows.filter((elementToFilter) => {
|
||||
let isPresent = this.rows.find((currentRow: any) => {
|
||||
return currentRow.obj.entry.id === elementToFilter.obj.entry.id;
|
||||
});
|
||||
|
||||
return !isPresent;
|
||||
|
@ -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
|
||||
* @returns List of sites
|
||||
*/
|
||||
@ -266,7 +266,7 @@ export class CustomResourcesService {
|
||||
/**
|
||||
* Is the folder ID a "-my", "-root-", or "-shared-" alias?
|
||||
* @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 {
|
||||
let isSupportedSources = false;
|
||||
|
@ -183,10 +183,10 @@ describe('DocumentActionsService', () => {
|
||||
let file = new FileNode();
|
||||
let fileWithPermission: any = file;
|
||||
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(deleteObservale.subscribe).toBeDefined();
|
||||
expect(deleteObservable.subscribe).toBeDefined();
|
||||
});
|
||||
|
||||
it('should support deletion only file node', () => {
|
||||
|
@ -51,8 +51,8 @@ export class DocumentActionsService {
|
||||
*/
|
||||
getHandler(key: string): ContentActionHandler {
|
||||
if (key) {
|
||||
let lkey = key.toLowerCase();
|
||||
return this.handlers[lkey] || null;
|
||||
let lKey = key.toLowerCase();
|
||||
return this.handlers[lKey] || null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@ -65,8 +65,8 @@ export class DocumentActionsService {
|
||||
*/
|
||||
setHandler(key: string, handler: ContentActionHandler): boolean {
|
||||
if (key) {
|
||||
let lkey = key.toLowerCase();
|
||||
this.handlers[lkey] = handler;
|
||||
let lKey = key.toLowerCase();
|
||||
this.handlers[lKey] = handler;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -117,10 +117,10 @@ describe('FolderActionsService', () => {
|
||||
let folder = new FolderNode();
|
||||
let folderWithPermission: any = folder;
|
||||
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(deleteObservale.subscribe).toBeDefined();
|
||||
expect(deleteObservable.subscribe).toBeDefined();
|
||||
});
|
||||
|
||||
it('should not delete the folder node if there is no delete permission', (done) => {
|
||||
|
@ -49,8 +49,8 @@ export class FolderActionsService {
|
||||
*/
|
||||
getHandler(key: string): ContentActionHandler {
|
||||
if (key) {
|
||||
let lkey = key.toLowerCase();
|
||||
return this.handlers[lkey] || null;
|
||||
let lKey = key.toLowerCase();
|
||||
return this.handlers[lKey] || null;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
@ -63,8 +63,8 @@ export class FolderActionsService {
|
||||
*/
|
||||
setHandler(key: string, handler: ContentActionHandler): boolean {
|
||||
if (key) {
|
||||
let lkey = key.toLowerCase();
|
||||
this.handlers[lkey] = handler;
|
||||
let lKey = key.toLowerCase();
|
||||
this.handlers[lKey] = handler;
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
|
@ -32,7 +32,7 @@ import { MinimalNodeEntryEntity } from 'alfresco-js-api';
|
||||
[adf-create-folder]="parentNode"
|
||||
(success)="success($event)"
|
||||
title="create-title"
|
||||
[nodeType]="'cm:my-litte-pony'">
|
||||
[nodeType]="'cm:my-little-pony'">
|
||||
</div>`
|
||||
})
|
||||
class TestTypeComponent {
|
||||
@ -154,7 +154,7 @@ describe('FolderCreateDirective', () => {
|
||||
data: {
|
||||
parentNodeId: jasmine.any(String),
|
||||
createTitle: 'create-title',
|
||||
nodeType: 'cm:my-litte-pony'
|
||||
nodeType: 'cm:my-little-pony'
|
||||
},
|
||||
width: jasmine.any(String)
|
||||
});
|
||||
|
@ -235,7 +235,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"PERMISSON": {
|
||||
"PERMISSION": {
|
||||
"LACKOF": "Sie verfügen nicht über die nötige Berechtigung ('{{permission}}'), um {{type}} zu {{action}}"
|
||||
},
|
||||
"METADATA": {
|
||||
@ -288,4 +288,4 @@
|
||||
"NOT-ALLOWED": "Sie sind nicht zum Ändern von Berechtigungen berechtigt."
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -235,7 +235,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"PERMISSON": {
|
||||
"PERMISSION": {
|
||||
"LACKOF": "You don't have the {{permission}} permission to {{action}} the {{type}}"
|
||||
},
|
||||
"METADATA": {
|
||||
|
@ -235,7 +235,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"PERMISSON": {
|
||||
"PERMISSION": {
|
||||
"LACKOF": "No tiene permiso {{permission}} para {{action}} el {{type}}"
|
||||
},
|
||||
"METADATA": {
|
||||
@ -288,4 +288,4 @@
|
||||
"NOT-ALLOWED": "No puede cambiar los permisos"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -235,7 +235,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"PERMISSON": {
|
||||
"PERMISSION": {
|
||||
"LACKOF": "Vous n'avez pas les droits d'accès {{permission}} pour {{action}} le {{type}}"
|
||||
},
|
||||
"METADATA": {
|
||||
@ -288,4 +288,4 @@
|
||||
"NOT-ALLOWED": "Vous n'avez pas le droit de modifier les droits d'accès"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -235,7 +235,7 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"PERMISSON": {
|
||||
"PERMISSION": {
|
||||
"LACKOF": "Non hai l'autorizzazione {{permission}} per {{action}} {{type}}"
|
||||
},
|
||||
"METADATA": {
|
||||
@ -288,4 +288,4 @@
|
||||
"NOT-ALLOWED": "Non è consentito modificare le autorizzazioni"
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user