mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
[ci:force] remove custom permission e2e test as already tested by unit
This commit is contained in:
@@ -52,7 +52,6 @@
|
|||||||
},
|
},
|
||||||
"PERSONAL-FILES": "Personal Files",
|
"PERSONAL-FILES": "Personal Files",
|
||||||
"WARN-MULTIPLE-UPLOADS": "Display warning for multiple uploads.",
|
"WARN-MULTIPLE-UPLOADS": "Display warning for multiple uploads.",
|
||||||
"CUSTOM-PERMISSION-MESSAGE": "Enable custom permission message",
|
|
||||||
"MEDIUM-TIME-FORMAT": "Enable medium time format for document list",
|
"MEDIUM-TIME-FORMAT": "Enable medium time format for document list",
|
||||||
"SEARCH": {
|
"SEARCH": {
|
||||||
"RADIO": {
|
"RADIO": {
|
||||||
|
@@ -186,9 +186,6 @@
|
|||||||
(name-click)="documentList.onNodeDblClick($any($event).detail?.node)"
|
(name-click)="documentList.onNodeDblClick($any($event).detail?.node)"
|
||||||
(filterSelection)="onFilterSelected($event)">
|
(filterSelection)="onFilterSelected($event)">
|
||||||
|
|
||||||
<adf-custom-no-permission-template *ngIf="enableCustomPermissionMessage">
|
|
||||||
<h1>You don't have permissions</h1>
|
|
||||||
</adf-custom-no-permission-template>
|
|
||||||
<adf-custom-empty-content-template *ngIf="disableDragArea">
|
<adf-custom-empty-content-template *ngIf="disableDragArea">
|
||||||
<div class="app-empty_template">
|
<div class="app-empty_template">
|
||||||
<div class="app-no-result-message">{{ 'SEARCH.NO_RESULT' | translate }}</div>
|
<div class="app-no-result-message">{{ 'SEARCH.NO_RESULT' | translate }}</div>
|
||||||
@@ -277,19 +274,6 @@
|
|||||||
</data-columns>
|
</data-columns>
|
||||||
|
|
||||||
<content-actions>
|
<content-actions>
|
||||||
<content-action
|
|
||||||
icon="get_app"
|
|
||||||
title="Download this file now!"
|
|
||||||
handler="download"
|
|
||||||
[visible]="canDownloadNode">
|
|
||||||
</content-action>
|
|
||||||
<content-action
|
|
||||||
icon="get_app"
|
|
||||||
title="Never see this action again"
|
|
||||||
handler="download"
|
|
||||||
[visible]="false">
|
|
||||||
</content-action>
|
|
||||||
<!-- common actions -->
|
|
||||||
<content-action
|
<content-action
|
||||||
icon="get_app"
|
icon="get_app"
|
||||||
title="DOCUMENT_LIST.ACTIONS.DOWNLOAD"
|
title="DOCUMENT_LIST.ACTIONS.DOWNLOAD"
|
||||||
@@ -530,12 +514,6 @@
|
|||||||
</mat-slide-toggle>
|
</mat-slide-toggle>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<section>
|
|
||||||
<mat-slide-toggle color="primary" [(ngModel)]="enableCustomPermissionMessage">
|
|
||||||
{{'APP.CUSTOM-PERMISSION-MESSAGE' | translate}}
|
|
||||||
</mat-slide-toggle>
|
|
||||||
</section>
|
|
||||||
|
|
||||||
<section>
|
<section>
|
||||||
<mat-slide-toggle color="primary" [(ngModel)]="enableMediumTimeFormat" id="enableMediumTimeFormat">
|
<mat-slide-toggle color="primary" [(ngModel)]="enableMediumTimeFormat" id="enableMediumTimeFormat">
|
||||||
{{'APP.MEDIUM-TIME-FORMAT' | translate}}
|
{{'APP.MEDIUM-TIME-FORMAT' | translate}}
|
||||||
|
@@ -237,7 +237,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
stickyHeader: boolean;
|
stickyHeader: boolean;
|
||||||
warnOnMultipleUploads = false;
|
warnOnMultipleUploads = false;
|
||||||
thumbnails = false;
|
thumbnails = false;
|
||||||
enableCustomPermissionMessage = false;
|
|
||||||
enableMediumTimeFormat = false;
|
enableMediumTimeFormat = false;
|
||||||
displayEmptyMetadata = false;
|
displayEmptyMetadata = false;
|
||||||
hyperlinkNavigation = false;
|
hyperlinkNavigation = false;
|
||||||
@@ -604,10 +603,6 @@ export class FilesComponent implements OnInit, OnChanges, OnDestroy {
|
|||||||
this.infinitePaginationComponent.reset();
|
this.infinitePaginationComponent.reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
canDownloadNode(node: MinimalNodeEntity): boolean {
|
|
||||||
return node && node.entry && node.entry.name === 'custom';
|
|
||||||
}
|
|
||||||
|
|
||||||
onBeginUpload(event: UploadFilesEvent) {
|
onBeginUpload(event: UploadFilesEvent) {
|
||||||
if (this.warnOnMultipleUploads && event) {
|
if (this.warnOnMultipleUploads && event) {
|
||||||
const files = event.files || [];
|
const files = event.files || [];
|
||||||
|
@@ -16,7 +16,6 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
import { browser } from 'protractor';
|
import { browser } from 'protractor';
|
||||||
import { ContentServicesPage } from '../../core/pages/content-services.page';
|
|
||||||
import { NavigationBarPage } from '../../core/pages/navigation-bar.page';
|
import { NavigationBarPage } from '../../core/pages/navigation-bar.page';
|
||||||
import { createApiService, BrowserActions, ErrorPage, LoginPage, StringUtil, UsersActions } from '@alfresco/adf-testing';
|
import { createApiService, BrowserActions, ErrorPage, LoginPage, StringUtil, UsersActions } from '@alfresco/adf-testing';
|
||||||
import { SitesApi } from '@alfresco/js-api';
|
import { SitesApi } from '@alfresco/js-api';
|
||||||
@@ -24,7 +23,6 @@ import { SitesApi } from '@alfresco/js-api';
|
|||||||
describe('Document List Component', () => {
|
describe('Document List Component', () => {
|
||||||
|
|
||||||
const loginPage = new LoginPage();
|
const loginPage = new LoginPage();
|
||||||
const contentServicesPage = new ContentServicesPage();
|
|
||||||
const errorPage = new ErrorPage();
|
const errorPage = new ErrorPage();
|
||||||
const navigationBarPage = new NavigationBarPage();
|
const navigationBarPage = new NavigationBarPage();
|
||||||
const apiService = createApiService();
|
const apiService = createApiService();
|
||||||
@@ -61,12 +59,5 @@ describe('Document List Component', () => {
|
|||||||
await expect(await errorPage.getErrorCode()).toBe('403');
|
await expect(await errorPage.getErrorCode()).toBe('403');
|
||||||
await expect(await errorPage.getErrorDescription()).toBe('You\'re not allowed access to this resource on the server.');
|
await expect(await errorPage.getErrorDescription()).toBe('You\'re not allowed access to this resource on the server.');
|
||||||
});
|
});
|
||||||
|
|
||||||
it('[C279924] Should display custom message when accessing a file without permissions', async () => {
|
|
||||||
await contentServicesPage.goToDocumentList();
|
|
||||||
await contentServicesPage.enableCustomPermissionMessage();
|
|
||||||
await BrowserActions.getUrl(browser.baseUrl + '/files/' + privateSite.entry.guid);
|
|
||||||
await expect(await errorPage.getErrorCode()).toBe('403');
|
|
||||||
});
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@@ -428,11 +428,6 @@ export class ContentServicesPage {
|
|||||||
await BrowserActions.click(infiniteScrollButton);
|
await BrowserActions.click(infiniteScrollButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
async enableCustomPermissionMessage(): Promise<void> {
|
|
||||||
const customPermissionMessage = element(by.cssContainingText('.mat-slide-toggle-content', 'Enable custom permission message'));
|
|
||||||
await BrowserActions.click(customPermissionMessage);
|
|
||||||
}
|
|
||||||
|
|
||||||
async enableMediumTimeFormat(): Promise<void> {
|
async enableMediumTimeFormat(): Promise<void> {
|
||||||
const mediumTimeFormat = $('#enableMediumTimeFormat');
|
const mediumTimeFormat = $('#enableMediumTimeFormat');
|
||||||
await BrowserActions.click(mediumTimeFormat);
|
await BrowserActions.click(mediumTimeFormat);
|
||||||
|
Reference in New Issue
Block a user