[ACS-9749] [E2E] Automated 5513 and 5516 (#4604)

* [ACS-9749] [E2E] Automated 5513 and 5516

* [ACS-9749] fixed setGranularPermission

* [ACS-9749] review fixes 1

* [ACS-9749] Excluded flaky tests

* [ACS-9749] Test upload npm logs

* [ACS-9749] Test upload npm logs v2

* [ACS-9749] updated package-lock.json
This commit is contained in:
Adam Świderski
2025-06-09 16:09:39 +02:00
committed by GitHub
parent 4927d1b199
commit b910576b82
8 changed files with 2151 additions and 3384 deletions

View File

@@ -23,7 +23,7 @@
*/
import { ApiClientFactory } from './api-client-factory';
import { NodeChildAssociationPaging, NodeEntry, NodePaging } from '@alfresco/js-api';
import { NodeChildAssociationPaging, NodeEntry, NodePaging, NodesIncludeQuery, NodeBodyUpdate } from '@alfresco/js-api';
import { NodeContentTree, flattenNodeContentTree } from './node-content-tree';
export class NodesApi {
@@ -159,6 +159,15 @@ export class NodesApi {
}
}
async updateNode(nodeId: string, nodeBodyUpdate: NodeBodyUpdate, opts?: NodesIncludeQuery): Promise<NodeEntry | null> {
try {
return await this.apiService.nodes.updateNode(nodeId, nodeBodyUpdate, opts);
} catch (error) {
console.error(`${this.constructor.name} ${this.updateNode.name}`, error);
return null;
}
}
/**
* Delete all nodes of the currently logged in user
* @param userNodeId The id of User node, all child nodes of "userNodeId" will be gathered as a list and deleted ( e.g.: "-my-" - User Homes folder)
@@ -290,7 +299,7 @@ export class NodesApi {
});
}
async setGranularPermission(nodeId: string, inheritPermissions: boolean = false, username: string, role: string): Promise<NodeEntry | null> {
async setGranularPermission(nodeId: string, username: string, role: string, inheritPermissions = false): Promise<NodeEntry | null> {
const data = {
permissions: {
isInheritanceEnabled: inheritPermissions,

View File

@@ -82,6 +82,10 @@ export class AdfInfoDrawerComponent extends BaseComponent {
public categoriesListItems = this.categoriesManagement.locator('.adf-category');
public categoriesItemRemoveButton = this.categoriesManagement.locator('[data-automation-id="categories-remove-category-button"]');
public categoriesCreatedList = this.getChild('.adf-metadata-categories');
public generalInfoAccordion = this.getChild('[data-automation-id="adf-metadata-group-properties"]');
public generalInfoProperties = this.generalInfoAccordion.locator('.adf-property');
public exifInfoAccordion = this.getChild('[data-automation-id="adf-metadata-group-APP.CONTENT_METADATA.EXIF_GROUP_TITLE"]');
public exifInfoProperties = this.exifInfoAccordion.locator('.adf-property');
async checkCommentsHeaderCount(): Promise<number> {
const commentsCountTextContent = await this.commentsHeader.textContent();